Skip to main content

All Questions

Tagged with
0 votes
0 answers
51 views

Highlight LateX Code Math Environment within R Studio using Sweave and .RNW File

When creating a pdf involving LateX and R code in Rstudio, is it possible to have LaTeX code highlighted whenever a math environment is created? I am frequently having errors from unmatched $ symbols ...
Michael's user avatar
  • 1,577
0 votes
0 answers
1k views

LaTeX Error: Invalid UTF-8 byte sequence in R Sweave

I'm new using Sweave in R. All guides I've seen begin trying to compile to PDF the simplest document (code below): \documentclass[10pt, a4paper]{article} \title{My title} \author{Some text with ...
user123456's user avatar
1 vote
0 answers
71 views

Print big r matrix in Latex with Sweave, knitr or Rmd

Printing big r matrix in Latex. I came out with this function which loops over rows.. is there any smarter way to do it? Is there a way to create a loop in Latex syntax? \documentclass{article} \...
rEbbasta's user avatar
0 votes
0 answers
185 views

How to fix `plex-otf.sty` not found

I am trying to compile an Rsweave document. I recently migrated from a Macbook to a Thinkpad running rhel. Previously on my macbook after simply downloading and in stalling the fonts, a document wih ...
Liam385's user avatar
  • 111
0 votes
0 answers
117 views

MikTex lstlisting package with quotes

I'm using the beamer class to create slides and using the lstlisting package inside a colorbox. Below is a reproducible example showing my problem when using pdflatex. I'm trying to use quotes (")...
dhc's user avatar
  • 777
0 votes
1 answer
373 views

Errors compiling Rnw beamer presentation

I have a collection of old lectures, written as .Rnw files using LaTeX beamer for presentations. They no longer compile, and I am mystified why. Here is a minimal example, test-beamer.Rnw just trying ...
user101089's user avatar
  • 3,842
0 votes
0 answers
3k views

"Error: LaTeX failed to compile" output when using TinyTex; error running pdflatex (exit code 1)

I'm using an R Sweave doc and trying to compile a pdf from RStudio using TinyTex. Let's assume my Sweave file is titled "Example.Rnw" and my file path to the .tex output is "Path/...
Steve K's user avatar
  • 41
4 votes
0 answers
145 views

How to wrap text output of user defined function in R Sweave to pdf

When compiling to pdf through Sweave, we are unable to have the output of user defined functions wrap text, instead they run off the page and are not readable. Example code of output similar to one of ...
Laura Jamison's user avatar
0 votes
2 answers
120 views

qrcode_gen in R

I am the function qrcode_gen in R to generate a qrcode. My objective is to generate a latex file using sweave, with a QRCode. But I cannot resize it. qrcode_gen("YourString", softLimitFlag = ...
Eduardo Pécora's user avatar
3 votes
2 answers
5k views

Can't compile pdf using R sweave. Latex error: file 'ae.sty' not found

I can't compile a pdf using R sweave. I keep getting the following error Latex error: file 'ae.sty' not found \documentclass{article} \begin{document} \SweaveOpts{concordance=TRUE} Hello, world. \...
vitor taira's user avatar
1 vote
1 answer
120 views

Size of PDF files generated by knitr

I am using the following chunk in an Rnw file. <<scatter,dev='pdf',include=TRUE>>= a <- rnorm(1e4) b <- rnorm(1e4) plot(a,b) @ I knitted the same Rnw file under R3.6.3 and R4.0.2, ...
Andy's user avatar
  • 11
1 vote
0 answers
61 views

R sweave plotting PNG

I am trying to put .png files into a pdf using this code: <<, echo = FALSE, dev = "png", dpi = 300, warning = FALSE, message = FALSE, results = 'asis', fig.cap = "">>= ...
melani's user avatar
  • 43
0 votes
1 answer
426 views

Stop Sweave code chunks in RMarkdown from displaying execution output whilst still displaying the code

I'm writing a publication manuscript for a new R package. The author guidelines expect a self-contained Sweave (Latex+R) project with self-contained executable code within R code chunks in the Sweave ...
Anthony Nash's user avatar
  • 1,039
0 votes
1 answer
744 views

Size of plots Knitr

I'm trying to change the size of a wordcloud but I don't know how to do this. Apparently lower values of fig.width make the plot bigger, not smaller, and vice versa. It seems to take up an enormous ...
paulgr's user avatar
  • 89
-2 votes
1 answer
646 views

Attempting to Compile a PDF in RStudio with MikTeX fails to generate references, instead resulting in [? ] and no bibliography

I am using Sweave in RStudio to build a pdf with the following settings: Weave Rnw files using: knitr Typeset LaTeX into PDF using: pdfLaTeX I am also on Windows and using MiKTeX. The pdf successfully ...
ZekeMarshall's user avatar

15 30 50 per page
1
2 3 4 5
17