Skip to content

R CHECK warnings #233

@lpantano

Description

@lpantano

Hi,

thanks in advance for the time to maintain this super nice package. I am very new to compile C code in R so sorry if this is stupid.

My collaborator and I introduced objective_function in Cpp to be use with gamlss. here is the code for that: https://github.com/lpantano/isomiRs/blob/cpp/src/LQNO_DE.cpp

I got it compiled, but I am having a warning during R CHECK:

* checking compiled code ... WARNING
File ‘isomiRs/libs/LQNO_DE.so’:
  Found ‘_abort’, possibly from ‘abort’ (C)
    Object: ‘LQNO_DE.o’
File ‘isomiRs/libs/LQNO_DE.so’:
  Found non-API call to R: ‘R_RunExitFinalizers’

Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor the system RNG.
Compiled code should not call non-API entry points in R.

I think it comes from TMB.h, but not sure how to work around. I am with R 3.4, TMB 1.7.10, Rcpp 0.12.1.

I don't know if you have any hints to where to start to fix this. Thanks anyway!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions