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
29
votes
2 answers

Setting up R to pick up texlive rather than miktex on Windows

On Windows, how could I instruct R to call TeXlive instead of MikTeX? I've got R set up on my Linux and Windows machines. On my Windows machines, I happen to have both MikTeX and TeXlive available. For reasons I won't go into I'd like R to call…
PatrickT
  • 10,037
  • 9
  • 76
  • 111
28
votes
11 answers

Warning in install.packages: unable to move temporary installation

I've found a number of questions related to this warning when installing or updating packages in R/RStudio, but none seem to completely match my situation: Corporate Windows 7 system, so no access to admin privileges No way to make changes to…
JSCard
  • 883
  • 2
  • 8
  • 14
28
votes
5 answers

"plot.new has not been called yet" error in rmarkdown (Rstudio 1.0.44)

I am using a recent version of Rstudio with an iMac Version 1.0.44 – © 2009-2016 RStudio, Inc. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) And I noticed the notebook function for rmarkdown files. When…
John Smith
  • 1,604
  • 4
  • 18
  • 45
28
votes
1 answer

Unable to compile PDF in R Studio (LaTeX Error: File `lmodern.sty' not found.)

I can't compile the most basic PDF file in R studio. This is my error message: output file: Report.knit.md ! LaTeX Error: File `lmodern.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file…
geneorama
  • 3,620
  • 4
  • 30
  • 41
28
votes
1 answer

R, RStudio: Programmatically switch between 32-bit and 64-bit versions of R

Is there a function that, within RStudio, restarts the R console in 64-bit mode or 32-bit mode without re-opening RStudio (or at least automatically re-opening it if that can't be avoided)? I commonly run in 32-bit when using RODBC so that I can…
mcjudd
  • 1,520
  • 2
  • 18
  • 33
28
votes
1 answer

How to replicate Knit HTML in a command line?

I know this question is similar to this one. But I couldn't get a solution there so posting it here again. I want to get the exact same output as I get by clicking "Knit HTML" but via a command. I tryied using knit2html but it messes with the…
Avinash
  • 2,521
  • 4
  • 21
  • 35
27
votes
2 answers

Code folding in RStudio: Creating hierarchy in the code

I'm writing R scripts in RStudio and I use the code folding a lot. I found that you can see the hierarchy of the folding by pressing cmd + shift + O. This is super helpful. # to my dear love…
M. Beausoleil
  • 3,141
  • 6
  • 29
  • 61
27
votes
4 answers

Installing R on Android

I am trying to install it on an Android operating system (I have a Samsung Galaxy tablet). I would like to install both R and RStudio. I've been online to try and find out about this but most of the articles are quite old (going back to 2013) and…
JassiL
  • 432
  • 1
  • 7
  • 24
27
votes
4 answers

multiple independent R sessions in Mac OS X

I need to run multiple R sessions, and hope that they can be performed in different R sessions. In Windows, I am able to open an arbitrary number of R sessions, and run different codes in each session (both RGui and RStudio). However, in Mac OSX,…
alittleboy
  • 10,616
  • 23
  • 67
  • 107
26
votes
4 answers

I want to get rid of cacheKey error in .rs.WorkingDataEnv

Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) : invalid first argument I used the rm() function in R to delete a couple of data frames. They were successfully deleted. However, this prompt kept popping up anytime I ran…
Bright Sackey
  • 269
  • 1
  • 2
  • 4
26
votes
5 answers

Find and replace text in all files in Rstudio

I am wondering why, still, there is not a feature in Rstudio to search all files in the current project (package) and replace a given text!? Or maybe there is one and I am not aware of! ctrl+shift+f only finds in all files without…
Farid Cheraghi
  • 847
  • 2
  • 12
  • 23
26
votes
4 answers

Rtools is not being detected from RStudio

I am using latest R, RStudio and Rtools. -- I have updated the environment variables. Now I can call gcc, or R from command line. While I was trying to publish an app from the RStudio, I get the following error, Preparing to deploy…
Droid-Bird
  • 1,417
  • 5
  • 19
  • 43
26
votes
5 answers

How can I specify pandoc's markdown extensions using a YAML block?

Background Pandoc's markdown lets you specify extensions for how you would like your markdown to be handled: Markdown syntax extensions can be individually enabled or disabled by appending +EXTENSION or -EXTENSION to the format name. So, for…
briandk
  • 6,749
  • 8
  • 36
  • 46
26
votes
4 answers

Is there a way to knitr markdown straight out of your workspace using RStudio?

I wonder whether I can use knitr markdown to just create a report on the fly with objects stemming from my current workspace. Reproducibility is not the issue here. I also read this very fine thread here. But still I get an error message…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207
25
votes
7 answers

How do I prevent exposure of my password when using RGoogleDocs?

I love RGoogleDocs and use it a lot. However, I don't like entering my password all the time. Obviously I could just type the password into the R script and would never have to enter it again. But thats not viable since it means that my password…
Farrel
  • 10,244
  • 19
  • 61
  • 99