You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
tflow/inst/templates/blank.Rmd
Line 22 in 23be655
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 inwithr::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.The text was updated successfully, but these errors were encountered: