-
Notifications
You must be signed in to change notification settings - Fork 8
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 notes #692
R cmd notes #692
Conversation
For plot to be properly documented and rendered all arguments must be present in the methods, previously we only had x, which led to scales not being seen as a package that was needed. Now that y and ... have been added the package is compiling without the error noted by Part of #671 Close the PR #672, which is no longer needed with this commit. The methods proposed in #672 was a work around where this commit fixes the problem.
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
DESCRIPTION
Outdated
@@ -79,6 +79,7 @@ Suggests: | |||
rmarkdown, | |||
snowfall, | |||
testthat (>= 3.0.0), | |||
tidyr, | |||
tidyverse, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tidyverse maintainers have asked R package developers to not add tidyverse to Imports, Depends, or Suggests in an R package (see here). The preferred approach is to list specific packages used within the tidyverse instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Andrea-Havron-NOAA for noticing this, I will remove tidyverse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @Andrea-Havron-NOAA I also noticed that we needed {purrr} so I added that. And, I added a discussion about {processR} which is used in the tests but that does not need to be decided today so I am going to go ahead and merge in this PR.
CXX17STD = -std=c++17 -w | ||
|
||
USE_CXX17 = "yes" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this line need to be added to Makevars.win?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The R CMD check for windows, linux, and mac currently states
* checking C++ specification ... OK
Not all R platforms support C++17
with the current configuration so I believe the files are fine as is.
to remove the R CMD check WARNING that * checking for unstated dependencies in 'tests' ... WARNING Warning: '::' or ':::' import not declared from: 'tidyr' Removes tidyverse and adds purrr. Started a Discussion about processR which is no longer on CRAN. Part of #671
To fix the WARNING of get_expected_name: missing arguments not allowed in calls to 'c'
To remove the "no visible binding for global variable" warning Part of #671
In favor of USE_CXX17 = "yes" and removes -w flag where this fix is known to work on Windows.
m_weight_at_age and Rcpp_ParameterVector needed help on the documentation, where none of the methods were documented for the latter. They still are not exported, just the m_* functions are. Moves Rcpp_Parameter* to zzz.R because when in operators it was leading to warnings when compiling in R. The movement allows this file to be ran before the others and it does not matter if Rcpp_Parameter or Rcpp_ParameterVector is exported/defined. I also worked on the formatting of those functions as well as combining the documentation rather for similar, i.e., methods. Part of #671
R CMD check was complaining about significant warnings in compiling the c++ code because i was not initialized. Close #690
9738bc1
to
5def7e4
Compare
Thank you @Andrea-Havron-NOAA for the quick review, super helpful as I am trying to get each new branch merged in daily for these small trivial changes so people can branch off of dev daily without coming into merge conflicts at the end of the day. [Edit]: We still have
and
where the latter is going to be fixed by Matthew by not using
|
What is the feature?
Changes to reduce number of warnings and notes from R CMD check from 3 and 4 to 1 and 2, respectively
How have you implemented the solution?
x, y, ...
instead of justx
even though we only need x arguments to the method ofplot()
for FIMSFrame to match plot.setMethods()
out of operators.R to zzz.R to eliminate warnings that are found in R CMD checkmethods::setMethods()
Does the PR impact any other area of the project, maybe another repo?
Will close PR #672 because changing the call to plot is more robust than exporting scales.
Big thanks to @arni-magnusson for mentioning how important it is to keep these notes and warnings to a minimum so new contributors are not overloaded with warnings when trying to compile and can see if their changes are making a difference.
@Andrea-Havron-NOAA can you give this a quick glance?
Close #671