Re: [R-pkg-devel] no visible binding for global variable ‘degree_C’ - CRAN check note

2022-12-10 Thread Andrew Simmons
You can declare degree_C as a variable before using set_units(): degree_C <- NULL set_units(T, degree_C) you could use globalVariables() somewhere at the top-level in your package: utils::globalVariables("degree_C") or you could supply degree_C as a literal character string: set_units(T, "degr

[R-pkg-devel] no visible binding for global variable ‘degree_C’ - CRAN check note

2022-12-10 Thread EcoC2S - Irucka Embry
In my iemisc package, I am using the units package. This is an example of how I am using the set_units function: T <- 20 set_units(T, degree_C) Upon checking iemisc with devtools for CRAN submission, I receive the following note under "checking R code for possible problems": no visible bind

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
Thanks for the effort. Yep that is what I see when I run in my virtual machine. I will play with it some more, and hopefully someone from CRAN will see this and chime in. I am more than willing to try to fix this, I just can not reproduce the error. -Roy > On Dec 10, 2022, at 2:53 PM, Dirk

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Dirk Eddelbuettel
On 10 December 2022 at 14:27, Roy Mendelssohn - NOAA Federal wrote: | Perfect. Thanks. That is what I am seeing and that is what is expected. I have even gotten into a debugger, and looked at to where the file was downloaded, right after the download, and it is in a proper temporary space

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Ivan Krylov
On Sat, 10 Dec 2022 14:00:22 -0800 Roy Mendelssohn - NOAA Federal via R-package-devel wrote: > cache_setup(temp_dir = TRUE) Unfortunately, it prints a path under tempdir() for me on my Debian oldstable machine. I see that the error came from the "donttest" check from an extra test that's not on

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
Perfect. Thanks. That is what I am seeing and that is what is expected. I have even gotten into a debugger, and looked at to where the file was downloaded, right after the download, and it is in a proper temporary space. Dirk if you really want to be a glutton for punishment, could you tr

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Dirk Eddelbuettel
On 10 December 2022 at 14:00, Roy Mendelssohn - NOAA Federal via R-package-devel wrote: | CRAN has sent me a notice about the following: | | https://www.stats.ox.ac.uk/pub/bdr/donttest/rerddapXtracto.out | | I can not reproduce it. I test on my Mac, the cache space is properly handled (by

[R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
CRAN has sent me a notice about the following: https://www.stats.ox.ac.uk/pub/bdr/donttest/rerddapXtracto.out I can not reproduce it. I test on my Mac, the cache space is properly handled (by a package outside mine). Same with Debian on r-hub. I installed Fedora on a virtual machine, no pr

Re: [R-pkg-devel] Package fails on Debian

2022-12-10 Thread Ivan Krylov
On Fri, 9 Dec 2022 17:29:21 + Stephen Coleman wrote: > ``outlierComponentFactory.h:37:15: error: ‘unique_ptr’ in namespace > ‘std’ does not name a template type``. Does it help to explicitly #include in outlierComponentFactory.h in order to provide the definition of the template class uniqu

[R-pkg-devel] Package fails on Debian

2022-12-10 Thread Stephen Coleman
Hi all, I am trying to get my R package to pass CRAN checks for Debian. According to ``rhub::check_on_debian()`` my error is: ``outlierComponentFactory.h:37:15: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type``. I have included ``CXX_STD = CXX17`` in my Makevars file and my