-
Notifications
You must be signed in to change notification settings - Fork 36
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
Check ideas #1
Comments
@HenrikBengtsson Looks great, thanks! |
BTW, is your check list in top box suggestion it is bad to specify |
YEs, it is bad to specify |
Why? |
Goes out of date often because people don't update it, and it is not a required field. Another date field is put in automatically by But again, this is subjective, and in your flavour you can turn it on and off as you like. |
Yes, I agree outdated
True, but on the other hand the I was mostly curious on your take on this, so nothing important to me. I like to be able to see when a package was "touched" by the developer (info that should be self contained). The I'm experimenting moving away from |
I'd really like to see a linter that goes through all the functions in your package and ensures that (1) they are prefixed and that (2) they are declared in your DESCRIPTION file. Also should ensure there are no |
@peterhurford What do you mean about functions being prefixed? Can you give an example? I am also not sure about declaring functions in |
Ah, awesome. 👍
Like making sure you call
Haha, yeah, I meant packages. |
That is not strictly compulsory if you import the function via NAMESPACE. (Or the whole package, although that is not suggested.) But it is true that explicit calls can be a legitimate requirement, and then we can check for this, yes. I'll add it above.
That is checked by |
Came here to suggest you check for code coverage, but I see you already have that. 👍 Other idea: any plan to integrate with https://github.com/jimhester/lintr? |
Yes, we will call |
Bioconductor has the BiocCheck package that performs some useful checks (here: https://github.com/Bioconductor/BiocCheck). |
@drisso 👍 |
Not sure I like this advice my self (I don't follow it so far ...) but I recently picked up (through discussion during UseR2016) that the use of One reason is motivated by the following (as stated by Hadley): > a <- data.frame(xyz = 1)
> a$x
[1] 1
> a[["x"]]
NULL
> |
@eribul |
Closing this now. I opened separate issues for the remaining ones. |
DESCRIPTION
fileURL
BugReports
Depends
Date
Valid fields (R CMD check
does most of this)R CMD check
does itNo whitespace from DESCRIPTION field namesR CMD check
does itNo blank lines from DESCRIPTIONR CMD check
does itNAMESPACE
fileimport
(only import functions)exportPattern
::
. See All external function calls use::
#41.Code complexity
S4
Functions to avoid
attach
setwd
sapply
library/require
Expressions to avoid
1:length(x)
Packages to avoid
multicore
, useparallel
instead. See Check: avoid using some packages #44Documentation
R CMD check
does not catch this, actually. See Checks: documentation #45Tests
Code style
Conforms to a standardHard to check in general, so closing now.R CMD check
The text was updated successfully, but these errors were encountered: