Re: [R-pkg-devel] Calling R's tempdir() from C

2018-08-10 Thread Rodrigo Tobar
Hi, On 10.08.18 3:10 PM, Duncan Murdoch wrote: On 10/08/2018 12:01 AM, Rodrigo Tobar wrote: [...] Why not pass the result of tempdir() in your call from R to your C++ function, or in an initialization call for your package?  It won't change during a session. This is indeed a good

Re: [R-pkg-devel] Calling R's tempdir() from C

2018-08-10 Thread Duncan Murdoch
On 10/08/2018 12:01 AM, Rodrigo Tobar wrote: Dear all, I want to create a temporary directory from within my C++ R extension. On the other hand, CRAN's policy dictates that one cannot write anything outside the boundaries of the session's temporary directory, so I need to create it exactly

[R-pkg-devel] Calling R's tempdir() from C

2018-08-09 Thread Rodrigo Tobar
Dear all, I want to create a temporary directory from within my C++ R extension. On the other hand, CRAN's policy dictates that one cannot write anything outside the boundaries of the session's temporary directory, so I need to create it exactly there. The R API offers R_tmpnam and