diff --git a/R/cran-compliance.R b/R/cran-compliance.R index 3e1d1a69..4ca7505f 100644 --- a/R/cran-compliance.R +++ b/R/cran-compliance.R @@ -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", diff --git a/tests/testthat/_snaps/use_cran_defaults.md b/tests/testthat/_snaps/use_cran_defaults.md index 06295c5e..4c637a16 100644 --- a/tests/testthat/_snaps/use_cran_defaults.md +++ b/tests/testthat/_snaps/use_cran_defaults.md @@ -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'.