Closed tdhock closed 4 years ago
same thing for deepstate_make_run() ? (only run if needed)
if file exists ( package/src/package.so ) if file exists ( ~/.RcppDeepState/static.library. )
To compiling package functions to object files -- installing the package inside deepstate_pkg_create()
system(paste0("R CMD INSTALL ",package_path))
Checking for the static library if it doesn't exist - creates one
if(!file.exists("~/.RcppDeepState/deepstate-master/build/libdeepstate.a")){
deepstate_make_run() //creates the library
}
compiling package functions to object files should happen in one of your deepstate_* functinos.