Skip to content

Prepare for CRAN release#8

Merged
ofrei merged 11 commits into
precimed:mainfrom
amorris28:fix/r-package-fixtures
May 16, 2026
Merged

Prepare for CRAN release#8
ofrei merged 11 commits into
precimed:mainfrom
amorris28:fix/r-package-fixtures

Conversation

@amorris28
Copy link
Copy Markdown
Contributor

@amorris28 amorris28 commented May 15, 2026

I have gone through and fixed as many potential CRAN submission gotchas as I can find. Initial CRAN submissions will be reviewed by a human. I used the following resources:

I tested the changes using:

  • devtools::check()
  • devtools::check_win_devel()
  • devtools::check_mac_release()

There are still a few outstanding issues that should probably be opened in a separate issue:

tarball naming conventions: Two tarballs exist in the release page with nearly identical names: statgen_0.3.0.tar.gz and statgen-0.3.0.tar.gz. The first one is the R package. These should ideally but differentiated, but I ran into problems renaming the R package tarball because R CMD CHECK defaults to using package_version.tar.gz.

The .Rd documentation files and NAMESPACE file are currently manually maintained, which is okay for CRAN submission but the R ecosystem standard is to use roxygen2 tags in .R files with auto-generation via devtools::document(). The main drawback is that man/ and NAMESPACE require manual updates with code changes. Migrating to roxygen2 in the future would eliminate this problem.

Closes #7

@ofrei ofrei merged commit 56c1d02 into precimed:main May 16, 2026
5 checks passed
@amorris28 amorris28 deleted the fix/r-package-fixtures branch May 20, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare for CRAN release

2 participants