RStudio is an IDE for working with the programming language R. It also has in-built functionality for compiling .Rnw files to .tex files and then directly to .pdf files. It can be set up to process the .Rnw file with either Sweave or knitr.

learn more… | top users | synonyms

1
vote
1answer
37 views

Unexplained “NULL” in pandoc.table in ioslides [on hold]

I'm attempting to use pander::pandoc.table() in a ioslides slide and I can't figure out how to get rid of the NULL caption at the bottom of the table. With this example code: ```{r, results='asis', ...
2
votes
1answer
57 views

knit() doesn't create .tex file with necessary preamble

I have a question about creating .tex from .Rnw using knitr in Rstudio. I have a test.Rnw file while looks like the following: \input{report_preamble_en.tex} \title{test} \author{author} ...
0
votes
0answers
41 views

How to instal document class type for use in R studio.

I found a template on writeLaTex.com for optica style articles. I downloaded the optica.cls from the optical website so i could follow that format. Just fooling around to learn more and unfortunately ...
0
votes
0answers
50 views

How can I nest a code chunk within an enumerate environment when using R Markdown?

When I attempt to do this using this code: --- title: "Title" author: "Me" date: "31 October 2014" output: pdf_document: includes: in_header: includes.sty --- ...
23
votes
2answers
3k views

Why did my TeX-related GUI program stop working in Mac OS X Yosemite?

For example, TeX Live Utility 1.17 and earlier will not work on Mac OS X 10.10 Yosemite. If a shell task relies on the PATH environment variable to launch a command, rather than a fully-specified ...
4
votes
1answer
1k views

no tex installation detected on RStudio after OS X 10.10 yosemite upgrade

I upgraded my MAC to OS X 10.10 yosemite today. Now, when I run RStudio and try to use Knitr to compile pdf, it says no text installation detected. So, I did the following steps sequentially. ...
1
vote
1answer
895 views

Knitr and rmarkdown will not add figure captions to the output

I am writing a report on Rmarkdown and knitr using RStudio, and cannot find a way to get figure captions on my document. My code for the chunk where I try to plot is like: ```{r ...
1
vote
0answers
55 views

Setting LaTeX => PS => PDF in RStudio

I am using RStudio, with knitr, and want to use Lodewyckx's graphicalmodels.sty for graphs. It requires changing output profile to LaTeX to PS to PDF. Can this be done in RStudio still using knitr?
2
votes
1answer
678 views

No TeX installation detected. Please install TeX before compiling - RStudio Knitr on Mac [closed]

I have tried to reinstall the MacTex twice. I even reinstall R and RStudio. Nothing could cure this problem. Please Help me, I'm in middle of my thesis and I need to use Knitr and RStudio is only easy ...
2
votes
1answer
76 views

long table working in TexNiccenter but not in R Studio GUI

I'm having a weird error where my code is working just fine in TexNiccenter but unable to compile within the R studio GUI (probably not an R studio problem just R problem). Here's some background: my ...
0
votes
1answer
89 views

Any LaTex-based software for beginners? [duplicate]

I want to learn LaTex language so I can format and use that to compile a nice pdf with descriptive statistics using Knitr in RStudio. Any recommendation?
2
votes
0answers
185 views

Configure R Studio to use Biber for APA on Beamer Slides (Biblatex + Biber + R Studio + MiKTeX) [duplicate]

I'm trying to generate with R Studio a beamer presentation that uses backend=biber option. Here is my MWE: \documentclass{beamer} \usepackage[american]{babel} \usepackage{csquotes} %apa requires ...
7
votes
2answers
2k views

How to include LaTeX package in R Markdown?

I am writing a report with Rmd in RStudio via knitr package. I want to write a indicator variable symbol in the report, like How do you get \mathbb{1} to work (characteristic function of a set)?. ...
2
votes
0answers
49 views

RStudio and biber [duplicate]

Can someone please help me get the code below to work but by running biber, not bibtex? I have a biblatex style (nejm) that only works with biber. I'm currently running RStudio 0.98.501 and this is ...
1
vote
0answers
80 views

“Undefined control sequence” error in .rnw file

I see that this error has been posted to tex.stackexchange but the answers seem to differ based on the sytnax used to cause the error, and I cannot find a similar enough context to my own (For ...
4
votes
0answers
198 views

RStudio, Sweave and synctex

For a few days now I was wondering why RStudio stopped showing the "Sync PDF view to editor location". I still don't know for sure, but since my .synctex.gz file is apparently "(busy)" I assume there ...
4
votes
1answer
196 views

Insert a TeX file created with knitr into a main TeX file [duplicate]

I want to insert a knitr output file (created in RStudio as .rnw file, then I compiled, it creates the .tex file) into my main .tex file. But I got an error, how we can do this? Knitter Tex file: ...
8
votes
1answer
330 views

Is it possible to get Sweave/knitr in RStudio to output the .tex file without typesetting it?

I would like to know if it is possible to tell Sweave or knitr in RStudio to create the .tex file without trying to typeset it. I want to be able to run my .Rnw file and produce a .tex file which I ...
0
votes
0answers
191 views

knitr yielding different output in pdf than in R console

I am running RStudio Version 0.98.484 and R version 3.0.2 on OS X Mavericks. While using knitr I noticed a discrepancy between the console output from a summary() command and that generated in the ...
2
votes
1answer
149 views

How can one make RStudio pass options to Sweave()?

I'm trying to use a UTF-8 encoded .Rnw file in combination with xelatex in RStudio. Since xelatex uses native UTF-8 support i cannot use \usepackage[utf8]{inputenc} in my .Rnw file, which would ...