Is it possible to open (not run using source) a R script for editing from the console of R studio or R command line
You can open a file for editing with edit
, e.g.,
edit(file = "test.R")
See help("edit")
for more information, in particular regarding different editors.
This is a nice command to edit an r script:
file.edit('foo.R')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With