compile.cmd <- 'cmd /c "Rcmd INSTALL --build XDemo " ' system(compile.cmd, intern = TRUE) #Check build check.cmd <- 'cmd /c "Rcmd check XDemo " ' system(check.cmd, intern = TRUE) #Fails on the Example; need to edit Namespace #include the command useDynLib(XDemo) #Then re-run build and check #Now clean up rm(list=ls()) #Now install from .zip library(XDemo) #Now test source('Test-XDemo.R')