Skip to content
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

Fix remaining check warnings from PEcAn.logger (fixes #2814) #2815

Merged
merged 33 commits into from Jul 21, 2021
Merged

Fix remaining check warnings from PEcAn.logger (fixes #2814) #2815

merged 33 commits into from Jul 21, 2021

Conversation

moki1202
Copy link
Collaborator

this pull request is directed towards getting the logger package ready to be released to CRAN! I will be constantly updating this pull request as we move forward until the task is finished!

Copy link
Collaborator Author

@moki1202 moki1202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes NOTE - `* checking DESCRIPTION meta-information ... NOTE
Authors@R field gives no person with name and roles.
Authors@R field gives no person with maintainer role, valid email
address and non-empty name.
Author field differs from that derived from Authors@R
Author: ‘Rob Kooper, Alexey Shiklomanov’
Authors@R: ‘’

Maintainer field differs from that derived from Authors@R
Maintainer: ‘Alexey Shiklomanov ashiklom@bu.edu
Authors@R: ‘’
`

added utils namespace to eliminate NOTE-no visible binding for global variable | similar note remaining for variable "dump.log"!
fixes NOTE- `* checking Rd line widths ... NOTE
Rd file 'severeifnot.Rd':
  \examples lines wider than 100 characters:
       severeifnot("I absolutely cannot deal with the fact that something is not a list.", is.list(a), is.list(b))`
base/logger/DESCRIPTION Outdated Show resolved Hide resolved
base/logger/DESCRIPTION Outdated Show resolved Hide resolved
moki1202 and others added 3 commits July 1, 2021 12:07
Co-authored-by: Chris Black <chris@ckblack.org>
fix warning - Undocumented arguments in documentation object 'check_conditions'
  ‘...’
@infotroph infotroph changed the title fixes #2814 | fix every note, warning, error from the R CMD check Fix R CMD check warnings from PEcAn.logger (fixes #2814) Jul 3, 2021
@infotroph infotroph changed the title Fix R CMD check warnings from PEcAn.logger (fixes #2814) Fix remaining check warnings from PEcAn.logger (fixes #2814) Jul 3, 2021
base/logger/DESCRIPTION Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
base/logger/R/logifnot.R Outdated Show resolved Hide resolved
moki1202 and others added 10 commits July 3, 2021 20:00
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
@moki1202
Copy link
Collaborator Author

moki1202 commented Jul 3, 2021

@infotroph same goes for the similar warning in loggergetLevelNumber function? it's also not used anywhere outside logger.R.

@moki1202
Copy link
Collaborator Author

moki1202 commented Jul 3, 2021

/document

@infotroph
Copy link
Member

@infotroph same goes for the similar warning in loggergetLevelNumber function? it's also not used anywhere outside logger.R.

Yep, that works! In all three of these cases it also would have worked to leave them as Roxygen comments but add a @noRd tag; which approach is "better" is personal preference and probably depends whether your text editor displays Roxygen comments more or less nicely than plain comments ;)

@moki1202
Copy link
Collaborator Author

moki1202 commented Jul 4, 2021

/document

base/logger/R/logger.R Outdated Show resolved Hide resolved
moki1202 and others added 2 commits July 4, 2021 15:30
Co-authored-by: Chris Black <chris@ckblack.org>
Co-authored-by: Chris Black <chris@ckblack.org>
base/logger/DESCRIPTION Outdated Show resolved Hide resolved
Co-authored-by: Chris Black <chris@ckblack.org>
@infotroph infotroph marked this pull request as ready for review July 15, 2021 20:40
@infotroph
Copy link
Member

/build

@infotroph
Copy link
Member

This PR is ready to merge. HUGE thanks to @moki1202 for giving us our first PEcAn package that checks fully clean: 0 ERRORs, 0 WARNINGs, 0 NOTEs*, and all historically-ignored messages in Rcheck_reference.log resolved and deleted. More like this, please!

*Technically when you check with --as-cran there's still one NOTE saying who the maintainer is and what license the package has, but this is normal and can only be fixed by... submitting it to CRAN, which is the imminent next step for this package!

@mdietze mdietze merged commit 17c10bc into PecanProject:develop Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants