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

Suggestion for discussion: vignettes should not have 'setwd("some_location")' #21

Open
richelbilderbeek opened this issue Aug 1, 2016 · 4 comments

Comments

@richelbilderbeek
Copy link

Here I suggest a feature not on #1 and am open to discussion about this.

I have seen vignettes that in the first line do:

setwd("some_location")

The reason these lines are in, is because the person using the vignette wants to process data in some other folder.

IMHO, instead of putting this line in a vignette, this line should be written in the terminal instead. It makes the vignette longer than needed for any other user.

I know that lintr disallows the use of absolute paths in its tests, and I am only 50% sure that the vignettes are checked for this.

If confirmed that one can yet use setwd in a vignette, I suggest to add it to goodpractice.

I do volunteer to confirm this.

@gaborcsardi
Copy link
Collaborator

To be honest I am not sure what you suggest here? I think we already lint for setwd, don't we?

@richelbilderbeek
Copy link
Author

I'll check...

@richelbilderbeek
Copy link
Author

I've checked: there is not linting of a vignette, according the this Travis CI build log.

@gaborcsardi
Copy link
Collaborator

OK, thanks. We should probably lint vignettes as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants