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

Utility for vscode build task #14

Open
anthonynorth opened this issue Oct 14, 2021 · 0 comments
Open

Utility for vscode build task #14

anthonynorth opened this issue Oct 14, 2021 · 0 comments

Comments

@anthonynorth
Copy link

Can we add a utility for configuring a vscode build task to run targets::tar_make(). Something like:

tflow::use_vscode(default=TRUE)

Which writes the following to ./.vscode/tasks.json

{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "process",
      "command": "Rscript",
      "args": ["-e", "targets::tar_make()"],
      "label": "tflow: make",
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}
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