Skip to content

Commit ba95f6d

Browse files
committed
fix: move shell command from prepare_to_submit_to_CRAN.R to CONTRIBUTING.md
1 parent 862c00c commit ba95f6d

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,11 @@ writeLines(pak::pkg_system_requirements("devtools", "ubuntu", "22.04"))
7373

7474
To remove the local virtual Python environment, delete the `r-acro` folder.
7575
On GNU/Linux this is typically located in `~/.virtualenvs`
76+
77+
## CRAN Submission
78+
79+
A useful command to run before submitting:
80+
81+
```shell
82+
R CMD build . && R CMD check --as-cran $(ls -t . | head -n1)
83+
```

prepare_to_submit_to_CRAN.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ usethis::use_version(which = c("patch", "minor", "major", "dev")[1])
3535
# When you are happy with the package and want to submit it to CRAN, you can do this manually by converting the package source directory into a single bundled file and submit this file to CRAN (https://xmpalantir.wu.ac.at/cransubmit/)
3636
devtools::build()
3737

38-
#good idea to run
39-
R CMD build . && R CMD check --as-cran $(ls -t . | head -n1)
38+
# Good idea to run: see CONTRIBUTING.md
4039

4140
# Or if you decide to do the release automatically then you can run this command
4241
# devtools::release()

0 commit comments

Comments
 (0)