[R-pkg-devel] Possible bug report/false positive
Igor L
|gor|@|tu| @end|ng |rom gm@||@com
Wed Jan 5 21:15:20 CET 2022
To whom it may concern,
I'm using devtools::check() and trying to upload my package to CRAN (The
code is available in github
<https://github.com/igorlaltuf/dail/blob/main/R/requests.R>), but I'm not
able to understand why the function is showing 1 NOTE:
-- R CMD check results
------------------------------------------------------------------------------------
dail 0.0.0.9000 ----
Duration: 17.9s
> checking R code for possible problems ... NOTE
Found an obsolete/platform-specific call in the following function:
'requests'
Found the platform-specific device:
'X11'
dev.new() is the preferred way to open a new device, in the unlikely
event one is needed.
requests: no visible binding for global variable 'protocolo'
Undefined global functions or variables:
protocolo
0 errors √ | 0 warnings √ | 1 note x
After uploading it to CRAN, I noticed that: (1) this only happens on
debian; and (2) as pointed out in this answer
<https://stackoverflow.com/questions/70585796/unable-to-understand-1-note-in-devtoolscheck-caused-by-a-platform-specific-d>,
the code might be understanding X11 as a function from package::grDevices
<https://github.com/wch/r-source/blob/b1434842427cc01b7e8301495fe0f75ef519ac01/src/library/tools/R/QC.R#L6384-L6391>
.
Does anyone know the reason for this and how to solve it?
Best regards,
*Igor Laltuf Marques*
https://igorlaltuf.github.io/
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list