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

withr::with_dir() not necessary if 'evaluate chunks in project directory' option set #19

Open
Aariq opened this issue Feb 11, 2022 · 2 comments

Comments

@Aariq
Copy link
Contributor

Aariq commented Feb 11, 2022

# withr::with_dir(here::here(), {

So I recently realized a maybe simpler way to deal with tar_load() not working when running chunks interactively in .Rmd files. If preferences for RStudio are set to evaluate chunks in project directory, tar_load() works fine without wrapping it in withr::with_dir(). It doesn't seem like there's a way to do that on a project-level or file level though, so maybe this should stay in the template anyways. I know I was the one that added this bit of code to the template, but I'm actually not using this anymore and I just wanted to share my new workaround.

@Aariq
Copy link
Contributor Author

Aariq commented Feb 11, 2022

Screen Shot 2022-02-11 at 10 50 16 AM

@Aariq
Copy link
Contributor Author

Aariq commented Feb 11, 2022

followup to #5

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

No branches or pull requests

1 participant