Skip to content

Commit

Permalink
remove tools/msrv.R from use_cran_defaults()
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Oct 28, 2024
1 parent 6823c4b commit d88f461
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
36 changes: 0 additions & 36 deletions R/cran-compliance.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,42 +52,6 @@ use_cran_defaults <- function(path = ".", quiet = FALSE, overwrite = NULL, lib_n
)
}

# create tools directory if it does not exist
if (!dir.exists("tools")) {
dir.create("tools")
}

# add msrv.R template
use_rextendr_template(
"cran/msrv.R",
save_as = file.path("tools", "msrv.R"),
quiet = quiet,
overwrite = overwrite
)

# add configure and configure.win templates
use_rextendr_template(
"cran/configure",
save_as = "configure",
quiet = quiet,
overwrite = overwrite,
data = list(lib_name = lib_name)
)

# configure needs to be made executable
# ignore for Windows
if (.Platform[["OS.type"]] == "unix") {
Sys.chmod("configure", "0755")
}

use_rextendr_template(
"cran/configure.win",
save_as = "configure.win",
quiet = quiet,
overwrite = overwrite,
data = list(lib_name = lib_name)
)

# use CRAN specific Makevars templates
use_rextendr_template(
"cran/Makevars",
Expand Down
3 changes: 0 additions & 3 deletions tests/testthat/_snaps/use_cran_defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
Code
use_cran_defaults()
Message
> File 'tools/msrv.R' already exists. Skip writing the file.
> File 'configure' already exists. Skip writing the file.
> File 'configure.win' already exists. Skip writing the file.
> File 'src/Makevars' already exists. Skip writing the file.
> File 'src/Makevars.win' already exists. Skip writing the file.
v Adding "^src/rust/vendor$" to '.Rbuildignore'.
Expand Down

0 comments on commit d88f461

Please sign in to comment.