11 lines
519 B
R
11 lines
519 B
R
# Install the compiled package shared object plus, on Windows, the bundled
|
|||
|
|
# wickra_abi.dll (matched by the *.dll glob) so the loader can resolve the import
|
||
|
|
# from the package's own libs directory (see .onLoad, which puts it on PATH).
|
||
|
|
files <- Sys.glob(paste0("*", SHLIB_EXT))
|
||
|
|
dest <- file.path(R_PACKAGE_DIR, paste0("libs", R_ARCH))
|
||
|
|
dir.create(dest, recursive = TRUE, showWarnings = FALSE)
|
||
|
|
file.copy(files, dest, overwrite = TRUE)
|
||
|
|
if (file.exists("symbols.rds")) {
|
||
|
|
file.copy("symbols.rds", dest, overwrite = TRUE)
|
||
|
|
}
|