-
Notifications
You must be signed in to change notification settings - Fork 185
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
expect_lint() should be exported #178
Comments
Sure I could do it, but since you seem to know what to do why not make a pull request instead? See http://r-pkgs.had.co.nz/git.html#git-pullreq and https://help.github.com/articles/creating-a-pull-request/ for information on how to create one. Because this change requires re-documenting don't forget to run |
Unfortunately, I am behind an institutional proxy/firewall that makes cloning/pushing github repos impossible. |
@fangly For this simple change, you can just edit the file(s) online. |
Thanks gaborcsardi, but I would need to make a fork first. And then I wouldn't be able to run devtools::document() anyway. |
To follow up on this issue, the tutorial I mentioned above also list the "ids_with_token" function, which is defined in R/utils.R, but not exported. |
The vignette assumes you will be adding new linters to the lintr package, not creating them in external packages, which is why it references internal functions. As far as not being able to push you could also do the commits locally then use |
Well, I suppose you need to decide then: Considering that not everyone may be able to contribute the linter they wrote, and you may not want to accept the linters written by everyone, I would be in favor of option 2. Cheers, Florent |
|
@russHyde Feel free to close them yourself! |
Hi,
I am writing some custom linters following the document at https://cran.r-project.org/web/packages/lintr/vignettes/creating_linters.html . It turns out to be impossible to add testthat tests because the "expect_lint()" expectation is not exported by lintr.
I am thus forced to use the lintr:::expect_lint hack at the moment.
Could you please add a small "#' @export" statement in "R/expect_lint.R" please?
Cheers,
Florent
The text was updated successfully, but these errors were encountered: