-
Couldn't load subscription status.
- Fork 10
Open
Labels
Description
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:
- Contents within curly braces, as you've done
- Access to "clipboard"
- 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.