[R-pkg-devel] Package Check "Error" status only for r-release-macos-x86_64 flavor

2020-07-20 Thread FARSHAD TABASINEJAD
Dear R community experts, The CRAN package check page shows an “ERROR” status for my “Rmbal” package on the r-release-macos-x86_64 flavor. The error seems to be related to a failed connection. The following links show the error message. https://cran.r-project.org/web/checks/check_results_Rmbal.

Re: [R-pkg-devel] "non-ASCII input" and "--data-compress" ignored

2020-07-20 Thread Ivan Krylov
On Fri, 17 Jul 2020 18:08:24 -0500 Spencer Graves wrote: >   I tried escaping "%" every time it occurred without success, > but adding "\encoding{UTF-8}" as the 4th line of > nuclearWeaponStates.Rd eliminated that problem. Glad it works for you, but you might want to check that the link sti

Re: [R-pkg-devel] Note: information on .o files is not available / Found '_exit', possibly from '_exit' (C)

2020-07-20 Thread Fabio Sigrist
Many thanks to everybody for the valuable answers. Several people (Benjamin and Ivan) pointed to the lack of portability due to the "-Wno-cast-function-type" flag. I have changed this. Further, as suggested by Benjamin, I also added the " -DNDEBUG" flag. Consequently, there is no assert call anym

[R-pkg-devel] import 'as' from another package

2020-07-20 Thread Tim Keitt
I have if (!inherits(x, "RasterLayer")) x <- as(x, "RasterLayer") in a package and its not finding the coerce definition from the raster package. I know I need to add an @import roxygen2 directive of some kind, but I'm not sure the correct syntax. My first try generated a warning that it was no

Re: [R-pkg-devel] import 'as' from another package

2020-07-20 Thread Ben Bolker
   @importFrom methods as ? On 7/20/20 12:06 PM, Tim Keitt wrote: I have if (!inherits(x, "RasterLayer")) x <- as(x, "RasterLayer") in a package and its not finding the coerce definition from the raster package. I know I need to add an @import roxygen2 directive of some kind, but I'm not s

Re: [R-pkg-devel] import 'as' from another package

2020-07-20 Thread Tim Keitt
It works but "check" gives > checking package dependencies ... ERROR Namespace dependency not required: ‘methods’ THK On Mon, Jul 20, 2020 at 11:24 AM Ben Bolker wrote: > @importFrom methods as > > ? > > On 7/20/20 12:06 PM, Tim Keitt wrote: > > I have > > > >if (!inherits(x, "Raster

Re: [R-pkg-devel] import 'as' from another package

2020-07-20 Thread Ben Bolker
   I think this is a classic confusing R message.  Try adding methods to the Imports: statement in your DESCRIPTION file and see if that helps. (Maybe I should file a bug report about that error message - it confuses me every time.) On 7/20/20 12:34 PM, Tim Keitt wrote: > It works but "check"

Re: [R-pkg-devel] import 'as' from another package

2020-07-20 Thread Tim Keitt
That did it. Thanks Ben. THK On Mon, Jul 20, 2020 at 11:36 AM Ben Bolker wrote: >I think this is a classic confusing R message. Try adding methods to > the Imports: statement in your DESCRIPTION file and see if that helps. > (Maybe I should file a bug report about that error message - it c

Re: [R-pkg-devel] import 'as' from another package

2020-07-20 Thread Sebastian Meyer
Yes, indeed, it is confusing. You don't need to file a new bug report, though. There is one already: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17179 Please feel free to comment there. This thread could serve as another confirmation. :-) Best regards, Sebastian Am 20. Juli 2020 18:36

Re: [R-pkg-devel] import 'as' from another package

2020-07-20 Thread Tim Keitt
Thanks for pointing to the bug. Now I am finding I cannot use the 'as' definitions from 'raster' without loading the package. Do I need an @import directive that specifies the definitions in the 'raster' package? My understanding is that the 'setAs' function generates a 'coerce,...' signature but

[R-pkg-devel] Cartograflow package

2020-07-20 Thread cartograf...@gmail.com
HelloYesterday a new version of cartograflow v1.0.3 was updated on the crank.  Everything seems to be OK. However, when I write in help cartograflow I don't see the thumbnail with the different possibilities of visualization: pdf, HTML ... Is this normal? Thank you in advance for your answer Sylv