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

2
votes
1answer
29 views

Tables with reference to R objects in sweave / latex

I'm using knitr/R-sweave to produce a pdf-document wit LaTeX-code. I want to make a table with some numbers produced by some R calculations in the R-code-chuck above this table. When I usually want to ...
0
votes
0answers
20 views

What does “LaTeX Error: Environment rmdtip undefined.” mean?

I am trying to build a book using bookdown::render_book() command in RStudio. However, it stops working after the pandoc step almost at the end of the process: "K:/Program ...
0
votes
0answers
41 views

Caption options don't work in rmarkdown beamer template

I want to resize the figure captions in an rmarkdown beamer template, so I added \usepackage[font={small,it}]{caption} to my header.tex. But it doesn't work - the options are ignored. I didn't find ...
1
vote
2answers
58 views

No bibliography output

Code \usepackage{babelbib} ... \nocite{*} \bibliographystyle{plain} \bibliography{LV} I'm getting no output (bibliography). Installing the bibtex dependencies again for tex-live with no results. ...
0
votes
0answers
18 views

Rstudio, sweave: citation X on page Y undefined on input line Z

I was looking through the previous questions but I couldn't find someone with the same problem. Apologies if this has already been answered previously. I am using sweave in Rstudio to create a paper. ...
0
votes
1answer
49 views

with rmarkdown tufte-handout template xtables placed at the document end

I cannot understand why the chunks in rmarkdown would place tables at the end of the document. If I allow ECHO = TRUE in the chunk header, the code gets output in the correct place, but the table ...
0
votes
0answers
36 views

How to sweave .bib file in Rstudio

I am new to using sweave (not new to r or latex). I have no idea how to get a .bib file to compile. I've tried the advice I saw on setting the TEXINPUTS, BIBINPUTS and BSTINPUTS to the path where the ...
0
votes
0answers
88 views

Error message using pdflatex on “R's Multiple Sequence Alignment” Package

I am new to using R-studio and the Multiple Sequence Alignment package. I am trying to generate a PDF of the outputs from an alignment result, but I keep getting an error message. I am inputting ...
1
vote
0answers
16 views

Special Roman/Japanese Encoding with RStudio Sweave

Is there a way for having multiple enconding support in RStudio Sweave? I have the following citation, and using different encodings like uft8 or cjk just results in errors. Reference METI. ...
2
votes
1answer
103 views

Using Calibri with a Mac

I am preparing a document, writing it in RStudio and knitr in a Mac (OS X El Capitan 10.11.2). I would like to use Calibri (to mimic Office documents). I already have a legal version of Microsoft ...
1
vote
1answer
153 views

Knitr markdown can't display basic symbols

I'm on Ubuntu 14.04, running RStudio Version 0.99.473. I have LaTeX installed (TeXworks) and knitting Rmarkdown documents works just fine. However, adding mathematical symbols such as $\mu$ causes it ...
0
votes
0answers
358 views

Encoding error when knitr -> LaTeX -> PDF

I have a document written in knitr. I can export it to HTML and docx, but not PDF for some reason. The Rmd file is here http://cl.ly/dJka?_ga=1.30252732.2076817589.1442770201 It says ! Package ...
1
vote
1answer
132 views

knitr creating a wrong second “#” in a deep hyperlink

I would like to compile a .Rnw Document in RStudio with knitr that includes a "#" in the hyperlink (deeplink) of a float caption. See the minimum working example: (compiled with R Studio Version ...
0
votes
0answers
87 views

Changing lisoffigures color in Rmarkdown

I'm using Rmarkdown with Rstudio to create PDF, and I add the option \listoffigures, but the font color of the links are pink. I tried to add some TeX option to change it like ...
0
votes
0answers
88 views

Errors with untouched Beamer Template in RStudio [closed]

I am new to using Beamer, and wanted to have a template working so that I could, for the time being, simply and easily change the content. I downloaded the .zip file from ...
1
vote
0answers
257 views

Compiling .Rnw file into PDF in RStudio (Error: No file or directory)

I have a .Rnw file. I usually can "Compile" it into a PDF file in RStudio. However, I recently upgraded my R Version to 3.2.0. Now, when I try to "Compile" my .Rnw file I get an error: ...
1
vote
2answers
1k views

knitr in RStudio produces 'Undefined control sequence', alongside other issues

I am getting multiple issues being reported when I try to 'Compile PDF' for a knitr document in RStudio (Windows 7), although the .pdf is still produced in the working directory. I am using R 3.1.3, I ...
0
votes
0answers
613 views

Utf8 encoding problems with knitr

I'm using RStudio 0.98.1102 on Windows 7 with knitr 1.10 (R 3.1.2) and tried to knit the following file: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} ...
2
votes
2answers
5k views

RStudio Can't Find pdflatex On Windows 7

I'm running RStudio (0.98.1091) and Texworks MiKTeX (2.9 64 bit) on Windows 7. My PATH environment variable is set and includes the complete path to the MiKTeX directory where pdflatex lives: ...
0
votes
0answers
36 views

Can't remove frame title completely

I am working on a project using Rstudio and am having some latex difficulty. Whenever I create a frame and don't put a title a tiny dot shows up on the screen. How can I disable the title/remove this? ...
2
votes
0answers
104 views

Blog publishing / creation from Latex

I have been using Latex for a few years, and have several articles written in Latex. I want to share some of these articles on blogs, and I am very new to the blogging world. Just wondering if there ...
1
vote
1answer
110 views

Unexplained “NULL” in pandoc.table in ioslides [closed]

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', ...
3
votes
1answer
285 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
117 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 ...
1
vote
1answer
627 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 --- ...
24
votes
2answers
6k 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 ...
6
votes
1answer
5k 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. ...
11
votes
1answer
12k 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
91 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
2k 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
169 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
132 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
192 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 ...
30
votes
2answers
18k 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
56 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
153 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
351 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 ...
5
votes
1answer
414 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: ...
9
votes
1answer
689 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
353 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
291 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 ...