-
Notifications
You must be signed in to change notification settings - Fork 3
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
on cran submission #39
Comments
Lintr is unhappy about the number of arguments of flux_calc and flux_plot, I am not sure what to do with that |
some functions do not need to be exported. I did not add the @export, so I am not sure why they are still being exported (see my comments on previous issue about exporting dataset) |
try deleting the namespace file - then running devtools::document to regenerate it. Sometimes unneeded lines in the namespace file don't get cleared out |
When you have "see ggsave()" - you can make this a link to the code. See https://roxygen2.r-lib.org/articles/rd-formatting.html#links |
flux_plot does have a lot of arguments. This makes it intimidating for the user. All these arguments asking for column names. Are they necessary? I would either have these hard coded so the names are known in advance, or add attributes that the function can extract and use to find the column names (this is what I did in traitstrap) For all the arguments that get passed to ggsave, you could put these into a list. so ggsave_args = list() You can then use do.call() to run ggsave (or alternatives at https://stackoverflow.com/questions/9129673/passing-list-of-named-parameters-to-function) |
flux_calc has a more managable number of arguments. Why do you need the gas constant as an argument - isn't it constant? As for flux_plot, columns should be an attribute of the data object so they don't need re-entering |
Several small issues.
person(given = c("Richard","James"), family = "Telford", ... )
rather thanperson(given = "Richard James", family = "Telford", ... )
so it is abbreviated correctlyThe text was updated successfully, but these errors were encountered: