I'm developing R code whose output is an R script, is it possible to automatically load the generated file in a RStudio
tab?
So far I've checked the rstudioapi
, but I don't find any suitable function.
I've already tried:
file.show(stringr::str_c(name,".r"))
but file.show open the file using an external editor.