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.

Filter by
Sorted by
Tagged with
305votes
10answers
520kviews

Update R using RStudio

How can I update R via RStudio?
user avatar
  • 18.7k
254votes
16answers
571kviews

Change R default library path using .libPaths in Rprofile.site fails to work

I am running R on Windows, not as an administrator. When I install a package, the following command doesn't work: > install.packages("zoo") Installing package(s) into ‘C:/Program Files/R/R-2.15.2/...
user avatar
228votes
4answers
251kviews

R - Markdown avoiding package loading messages

I have been using Knitr via R-Studio, and think it is pretty neat. I have a minor issue though. When I source a file in an R-Chunk, the knitr output includes external comments as follows: + FALSE ...
user avatar
  • 2,475
194votes
9answers
70kviews

Difference between R MarkDown and R NoteBook

I am trying to understand at a high level what the differences between R Markdown and R NoteBook. I know they are interrelated but I would like to figure out how they are related. My understanding is ...
user avatar
  • 7,078
124votes
18answers
81kviews

rJava load error in RStudio/R after "upgrading" to OSX Yosemite

I recently "upgraded" from OSX Mountain Lion to Yosemite and from R 3.1.3 to 3.2. Immediately after the upgrade, when I opened R or RStudio I got a pop-up message saying that I needed to install Java ...
user avatar
  • 86k
107votes
3answers
103kviews

How to add table of contents in Rmarkdown?

I am using RStudio for writing markdown documents and want to add Table of Contents (TOC) at top of the documents so that the user could click the relevant section for reading. There were some ...
user avatar
103votes
4answers
60kviews

Rstudio rmarkdown: both portrait and landscape layout in a single PDF

I wonder how to use rmarkdown to generate a pdf which has both portrait and landscape layout in the same document. If there is a pure rmarkdown option that would be even better than using latex. Here'...
user avatar
  • 1,051
93votes
4answers
105kviews

ggplot plots in scripts do not display in Rstudio

I have a strange issue with Rstudio: If a script calls ggplot2 functions to display a plot, then using Source to run the script does not produce the plots. If I select the whole script with Ctrl+A, ...
user avatar
  • 23.5k
90votes
6answers
77kviews

Auto-format R code in RStudio

Is there any possibilities for auto-formatting code in RStudio? I found this, but it is not connected with RStudio. Also it is desirable that it be customizable formatting.
user avatar
  • 1,678
87votes
3answers
110kviews

Understanding user file ownership in docker: how to avoid changing permissions of linked volumes

Consider the following trivial Dockerfile: FROM debian:testing RUN adduser --disabled-password --gecos '' docker RUN adduser --disabled-password --gecos '' bob in a working directory with nothing ...
user avatar
  • 11.7k
79votes
5answers
11kviews

Rstudio and Google Drive Syncing Problems: "The process cannot access the file because it is being used by another process"

So I'm using RStudio and storing my files on Google Drive (the version with folders on your system, acting like Dropbox). I'm using it because it provides a lot more space for free than Dropbox, and I ...
user avatar
  • 905
78votes
5answers
111kviews

Code to clear all plots in RStudio

I have code to clear the workspace: rm(list=ls()) and code to clear the console: cat("\014") Is there code to clear all plots from Rstudio?
user avatar
  • 1,696
72votes
1answer
43kviews

avoid string printed to console getting truncated (in RStudio)

I want to print a long string to the RStudio console so that it does not get truncated. > paste(1:300, letters, collapse=" ") [1] "1 a 2 b 3 c 4 d 5 e 6 f 7 g 8 h 9 i ... 181 y 182 z 183 a 184 b.....
user avatar
71votes
4answers
49kviews

How to convert R Markdown to HTML? I.e., What does "Knit HTML" do in Rstudio 0.96?

What commands are run when pressing "Knit HTML" on an R Markdown file in Rstudio 0.96? My motivation is that I might want to run the same command when I'm in another text editing environment or I ...
user avatar
71votes
5answers
33kviews

R knitr Markdown: Output Plots within For Loop

I would like to create an automated knitr report that will produce histograms for each numeric field within my dataframe. My goal is to do this without having to specify the actual fields (this ...
user avatar
  • 4,380

15 30 50 per page
1
2 3 4 5
483