Created
May 18, 2025 02:33
-
-
Save HughParsonage/89f0f5f9dc8fa7917eeba1f6f1511546 to your computer and use it in GitHub Desktop.
de_in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unction (quiet = TRUE, quick = TRUE, verbose = FALSE) | |
{ | |
unloadNamespace(basename(normalizePath("."))) | |
if (length(dir(path = "src", "\\.cpp$"))) { | |
Rcpp::compileAttributes(verbose = verbose) | |
} | |
if (dir.exists("src") && !file.exists("src/RcppExports.cpp") && | |
file.exists("src/init.c")) { | |
tempf <- tempfile() | |
tools::package_native_routine_registration_skeleton(".", | |
tempf) | |
md5sum_tempf <- as.character(tools::md5sum(tempf)) | |
md5sum_initc <- as.character(tools::md5sum("src/init.c")) | |
if (md5sum_tempf != md5sum_initc) { | |
file.copy(tempf, "./src/init.c", overwrite = TRUE) | |
} | |
} | |
devtools::document(quiet = quiet) | |
devtools::install(quiet = quiet, quick = quick, dependencies = FALSE) | |
pkgload::load_all(quiet = quiet) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment