Re: [R-pkg-devel] Checking package in Windows fails

2021-11-16 Thread Ivan Krylov
On Wed, 17 Nov 2021 00:20:44 +0100 Ben Engbers wrote: > I don't edit the NAMESPACE file by hand. It is created by roxygen2. Right. In that case, use an @importFrom tag: https://roxygen2.r-lib.org/articles/namespace.html#imports -- Best regards, Ivan

Re: [R-pkg-devel] Checking package in Windows fails

2021-11-16 Thread Ben Engbers
Thanks for your reply. I have moved new/edited 'input_to_raw' code and the validation code to another file with all kind of utility-functions and that seems to have solved that problem. (But I don't understand why that helped ;-() Hopefully then next version of my client will be using C++ to

Re: [R-pkg-devel] Checking package in Windows fails

2021-11-16 Thread Ivan Krylov
On Mon, 15 Nov 2021 17:15:14 +0100 Ben Engbers wrote: > I don't know why I have to explicitly include 'library("rex")' in > the code since I have added rex to the Imports in the DESCRIPTION Have you added the corresponding importFrom(...) [1] commands to your NAMESPACE file? > pi <-

[R-pkg-devel] Checking package in Windows fails

2021-11-16 Thread Ben Engbers
Hi, I have written a function which - checks if the input is a raw-vector - if the input is a file-descriptor, it converts the file-content to a raw-vector - if the input is a URL, it converts the content to a raw vector - if the input is a character-string, it is converted to a raw vector.