gaqrelief.blogg.se

How to use visual studio code for r
How to use visual studio code for r









how to use visual studio code for r

We did not try to abstract the path-generating rules for the guests’ Live Share instance into new keyboard shortcuts, but this seems like a solvable problem to allow guests to run devtools::load_all() or source() with minor modifications. However, the guest can still run the code themselves (such as by selecting and running the source code in an R script, or using Command-Enter line by line) as long as they do not try to source the entire package. In our example, instead of the host’s path ~/Desktop/mutagen/R/cast_integers.R, the guest’s path was an abbreviated /R/cast_integers.R, which led to errors when loading and sourcing from keyboard shortcuts. Why? Because the path to the folder directory is different for the host and guest. Heres a link to Visual Studio Codes open source repository on GitHub.

how to use visual studio code for r

Way back in the Before Time, my older brother and I worked together on an R package called files, we noticed the usual loading of a package in development, via devtools::load_all(), or sourcing an entire file using Shift-Command-S (the VS Code version of RStudio’s Shift-Command-Enter), will not work for the guest. Edgar Degas, Dancers Practicing at the Barre (1877)











How to use visual studio code for r