Skip to content

Run code using current file name #183

Closed

Description

@andycraig

runSource and knitRmd wrap the current file’s path in some R code and send that code to the terminal.

We could generalise this to a function wrapPath (or something) that has as parameters the R function name and any additional parameters to pass to that R function. Both runSource and knitRmd could be refactored to use wrapPath.

The key benefit of this is that then users could add their own similar commands in their settings.json file, without needing vscode-R itself to be changed.

Activity

  1. changed the title [-]Generalise runSource, knitRmd[/-] [+]Run code using current file name[/+] on Jan 24, 2020
  2. renkun-ken commented on Feb 22, 2020

    @renkun-ken
    Member

    Closed by #237.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions