Open romainfrancois opened 10 years ago
sourceCpp does not restore the environment after it is finished. We have:
sourceCpp
if( length(ls(buildEnv)) ) do.call( Sys.setenv, as.list(buildEnv) ) owd <- setwd( tempdir() ) on.exit( { setwd(owd) })
we should add something to on.exit to restore the environment to its previous state.
on.exit
sourceCpp
does not restore the environment after it is finished. We have:we should add something to
on.exit
to restore the environment to its previous state.