src/install.libs.R

# https://cran.r-project.org/doc/manuals/R-exts.html#Package-subdirectories
execs <- c("../gadget")
if(WINDOWS) execs <- paste0(execs, ".exe")
if ( any(file.exists(execs)) ) {
  dest <- file.path(R_PACKAGE_DIR,  paste0('bin', R_ARCH))
  dir.create(dest, recursive = TRUE, showWarnings = FALSE)
  file.copy(execs, dest, overwrite = TRUE)
  file.remove(execs)
}

Try the gadget2 package in your browser

Any scripts or data that you put into this service are public.

gadget2 documentation built on July 9, 2023, 6:04 p.m.