Re: [R-pkg-devel] Fwd: Passing CRAN check when an examples must save a file

2019-09-27 Thread Jeff Newmiller
Read the Posting Guide... sending html formatted email corrupts your message. Reading between the garbage... a) Pasting an extension is not necessary. b) using tempfile() in your example as an argument to sink( file=) is a straightforward way to illustrate that a file can be created. On Septemb

[R-pkg-devel] how to throw a C++ exception across modules

2019-09-27 Thread Joshua N Pritikin
OpenMx exports an API that I import into another package (gwsem) like this, aldp = R_GetCCallable("OpenMx", "AddLoadDataProvider") gwsem registers some C++ classes through this API. This works great until gwsem throws a C++ exception. OpenMx calls gwsem in a try-catch region. This works flaw

[R-pkg-devel] Fwd: Passing CRAN check when an examples must save a file

2019-09-27 Thread Tiago Olivoto
Dear all, I had the same problem when I submitted my R package 'metan' to CRAN for the first time. "Please ensure that your functions do not write by default or in your examples/vignettes/tests in the user's home filespace (including the package directory and getwd()). In your examples/vignettes/t

Re: [R-pkg-devel] Passing CRAN check when an examples must save a file

2019-09-27 Thread Zachary Flynn
Thanks much, that solved the issue, Zach Flynn On Fri, Sep 27, 2019, 8:36 AM Duncan Murdoch wrote: > On 26/09/2019 11:43 p.m., Zachary Flynn wrote: > > I am working on a function in a package that saves a file. I want to > write > > an example to document the function so it must save a file,

Re: [R-pkg-devel] Passing CRAN check when an examples must save a file

2019-09-27 Thread Duncan Murdoch
On 26/09/2019 11:43 p.m., Zachary Flynn wrote: I am working on a function in a package that saves a file. I want to write an example to document the function so it must save a file, but when I do, the automatic CRAN checks reject the package because there is a non-standard file saved in the dire

[R-pkg-devel] Passing CRAN check when an examples must save a file

2019-09-27 Thread Zachary Flynn
I am working on a function in a package that saves a file. I want to write an example to document the function so it must save a file, but when I do, the automatic CRAN checks reject the package because there is a non-standard file saved in the directory when the second test runs (first, it runs a

Re: [R-pkg-devel] Package or namespace load failed: undefined symbol

2019-09-27 Thread Ralf Stubner
On Thu, Sep 26, 2019 at 3:41 PM Sameh M. Abdulah wrote: > > I am installing my dependencies including OpenBLAS during the package > installation via the configure file. > What is surprising me that even all dependencies are installed successfully. > R cannot load one of the library > that depen