`sourceCpp` does not restore the environment after it is finished. We have: ``` 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.
Activity