Re: [R-pkg-devel] NOTE for a suggested package

2019-02-23 Thread Jeff Newmiller
Remove the library function call... On February 23, 2019 3:43:15 PM PST, Mohammad Ali Nilforooshan wrote: >I'm struggling to stop receiving a NOTE about a suggested package, and >it >seems to be the problem for many people. Your help is really >appreciated. > >In the function, I have: >

Re: [R-pkg-devel] NOTE for a suggested package

2019-02-23 Thread Joshua Ulrich
You can remove the `library("doParallel")`. Your call to requireNamespace() plus calling all doParallel functions with `::` is sufficient. That should resolve the NOTE. On Sat, Feb 23, 2019 at 5:49 PM Mohammad Ali Nilforooshan wrote: > > I'm struggling to stop receiving a NOTE about a

[R-pkg-devel] NOTE for a suggested package

2019-02-23 Thread Mohammad Ali Nilforooshan
I'm struggling to stop receiving a NOTE about a suggested package, and it seems to be the problem for many people. Your help is really appreciated. In the function, I have: if(requireNamespace("doParallel", quietly=TRUE)) { library("doParallel") cl = parallel::makeCluster(ncl)