[Rcpp-devel] Error creating package with RcppArmadillo

mike guggis mikeguggis at gmail.com
Fri Oct 12 20:59:28 CEST 2018


I am running into an error when building the default package with Rcpp
armadillo in Rstudio.



In rstudio if I go to New Project > New directory> R Package using
RcppArmadillo. Then create a project with a random nam,e “gh”. If I click
“check” under the build tab to check the package I get an error when
rstudio gets to the “checking examples” part. It gives me the error



-  checking examples ... (434ms)

   ** running examples for arch 'i386' ... ERROR

   Running examples in 'gh-Ex.R' failed

   The error most likely occurred in:



   > base::assign(".ptime", proc.time(), pos = "CheckExEnv")

   > ### Name: gh-package

   > ### Title: What the package does (short line)

   > ### Aliases: gh-package gh

   > ### Keywords: package

   >

   > ### ** Examples

   >

   > ~~ simple examples of the most important functions ~~

   Error: unexpected symbol in "~~ simple examples"

   Execution halted

   ** running examples for arch 'x64' ... ERROR

   Running examples in 'gh-Ex.R' failed

   The error most likely occurred in:



   > base::assign(".ptime", proc.time(), pos = "CheckExEnv")

   > ### Name: gh-package

   > ### Title: What the package does (short line)

   > ### Aliases: gh-package gh

   > ### Keywords: package

   >

   > ### ** Examples

   >

   > ~~ simple examples of the most important functions ~~





My Rstudio version is 1.1.456. My session info with RCpp and RCppArmadillo
loaded is



> sessionInfo()

R version 3.5.1 (2018-07-02)

Platform: x86_64-w64-mingw32/x64 (64-bit)

Running under: Windows >= 8 x64 (build 9200)



Matrix products: default



locale:

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
States.1252

[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C

[5] LC_TIME=English_United States.1252



attached base packages:

[1] stats     graphics  grDevices utils     datasets  methods   base



other attached packages:

[1] RcppArmadillo_0.9.100.5.0 Rcpp_0.12.19



loaded via a namespace (and not attached):

[1] compiler_3.5.1  rsconnect_0.8.8 tools_3.5.1     yaml_2.2.0



Any help you can provide would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20181012/90255c29/attachment-0001.html>


More information about the Rcpp-devel mailing list