I'm not certain as to what causes this, but two remarks: - unless you have a solid reason to use R 3.1.3, you better update your R version and your packages. This way you're sure you're not running into some bug that's resolved in later versions.
- there is absolutely no need to require() datasets, utils, grDevices, graphics and stats. These packages are automatically loaded by R at startup. Cheers Joris On Mon, May 8, 2017 at 11:30 AM, Jason <qinjings...@gmail.com> wrote: > When I compile and run the RInside examples rinside_sample0.cpp on Windows > 10, I get the error : > > Error: cons memory exhausted (limit reached?) > Execution halted > > I use R 3.1.3, and I put the follow code in the Rprofile.site file: > > ############################################# > require("datasets", quietly = TRUE) > require("utils", quietly = TRUE) > require("grDevices", quietly = TRUE) > require("graphics", quietly = TRUE) > require("stats", quietly = TRUE) > require("data.table", quietly = TRUE) > require("stringr", quietly = TRUE) > require("Rcpp", quietly = TRUE) > require("RCurl", quietly = TRUE) > ############################################# > > After removed these code( all lines or some lines), the error disappear, > and it return the correct result --- the string "Hello, world!" > > Who can tell me how to solve this problem ? > > Kind regards, > Jason > > _______________________________________________ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Mathematical Modelling, Statistics and Bio-Informatics tel : +32 (0)9 264 61 79 joris.m...@ugent.be ------------------------------- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel