-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R-CMD Check: no visible binding for global variable #4
Comments
@SunSummoner, this might be a good place to start. @the-mayer has started working on this for now. |
@jananiravi @the-mayer I will start with this. Thanks! |
Hi @jananiravi , can I work on this? |
yes, please! coordinate with @SunSummoner via github/slack to see if she's started some work already. |
@jananiravi I talked with @valentina-buoro and we were thinking of dividing some of the functions after getting the PR reviewed for changes. |
Splitting the remainder (roughly) by function(s), so that multiple people may participate! Note, most of these errors come from how R handles Non Standard Evaluation. Resolving these issues does not actually change code functionality. It will however, clear a R CMD warning, which will be important for when MolEvolvR is submitted for review. Consider the following example:
R knows that
rlang, the package that helps with NSE offers a way to deal with this, by making the function code (within a package) more explicit. By refactoring to include a .data prefix, we can clear the warning:
Please take the comments that follow, convert to an issue, then follow the contributing guidelines and create a new branch containing your changes. Commit your work, and submit a PR when ready for review. |
Note, in addition to undefined global variables, this function will need to declare an import for |
|
|
|
|
|
|
|
Noted @the-mayer |
Hi fellow outreachy interns. These set of functions have been worked on. |
Can I work on #4 (comment)
post the changes in #108 ? The warning in devtools::check post the changes are as follows:
|
Overview
Be explicit in all function calls. Utilize
rlang::.data
as appropriate, checking functions off the list as they have been updated.Function List
The text was updated successfully, but these errors were encountered: