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

pkgload::system.file is too tolerant #104

Closed
oganm opened this issue Jul 17, 2019 · 0 comments
Closed

pkgload::system.file is too tolerant #104

oganm opened this issue Jul 17, 2019 · 0 comments
Labels
feature a feature request or enhancement

Comments

@oganm
Copy link

oganm commented Jul 17, 2019

On a testing environment if one does

devtools::load_all()
system.file('inst/filename', package="packageName", mustWork = TRUE)

devtools::system.file will happily return the file. However this is not the correct syntax.

If I do

devtools::install('.')
library(pacakgeName)
system.file('inst/filename', package="packageName", mustWork = TRUE)

I will get no file found because of the trailing inst.

@jimhester jimhester added the feature a feature request or enhancement label Apr 3, 2020
@lionel- lionel- closed this as completed in c923564 Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants