MilesMcBain / tflow

An opinionated lightweight template for smooth targets flows.
Other
90 stars 9 forks source link

Utility for vscode build task #14

Open anthonynorth opened 2 years ago

anthonynorth commented 2 years ago

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
      }
    }
  ]
}