Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Facilitate integration with RStudio build pane #258

@petrbouchal

Description

@petrbouchal

Prework

  • Read and agree to the code of conduct and contributing guidelines.
  • If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
  • New features take time and effort to create, and they take even more effort to maintain. So if the purpose of the feature is to resolve a struggle you are encountering personally, please consider first posting a "trouble" or "other" issue so we can discuss your use case and search for existing solutions first.
  • Format your code according to the tidyverse style guide.

Proposal

I found the setup presented in https://ulhpc-tutorials.readthedocs.io/en/latest/maths/R/PS10_targets.html#18 very useful (build script running tar_make() recognised in RStudio's build pane). I wonder if the package itself could facilitate this setup?

What I think this would mean => a possible way of implementing it

  • make it easier to create a build script => provide a helper function analogous to tar_script() + make the script executable on UNIX machines (not sure if anything like that is required on Windows)
  • integrate with RStudio build pane => either by providing a hint to the user in a message, or by updating the Rproj file (directly or perhaps {rstudioapi} can help)
  • provide an indication at the end of tar_make()'s output that the pipeline has finished running (similar to package build/test/document commands). There is a summary-type line when all targets are skipped ("Already up to date") but not when some run; for both cases a message that stands out more might be useful.

The last bit would be worthwhile and I expect low-cost regardless of what you think of the previous two - happy to submit as a separate issue if you wish.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions