Questions tagged [rnw]
.Rnw is a file extension used for documents with LaTeX markup and {knitr} and/or {sweave} chunks.
21
questions
0
votes
0
answers
20
views
Sweave Missing endcsname Error in Huxtable While Generating PDF
I am running into an issue in the process of generating PDFs through R/Sweave/tinytex on a CentOS server. Here is the command that runs the process:
(generateReport.R)
Sweave(rnwFile, encoding = "...
3
votes
1
answer
173
views
How to load additional packages with R::rticles?
I mostly code in R, and have been using knitr Rnw for a while, mostly following the best practices outline in 14mech14's YouTube videos, with a parent rnw document, child rnw document, and a document ...
2
votes
1
answer
50
views
SyncTeX inverse search with WinEdt and Rnw files
I am using WinEdt 9.1 with RManager and pdflatex to knit PDF files from Rnw files. The process generally works well. But I cannot use "inverse search" from my PDF documents to my Rnw files. ...
5
votes
1
answer
318
views
Getting latexmk to work with both .tex and .Rnw files
System information
Mint 19.2
latexmk 4.41
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)
Goal
I am trying to set up my .latexmkrc configuration so it detects whether the file that is passed is ...
2
votes
1
answer
2k
views
Embedding R (kable) results in LaTeX
Apology at first if this question has been asked or the sample is not reproducible. I'm totally new to LaTex and happy to take any advice.
I am working on my thesis on a .tex LaTex template given by ...
1
vote
1
answer
183
views
tikz, find the point which is closest to another point
At the moment, I try to learn automation of graphic drawing with latex (tikz) and R.
I need to determine the coordinates of the point with the smallest distance to a defined point "North"
Thats what ...
1
vote
0
answers
386
views
read_chunk doesn't work [closed]
I tried the code suggested previously which should work
execute R code in latex file imported from separate R file
but I can't see the external-code from R.
Here's my script
\documentclass[12pt,...
1
vote
1
answer
275
views
Help! Why do I get this badbox error?
\begin{frame}[fragile]{Class Data Example}
\begin{table}[htbp]
\begin{center}
\begin{tiny}
\begin{tabular}{p{8mm} p{8mm} p{10mm} p{8mm} p{8mm} p{10mm} p{10mm}} \hline
Student & Gender &...
2
votes
1
answer
196
views
How to avoid problems with diacritics once and for all
I work with Rnw, and I type in Catalan, so there are diacritics I wouldn't encounter in English. I just want two things:
That when I compile my PDF, all diacritic letters are as they should be.
That ...
3
votes
0
answers
329
views
Including an Rmd file in a Rnw file using pandoc
I was trying to follow this example that shows how to write a separate chapter in RMarkdown and then include it in your main RNW file using \include{}.
However, I have not been able to get pandoc to ...
1
vote
1
answer
1k
views
How to re-run Bibtex on the file(s) - RSweave; KnitR
I have a document called Code.Rnw where I write my document in and I'm using Sweave and Knitr to compile it.
For my bibliography I use biblatex. My setting is the following:
\usepackage[bibstyle=...
0
votes
1
answer
192
views
PassOptionsToPackage and knitr child documents
I am using Knitr and the standalone version of .RNW files where I can compile either a main document or work with and compile child documents individually. Because of other packages, I would like to ...
2
votes
2
answers
1k
views
Compiling a Latex-Sweave child into a main Latex-Sweave file
I'm in the process of writing my thesis, where I have two chapters ready. I'm looking to unify those two chapters into one single Sweave file.
Suppose I have a folder called chapter1 which contains ...
1
vote
1
answer
2k
views
Can't get images to work with .Rnw files on RStudio
I've been trying to debug a .Rnw file I wrote in RStudio for about a week now. The most frustrating part is that it used to work perfectly in its current form but then seemed to inexplicably stop ...
1
vote
0
answers
121
views
RNW, different sections depending on the value of a variable. Possible? [closed]
I am new to RNW files, and I am not sure if the following is possible. Suppose that I have the following RNW file:
\documentclass[12pt,a4paper]{article}
\usepackage{Sweave}
\usepackage{amsmath} ...
1
vote
1
answer
146
views
Following .Rnw works fine in RStudio but throws error in LyX
This .Rnw compiles fine in RStudio Version 0.99.862
\documentclass{book}
\usepackage{Rd} % Rstudio will be able to find this .sty file
\begin{document}
<<label=Test, echo=FALSE, results='...
1
vote
0
answers
108
views
After updating to LyX 2.13: getting this message Sweave Noweb syntax? [closed]
After updating to LyX 2.1.3, I'm getting this message Sweave Noweb syntax?.
I wonder what message mean and why I'm getting it? After clicking on ok, it works but I'm looking to not show this message. ...
1
vote
1
answer
133
views
Why does this fail in LyX 2.1.3 but works in .Rnw?
This code works fine in .Rnw but does not work in LyX 2.1.3. In LyX 2.1.3 it throws the following error:
Error in getModel.baseGmm(all_args, ...): could not find function "is"
Any idea how to solve ...
4
votes
1
answer
3k
views
knitr: LaTex Longtable spanning several pages with word continued at bottom and caption appears only once in list of tables
I want to have longtable spanning several pages with word continued at right bottom of the table and its caption appearing only one in the list of tables using knitr. Below is my MWE in .Rnw format. ...
5
votes
1
answer
2k
views
SumatraPDF inverse search for RNW files
I'm using TexStudio to edit my rnw files. I setup an inverse search from SumatraPDF to TexStudio using THIS (verbatim) which is a renewed version of THIS. When I double click a text in SumatraPDF it ...
1
vote
1
answer
499
views
Justifying the output of toLatex function of utils R package
Using utils::toLatex(sessionInfo()) in .Rnw we can get R Session Info to put in LaTeX. I would highly appreciate if someone guide me to fully justify the output of utils::toLatex(sessionInfo()). ...