Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rnw]

.Rnw is a file extension used for documents with LaTeX markup and {knitr} and/or {sweave} chunks.

1
vote
0answers
10 views

read_chunk doesn't work

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
2answers
53 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
1answer
75 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
0answers
113 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
1answer
277 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
1answer
83 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 ...
1
vote
2answers
514 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
1answer
773 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
votes
0answers
17 views

spacefactor compilation error in lyx latex file [duplicate]

I'm trying to compile my lyx file and keep incurring this error: You can't use `\spacefactor' in vertical mode. \@ ifundefined{showcaptionsetup}{}{% Sorry, but I'm not programmed to handle ...
1
vote
0answers
60 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
1answer
87 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
0answers
82 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
1answer
123 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
1answer
2k 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. ...
4
votes
1answer
1k 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
1answer
291 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()). ...