Skip to content

Instantly share code, notes, and snippets.

@romainfrancois
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save romainfrancois/10721547 to your computer and use it in GitHub Desktop.

Select an option

Save romainfrancois/10721547 to your computer and use it in GitHub Desktop.
test Rcpp11
library("devtools")
library("testthat")
install_github( "Rcpp11/Rcpp11")
install_github( "Rcpp11/Rcpp-test")
library( "RcppTest" )
test_package( "RcppTest" )
@romainfrancois

Copy link
Copy Markdown
Author
> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252 LC_NUMERIC=C                   LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RcppTest_3.1.0.0.999 testthat_0.8.1.0.99  devtools_1.5        

loaded via a namespace (and not attached):
 [1] codetools_0.2-8 digest_0.6.4    evaluate_0.5.3  httr_0.3        memoise_0.1     parallel_3.1.0  RCurl_1.95-4.1  stringr_0.6.2   tools_3.1.0     whisker_0.3-2 

@cocinerox

Copy link
Copy Markdown

Works OK on 32-bit Windows 7, but produces three warnings: In getPackageName(where) : Created a package name, ‘2014-04-16 00:02:48’, when none found -- etc.

> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Hungarian_Hungary.1250  LC_CTYPE=Hungarian_Hungary.1250   
[3] LC_MONETARY=Hungarian_Hungary.1250 LC_NUMERIC=C                      
[5] LC_TIME=Hungarian_Hungary.1250    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RcppTest_3.1.0.0.999 testthat_0.8.1.0.99 

loaded via a namespace (and not attached):
[1] codetools_0.2-8 digest_0.6.4   

@romainfrancois

Copy link
Copy Markdown
Author

Thanks. I know about these warnings, I think they come from testthat or methods. Or perhaps I don't use testthat correctly.

@romainfrancois

Copy link
Copy Markdown
Author

And now I've taken care of the warnings too. Just needed to suppressWarnings around setClass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment