<div dir="ltr">Hi Dirk,<div><br></div><div>Same error after removed the Rcpp package.</div><div><br></div><div>It seems that if require() more packages, or source()  hundreds of  user defined functions when R startup, the issue will occure.</div><div><br></div><div>Thanks,</div><div>Jason</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-08 22:19 GMT+08:00 Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 8 May 2017 at 22:06, Jason wrote:<br>
| Hello, Joris,<br>
|<br>
| Thank you for the quick response. However, after updated  to R 3.4.0 and<br>
| RTools34, and deleted datasets, utils, grDevices, graphics and stats  from the<br>
| require  package list, the issue still there.<br>
|<br>
| The new  require  package list is:<br>
| ##############################<wbr>###############<br>
| require("data.table", quietly = TRUE)<br>
| require("stringr", quietly = TRUE)<br>
| require("Rcpp", quietly = TRUE)<br>
<br>
</span>That is an obvious user error.  Rcpp is _of course_ already there.<br>
<br>
Try again without it.<br>
<br>
Dirk<br>
<div><div class="h5"><br>
| require("RCurl", quietly = TRUE)<br>
| ##############################<wbr>###############<br>
|<br>
| Kind regards,<br>
| Jason<br>
|<br>
|<br>
| 2017-05-08 17:35 GMT+08:00 Joris Meys <<a href="mailto:jorismeys@gmail.com">jorismeys@gmail.com</a>>:<br>
|<br>
|     I'm not certain as to what causes this, but two remarks:<br>
|<br>
|     - unless you have a solid reason to use R 3.1.3, you better update your R<br>
|     version and your packages. This way you're sure you're not running into<br>
|     some bug that's resolved in later versions.<br>
|<br>
|     - there is absolutely no need to require() datasets, utils, grDevices,<br>
|     graphics and stats. These packages are automatically loaded by R at<br>
|     startup.<br>
|<br>
|     Cheers<br>
|     Joris<br>
|<br>
|     On Mon, May 8, 2017 at 11:30 AM, Jason <<a href="mailto:qinjingsong@gmail.com">qinjingsong@gmail.com</a>> wrote:<br>
|<br>
|         When I compile and run the RInside examples rinside_sample0.cpp on<br>
|         Windows 10, I get the error :<br>
|<br>
|         Error: cons memory exhausted (limit reached?)<br>
|         Execution halted<br>
|<br>
|         I use R 3.1.3, and I put the  follow code in  the Rprofile.site file:<br>
|<br>
|         ##############################<wbr>###############<br>
|         require("datasets", quietly = TRUE)<br>
|         require("utils", quietly = TRUE)<br>
|         require("grDevices", quietly = TRUE)<br>
|         require("graphics", quietly = TRUE)<br>
|         require("stats", quietly = TRUE)<br>
|         require("data.table", quietly = TRUE)<br>
|         require("stringr", quietly = TRUE)<br>
|         require("Rcpp", quietly = TRUE)<br>
|         require("RCurl", quietly = TRUE)<br>
|         ##############################<wbr>###############<br>
|<br>
|         After removed these code( all lines or some lines), the<br>
|         error disappear,  and it return the correct result --- the<br>
|         string "Hello, world!"<br>
|<br>
|         Who can tell me how to solve this problem ?<br>
|<br>
|         Kind regards,<br>
|         Jason<br>
|<br>
|         ______________________________<wbr>_________________<br>
|         Rcpp-devel mailing list<br>
|         <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-<wbr>project.org</a><br>
|         <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/rcpp-devel</a><br>
|<br>
|<br>
|<br>
|<br>
|     --<br>
|     Joris Meys<br>
|     Statistical consultant<br>
|<br>
|     Ghent University<br>
|     Faculty of Bioscience Engineering<br>
|     Department of Mathematical Modelling, Statistics and Bio-Informatics<br>
|<br>
|     tel :  <a href="tel:%2B32%20%280%299%20264%2061%2079" value="+3292646179">+32 (0)9 264 61 79</a><br>
|     Joris.Meys@Ugent.be<br>
|     ------------------------------<wbr>-<br>
|     Disclaimer : <a href="http://helpdesk.ugent.be/e-maildisclaimer.php" rel="noreferrer" target="_blank">http://helpdesk.ugent.be/e-<wbr>maildisclaimer.php</a><br>
|<br>
|<br>
| ______________________________<wbr>_________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-<wbr>project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/rcpp-devel</a><br>
<br>
--<br>
</div></div><a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</blockquote></div><br></div>