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
31
votes
1 answer

wrap code in R Studio text editor

How can one wrap commands within a lengthy line of code in the text editor in RStudio such that RStudio recognizes it as the continuation of a single piece of code? Currently, my code is 1 incredibly long line that is difficult to manage. With my…
slipleft
  • 335
  • 1
  • 3
  • 9
31
votes
8 answers

Package inputenc Error: Unicode char \u8 in RStudio

In RStudio, when i go for convert my Markdown file to PDF then it gives me the error: output file: report.knit.md ! Package inputenc Error: Unicode char \u8: not set up for use with LaTeX. See the inputenc package documentation for explanation. …
Animesh Kumar Paul
  • 2,241
  • 4
  • 26
  • 37
31
votes
5 answers

Rpresentation in Rstudio - Make image fill out the whole screen

Making an Rpresentation in Rstudio with knitr I have a slide with just one picture, which I want to fill out the whole screen/slide. How do I do that? The second slide of the following .Rpres-document is set to 2000x2000 pixels but it still only…
Rasmus Larsen
  • 5,721
  • 8
  • 47
  • 79
31
votes
2 answers

Rstudio calls source() when saving script

I'm using Rstudio on my Mac OS 10.9.2. It was fine until I installed the new version 98.778. Whenever I try to save my script. It automatically calls source("myscript.R") for me, which is very annoying. I then re-installed the previous version,…
NewbieDave
  • 1,199
  • 3
  • 12
  • 23
31
votes
4 answers

Rstudio is duplicating commands in the command line

Having a weird problem in R that seems to have come out of nowhere... output in the RStudio terminal is repeated without me asking for it... i.e., > 3+4 > 3+4 [1] 7 [1] 7 Anyone else have this issue and have any ideas how to resolve it? I'm also…
Dan_Alexander
  • 369
  • 2
  • 4
  • 7
31
votes
1 answer

How to get RStudio to automatically compile R Markdown Vignettes?

I am trying to write R Package vignettes using R Markdown. I am using R Studio's package authoring tools. I have R greater than version 3.0. I have an .Rmd file in the vignettes folder that contains the following text at the…
Jeromy Anglim
  • 33,939
  • 30
  • 115
  • 173
30
votes
1 answer

How to show Spinning Wheel or Busy Icon while waiting in Shiny

Hey i've just started working with R and Shiny. Trying to make a dashboard which displays different charts. As there is a lot of data to process, the plots or charts take some time to display after the action button is clicked i.e. "launch Campaign'…
Danish Zahid Malik
  • 541
  • 2
  • 7
  • 19
30
votes
2 answers

RStudio: can I pop out the source pane?

I have a dual monitor and I wish I can pop out the "source pane"(where I edit my code), so that I can edit the code in one monitor and track everything else in another. Does anyone know if this is possible? Thank you very much for your help.
BlueFeet
  • 2,407
  • 4
  • 21
  • 24
30
votes
2 answers

Rmarkdown directing output file into a directory

I found a really nice trick (link) to a function of knitr, where you can save your output html into an output folder and under a different filename. The only thing you have to head to the header is the following: title: "analysis" author: "Me" date:…
drmariod
  • 11,106
  • 16
  • 64
  • 110
29
votes
3 answers

How to update GitHub authentification token on Rstudio to match the new policy?

While pushing a commit to GitHub yesterday, I received an email from the GitHub team: Basic authentication using a password to Git is deprecated and will soon no longer work. Visit…
Rosalie Bruel
  • 1,423
  • 1
  • 10
  • 22
29
votes
4 answers

Keyboard shortcut for inserting roxygen #' comment start

This question might be over-answered but I could not find one. Basically I am using RStudio and the keyboard shortcut cmd + shift + c for inserting comments. Is there an other combination to insert directly the roxygen tags #' ? Or a way to modify…
ClementWalter
  • 4,814
  • 1
  • 32
  • 54
29
votes
2 answers

How can I change paper size when using Knit PDF in RStudio?

By default the PDF documents created by the Knit PDF are US Letter size. Instead I would like to create A4 size documents. I have a feeling this should simple to change, either in the RStudio GUI or by adding an option to the metadata at the top of…
Nicholas
  • 1,416
  • 1
  • 15
  • 15
29
votes
2 answers

R markdown error: can't produce HTML file

I can't produce an HTML document from any .Rmd file by pressing the Knit HTML button in R Studio, including the sample document that summarizes and plots the cars dataset. Here's the error message that I get: Error: unrecognized fields specified in…
blakeoft
  • 2,370
  • 1
  • 14
  • 15
29
votes
2 answers

The correct use of devtools and/or RStudio with respect to .Rbuildignore

I'd like to exclude the following ressources when building an R package via .Rbuildignore: ^.*\.Rproj$ ^\.Rproj\.user$ inst/examples inst/prof man-roxygen tests But I'm confused as sometimes it seems to work and sometimes it doesn't. I'm guessing…
Rappster
  • 12,762
  • 7
  • 71
  • 120
29
votes
4 answers

rstudio - is it possible to run a code in the background

Question regarding RStudio. Suppose I am running a code in the console: > code1() assume that code1() prints nothing on the console, but code1() above takes an hour to complete. I want to work on something else while I wait for code1(). is it…
uday
  • 6,453
  • 13
  • 56
  • 94