[R-pkg-devel] What checks are required before uploading a package to CRAN?

2023-04-04 Thread John Lawson
My R package checks on my windows computer with no errors, warnings or notes. Next I used the win-builder upload page to check the package. I uploaded the tar.gz file on R-release. I read the 00check.log file and the only Note stated was that I was the developer. I understood that I needed to

Re: [R-pkg-devel] correcting errors in an existing package

2023-04-04 Thread Lionel Henry
Hi Dennis, I'm reincluding the list so that other people can see the clarifications too. On 4/4/23, Dennis Boos wrote: > Thanks so much. Could you give me a little more clarity? > > 1. Where do I add > > #' @importFrom stats var sd etc > > Within the R functions? Each one separately > > 2. Was

Re: [R-pkg-devel] correcting errors in an existing package

2023-04-04 Thread Lionel Henry
> Here is my namespace. It says not to edit, but I had been told to add > the importFrom. So I didn't use > devtools::document() for fear roxygen2 would get rid of it. `devtools::check()` calls `document()` automatically so your changes to the NAMESPACE file get overwritten. You can see this in

Re: [R-pkg-devel] correcting errors in an existing package

2023-04-04 Thread Dirk Eddelbuettel
On 4 April 2023 at 10:04, Duncan Murdoch wrote: | I'd suggest this: build the tarball, and check the tarball. Strong second. The _Writing R Extensions_ manual does not mention devtools. As Uwe often reminds everybody here the package is not used by CRAN either. This may sound harsh but one of

Re: [R-pkg-devel] correcting errors in an existing package

2023-04-04 Thread Duncan Murdoch
Your message is posted using HTML, which mangles a lot of it. For example, the NAMESPACE file you posted has URLs mixed in with the text. But if I can guess correctly what was in those files, it looks as though the package being checked doesn't have those files in it. I don't know exactly

Re: [R-pkg-devel] OpenMP and CRAN checks

2023-04-04 Thread Dirk Eddelbuettel
Hi Rodrigo, This came up recently again on social media where I illustrated how the tiledb package deals with it. So a quick recap: First off, let's make the goals clear. We want to _simultaneously_ - abide by CRAN Policy rules and cap ourselves to two cores there - do not impose any limits

Re: [R-pkg-devel] correcting errors in an existing package

2023-04-04 Thread Dennis Boos
Thanks so much to all of you. If you have time, I'm getting really contradictory results. 1. It first seemed to have passed the check in Rstudio (I used device::build() in the R window and then clicked on check in the drop down menu under build). ==> devtools::check(document = FALSE, args =

[R-pkg-devel] OpenMP and CRAN checks

2023-04-04 Thread Rodrigo Tobar Carrizo
Hi list, We are having an issue with submitting a new version of the imager package to CRAN, and would like to understand how we are getting a particular NOTE. The package uses OpenMP for parallelisation of tasks. While we have a routine to set the number of threads that OpenMP should use (it