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

Use of drake_config() #3

Closed
wlandau opened this issue May 23, 2019 · 3 comments
Closed

Use of drake_config() #3

wlandau opened this issue May 23, 2019 · 3 comments

Comments

@wlandau
Copy link

wlandau commented May 23, 2019

@DominikRafaczk, I would just like to point out a minor detail on slide 6. Contrary to intuition, problems can arise when you call

vis_drake_graph(drake_config(plan))

or

drake_config(plan) %>%
  vis_drake_graph()

rather than the more reliable

config <- drake_config(plan)
vis_drake_graph(config)

Details: ropensci/drake#163, ropensci/drake#335, ropensci/drake#527, ropensci/drake#874.

@wlandau
Copy link
Author

wlandau commented May 23, 2019

To avoid this issue altogether, you can define a _drake.R file and use r_make() and r_vis_drake_graph() instead: https://ropenscilabs.github.io/drake-manual/projects.html#safer-interactivity

@DominikRafacz
Copy link
Owner

Thanks for pointing it out. I'm just learning how to use drake and it seems that I need to learn a lot more...
I've changed the code according to your suggestion.

@wlandau
Copy link
Author

wlandau commented May 26, 2019

Thanks!

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

2 participants