Skip to content

Commit

Permalink
Update vignettes/articles/cran-compliance.Rmd
Browse files Browse the repository at this point in the history
Co-authored-by: Ilia Kosenkov <[email protected]>
  • Loading branch information
JosiahParry and Ilia-Kosenkov authored Sep 24, 2023
1 parent b4b387e commit 0192b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/articles/cran-compliance.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rextendr provides default CRAN compliant scaffolding via the `use_cran_defaults(

### Making a package CRAN compliant

To create a CRAN compliant R package begin by creating a new R package. Do so by using `usethis::create_package()`. In the new R project, run `rextendr::use_extendr()` to create the minimal scaffolding necessary for a Rust powered R package. Once you have done this, you can now run `rextendr::use_cran_defaults()`.
To create a CRAN compliant R package begin by creating a new R package. Do so by calling `usethis::create_package()`. In the new R project, run `rextendr::use_extendr()` to create the minimal scaffolding necessary for a Rust-powered R package. Once you have done this, you can now run `rextendr::use_cran_defaults()`.

`use_cran_defaults()` will create the files `configure` and `configure.win` files. Additionally, it will create new `Makevars` and `Makevars.win` that print the versions of cargo and rustc as well as uses the `cargo build` argument `-j 2 --offline`.

Expand Down

0 comments on commit 0192b84

Please sign in to comment.