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

Update the Makevars files not to write files in user's HOME directory #25

Merged
merged 3 commits into from
Dec 19, 2022

Conversation

eitsupi
Copy link
Member

@eitsupi eitsupi commented Dec 19, 2022

See https://github.com/r-rust/faq.

How to avoid writing in HOME

CRAN has a policy:

packages should not write in the user’s home filespace (including clipboards), nor anywhere else on the file system apart from the R session’s temporary directory

On most systems, the default cargo configuration keeps a cache in ~/.cargo, which can be changed by setting the CARGO_HOME envvar when invoking cargo. The hellorust package does this in the Makevars file.

This change allows users `Sys.setenv("NOT_CRAN" = TRUE)` in R session
@eitsupi eitsupi changed the title version 0.1.0 Update Makevars not to write files in user's HOME directory Dec 19, 2022
@eitsupi eitsupi added enhancement New feature or request and removed release labels Dec 19, 2022
@eitsupi eitsupi marked this pull request as ready for review December 19, 2022 14:55
@eitsupi eitsupi changed the title Update Makevars not to write files in user's HOME directory Update Makevars files not to write files in user's HOME directory Dec 19, 2022
@eitsupi eitsupi changed the title Update Makevars files not to write files in user's HOME directory Update the Makevars files not to write files in user's HOME directory Dec 19, 2022
@eitsupi eitsupi merged commit 02beaed into main Dec 19, 2022
@eitsupi eitsupi deleted the update-makevars branch December 19, 2022 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant