Questions tagged [rstudio]

RStudio is an IDE for the R statistical programming language. DO NOT use this tag for general R programming problems, just use the R tag. ONLY use for RStudio-specific questions.

RStudio is a free and integrated development environment () for and . It includes a console, syntax-highlighting ACE-based editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.

RStudio is available in open source and commercial editions and runs on the desktop (, , and ) or in a browser connected to RStudio Server or RStudio Server Pro (Debian/Ubuntu, Red Hat Linux/CentOS, and SUSE Linux).

RStudio PBC, the organization behind RStudio IDE, is now officially named Posit PBC, rebranding some of its corporate products, notably Connect, Workbench and Package Manager.

Tag Usage

Only use this tag for specific RStudio issues such as GUI features, bugs, installation. Always make sure your questions are suited for Stack Overflow.

Related tags

Resources

7871 questions
3
votes
2 answers

RStudio initialization error, unexpected exception, fatal error

I am having an issue starting RStudio (desktop) that I did not have before. When I fire-up RStudio, within seconds, the grey screen freezes with the following error message: RStudio Initialization Error Unable to establish connection with R…
arjun
  • 123
  • 2
  • 7
3
votes
2 answers

Rmarkdown knit error: Fault/access violation in generated code

I've got a particular bug in my environment such that I cannot consistently knit Rmarkdown files to HTML, Word documents, or PDFs. The ability to knit varies across by file type. HTML - Sometimes it knits Word document - Sometimes it knits PDF -…
Vypa
  • 71
  • 1
  • 6
3
votes
0 answers

R Notebook doesn't show the output in the preview and in the .nb.html file

In Rstudio, I open a R Notebook, I run all chunks (I use the default script of Notebook). The "plot(cars)" display inline the plot. I save the Notebook (doc.Rmd). When I click on Preview, no output is shown in the preview. And no output is shown in…
DAT
  • 31
  • 2
3
votes
1 answer

RStudio: move focus among the panels

RStudio shortcuts exist for moving between Source and Console panes .. and showing the Environment/History and Packages/File System panes .. but not moving to them. Keyboard shortcuts:…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
3
votes
1 answer

Automatically move focus to console during run

I have written a source code for my users. At the start of the code it prompts users' inputs. The problem is, whenever they source the code, the focus is still in the source editor, such that some of them ended up typing their inputs in the source…
Matthew Hui
  • 634
  • 5
  • 18
3
votes
0 answers

RStudio uses wrong project path for a git repository

I have a RStudio (ver 1.1.414) project in a server whose path is of the form //server/path/project I would like to create a git path to this path and use it via RStudio. However, if a create a git repository via Tools->Project…
Heikki
  • 2,214
  • 19
  • 34
3
votes
1 answer

How can I prevent RStudio from turning my spaces into tabs? It seems to ignore my global options setting

I use spaces to indent but RStudio always converts spaces into tabs. This is even though I have the "Insert spaces for tab" global option selected. Drives me batty! Here's my settings in case I'm overlooking something. Thanks in advance!
mowshowitz
  • 69
  • 6
3
votes
1 answer

R package: underscores added to RcppExports.R when building

I work from different computers on the same R package with Rstudio, but for some reason, whenever I build the package, some of the computers will modify the RcppExports.R and RcppExports.cpp files by adding underscore in front of some functions. For…
VFreguglia
  • 2,129
  • 4
  • 14
  • 35
3
votes
2 answers

R dummies package weird column names when knitted via .Rmd

I've just noticed a very weird behavior in the dummies package of R when knitted in .Rmd. Here's the reproducible example. --- title: "Dummies Package Behavior" author: "Kim" date: '`r Sys.Date()`' output: pdf_document: toc: yes toc_depth:…
Kim
  • 4,080
  • 2
  • 30
  • 51
3
votes
1 answer

Why is RStudio displaying UTF-8 characters as in viewer

Windows 10 R 3.4.3 RStudio 1.0.153 I am using the tidyverse library to read in a tab delimited file which is UTF-8 encoded and which contains Cyrillic characters. This file displays fine when using Sublime text. After I import the file using…
tomPorter
  • 41
  • 4
3
votes
1 answer

RStudio on Mac OS X 10.13 getting X11 is not available error when trying to use fix()

I have installed XQuartz on my machine using homebrew and then I restarted my machine, when I try to use the fix() command in RStudio I get the following error > College=read.csv("College.csv",header=T,na.strings ="?") > fix(College) Error in…
cod3min3
  • 585
  • 1
  • 7
  • 23
3
votes
2 answers

ggplot in shiny app go to rstudio plot window

I have a shiny app that draw some ggplot2 plots in app. Now I’m making it into a package and export the plot drawing as a function. I found once I draw some ggplot in RStudio and start my shiny app, then all plots in my shiny app went to the RStudio…
dracodoc
  • 2,603
  • 1
  • 23
  • 33
3
votes
3 answers

Cannot install XML package in R/RStudio

[Environment: macOS 10.12.6, RStudio 1.1.383, R 3.4.2 (via homebrew)] Please note this is not a duplicate of this question - solutions there do not work for me. I am getting install errors when I attempt to install the XML package in RStudio: >…
Conrad
  • 2,197
  • 28
  • 53
3
votes
1 answer

How do I copy code from the console to the editor/source pane in Rstudio

User interface = Rstudio. Is there a short-cut key that will paste code from my console in Rstudio to a R Markdown file that I am developing in the workspace above the console? In the picture above, I would like to move the read1_file <-…
Collective Action
  • 7,607
  • 15
  • 45
  • 60
3
votes
0 answers

httpuv fails to compile on Azure HDI cluster

Context I'm working on Rstudio Server on an HDI cluster to work faster on large datasets but i encountered a problem. When i'm trying to install packages, i get this error (example with package sparklyr) > install.packages("sparklyr", repos =…
Orhan Yazar
  • 909
  • 7
  • 19
1 2 3
99
100