Questions tagged [rtvs]

R Tools for Visual Studio (RTVS for short) is an official Microsoft extension for Visual Studio IDE that adds support for the R programming language.

R Tools for Visual Studio (RTVS for short) is an official Microsoft extension for Visual Studio IDE that adds support for the R programming language.

Development of RTVS has now been discontinued. Note that RTVS only works with Visual Studio 2015 and 2017. An alternative if you are using VS 2019, and don't want to use RStudio, is to use Visual Studio Code and install the R or R Tools extension.

28 questions
8
votes
1 answer

Can I run a Shiny app from within R Tools for Visual Studio

Is it possible to run Shiny apps from within Visual Studio if I'm using R Tools for Visual Studio (RTVS). If yes, how?
lebelinoz
  • 4,890
  • 10
  • 33
  • 56
7
votes
2 answers

How do you change the version of R running in Visual Studio 2017?

I would like to run R version 3.4 instead of the current, 3.3.2, and don't really know where to begin. Web searches left we with little, perhaps, though, because I am not used to working on the Windows 10 platform and don't fully understand how the…
user1603472
  • 1,408
  • 15
  • 24
5
votes
1 answer

What is the use of RTVS if you have Rstudio already?

What is the advantage go R tools for Visual Studio when you already have Rstudio installed on your machine. Even if I am using Visual Studio and lets say in that I am working on some C# project, that will be a completely different environment than…
Artiga
  • 776
  • 2
  • 16
  • 37
4
votes
1 answer

R Tools for Visual Studio not installing properly in VS2017

I tried installing the "R tools for Visual studio" in visual studio 2017, as explained in https://learn.microsoft.com/en-gb/visualstudio/rtvs/installation#installation-in-visual-studio-2017 , but after installation nothing shows up in VS2017. The…
Luc C
  • 1,133
  • 8
  • 22
3
votes
1 answer

RTVS: Unable to Knit Document with data.table

I am trying to get a simple R Markdown document working with the data.table package in Visual Studio (RTVS) 2017 (15.7.4), to no avail. Here is a minimum reproducible .rmd file (with some optional debug options turned on): --- title:…
Brandon Moretz
  • 7,512
  • 3
  • 33
  • 43
3
votes
1 answer

RTVS can't see my regular R, and is telling me to use Microsoft R Client

I've installed R for Visual Studio (RTVS 1.0.30321.1407) on Microsoft Visual Studio 2015 Professional 2015 Version 14.0.25431.01 Update 3. I already have regular R 3.4 on my machine, but the R Interactive window is telling me I need to install…
lebelinoz
  • 4,890
  • 10
  • 33
  • 56
2
votes
0 answers

R tools (RTVS) causes Visual Studio 2017 to crash

I have recently installed R tools (RTVS) for Visual Studio 2017 https://learn.microsoft.com/en-gb/visualstudio/rtvs/installing-r-tools-for-visual-studio I am running version 15.5.6 of Visual Studio 2017. The installation of the R tools addin…
Myles J
  • 2,839
  • 3
  • 25
  • 41
2
votes
1 answer

Passing More then One Parameter to [sp_execute_external_script] for Executing R code

Here is the scenario where i am trying to pass three parameter namely empid2 and Name1 & DOB1. i am unable to pass the parameter and get the resultant data frame at the OutPutDataset. Observed : with One Parameter passing i am getting the result…
Nabi Shaikh
  • 787
  • 1
  • 6
  • 26
2
votes
1 answer

R function definition in Visual Studio v.s. R Gui

When I write function name without parenthesis in R Gui (e.g. library) I see the complete function definition (several pages of code); in Visual Studio 2017 environment I see only the following: function (...) { if (nargs() == 0) { …
user2341923
  • 4,537
  • 6
  • 30
  • 44
2
votes
3 answers

Base R library not loading in VS

Situation: I have installed R 3.3 and set up R for Visual Studio extension. Code snippet: log.ir <- log(iris[, 1:4]) ir.species <- iris[, 5] ir.pca <- stats:::prcomp(log.ir, center = TRUE, scale = TRUE) This works in R interactive window in…
nlv
  • 791
  • 7
  • 28
2
votes
1 answer

VisualStudio 2017 R Project

I have a simple R Project. When I create a new project it opens up a window with the title script.R. I type in a simple 3 line script that runs without error in the interactive window but when I "rebuild all" I get MSB4057 The target "rebuild" does…
Kevin Burton
  • 133
  • 1
  • 1
  • 8
2
votes
2 answers

How to visualize charts in Visual Studio and Azure ML through R script?

I have seen on various examples (even in Azure ML) that you are able to create appealing charts using R in Visual Studio (not R Studio!), but I have no clue how they did it. I am experienced with R, but if someone could point me in the right…
1
vote
0 answers

RTVS plotting disconnects R session

When I try to make a simple plot in R using RTVS like plot(1:100) that states "Interactive Window is disconnected from R session. Click "Reset" to start a new session." The Plotting device shows "R Plot - Device 0", and I can't get a value other…
Jason
  • 9
  • 3
1
vote
1 answer

Debug certain lines in RTVS (R Tools for Visual Studio)

Currently the only way to debug in RTVS is to first attach the debugger and then source the file, as shown in this official manual. However, this is rather inconvenient, since my script usually expands to hundreds of lines and it will take forever…
R. Zhu
  • 415
  • 4
  • 16
1
vote
1 answer

How to Change the Font Size of the R Help Window in R Tools for Visual Studio (RTVS)?

I am using the R Tools for Visual Studio (RTVS) IDE. I want to increase the font size in the R Help window. For example, if you have RTVS installed in your Visual Studio, loading "Data science settings" from the R Tools menu and entering ?mean()…
coip
  • 1,312
  • 16
  • 30
1
2