Skip to content

Extending flexibility of SOcheck #12

@mrdwab

Description

@mrdwab

I think SOcheck is a great idea, but I wonder if re-entering code in curly braces is going to be the typical usage scenario.

Perhaps it can be extended in the following way: Allow as input either:

  1. Contents within curly braces, as you've done
  2. Access to "clipboard"
  3. Copying the contents of "~/.active-rstudio-document" as the sourcefile (working under the assumption that RStudio is a popular IDE for R)

This could probably be done easily with a switch statement, and I think it would make the function a little bit more practical to use. For example, a lot of times, I would have a separate script tab open in RStudio where I write the code for my SO answers. It would be more useful for me if I could simply type SOcheck() in the console, and have the active document checked with vanilla R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions