Skip to content
Prev 4156 / 12125 Next

[R-pkg-devel] CRAN pre-test failed on NOTE "no visible binding for global variable"

Using such a general pattern eventually and  inevitably will prevent the check from reporting legitimate bugs. 
One alternative is to list explicitly the variables in question and make sure that they are not commonly used names like 'x'. 
If that is not practical and you use non-standard evaluation a lot,  consider '.data' from package 'lang' , see its documentation and/or Google it 
to find out how to use it. 

#' @importFrom rlang .data


Georgi Boshnakov

-----Original Message-----
From: R-package-devel [mailto:r-package-devel-bounces at r-project.org] On Behalf Of I?aki Ucar
Sent: 02 July 2019 15:19
To: Berlanga, Antonio J
Cc: r-package-devel at r-project.org
Subject: Re: [R-pkg-devel] CRAN pre-test failed on NOTE "no visible binding for global variable"

ra?l

On Tue, 2 Jul 2019 at 14:18, Berlanga, Antonio J
<a.berlanga at imperial.ac.uk> wrote:
If you use NSE in your package, this is the best solution. You may
also switch to SE.

I?aki

______________________________________________
R-package-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel