Re: [R] R CMD check says no visible binding for global variable

2025-01-27 Thread Sorkin, John
There you go, once again helping strengthen ;) John Get Outlook for iOS From: R-help on behalf of avi.e.gr...@gmail.com Sent: Tuesday, January 28, 2025 12:01:25 AM To: 'Naresh Gurbuxani' ; r-help@r-project.org Subject: Re: [R] R CMD chec

Re: [R] R CMD check says no visible binding for global variable

2025-01-27 Thread avi.e.gross
Naresh, I am not sure how you are creating your data.frame so it has no, I think, column names. There are two scenarios including one where it is not really a valid data.frame and one where it can be handled before any other use as shown below. If it cannot be used, you might need to modify how

Re: [R] R CMD check says no visible binding for global variable

2025-01-27 Thread Ben Bolker
This might be better for r-package-de...@r-project.org (since you're asking a question about package-checking). This is a common problem when using non-standard evaluation. Typically you can either use `utils::globalVariables` or set these variables to NULL near the top of your function.

[R] R CMD check says no visible binding for global variable

2025-01-27 Thread Naresh Gurbuxani
I have written a function which returns an SQL query result as a data.frame. Each column of data.frame is a variable not explicitly defined. For every column name, R CMD check says ‘no visible binding for global variable . Status: 1 NOTE Is it possible to tell R CMD check that these variables