akhikolla / RcppDeepState

RcppDeepState, a simple way to fuzz test code in Rcpp packages
https://akhikolla.github.io./
8 stars 2 forks source link

remove deepstate_create_testpkgs_objects() from tests? #25

Closed tdhock closed 4 years ago

tdhock commented 4 years ago

compiling package functions to object files should happen in one of your deepstate_* functinos.

tdhock commented 4 years ago

same thing for deepstate_make_run() ? (only run if needed)

tdhock commented 4 years ago

if file exists ( package/src/package.so ) if file exists ( ~/.RcppDeepState/static.library. )

akhikolla commented 4 years ago

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 
}