Questions tagged [rnw]

.Rnw is a file extension used for documents with markup and and/r chunks.

determines the appropriate set of patterns (regular expressions) to use to extract code and chunk options based on the file extension (if the patterns are not provided in advance). See ?knit_patterns for more information.

84 questions
1
vote
0 answers

compilation error in Knitr in Lyx

I have been using knitr with Lyx (2.1.4) in Windows for past few months. Recently I shifted to Ubuntu with same version for Lyx. I am getting an error during compilation while using the Knitr Module. 1) The copy of the error message (from message…
A Ghosh
  • 11
  • 3
1
vote
1 answer

Can the servr package view edits to Rnw files in real time?

As I understand it, the servr package enables edits to Rmd files to be viewed in HTML format in real time. But does servr enable edits to Rnw files to be viewed in PDF format in real time?
luciano
  • 13,158
  • 36
  • 90
  • 130
1
vote
1 answer

How to generate pdf from lyx files containing knitr chunks when knitr is deactivated ?

I would like a co-author to edit a lyx file I created. He doesn't have knitr installed and he is going to edit only text and equations parts of the document where knitr generated content is not present. I would still like him to be able to generate…
Paul Rougieux
  • 10,289
  • 4
  • 68
  • 110
1
vote
1 answer

How to hide function output in resulted PFD file in R knitr

I am building a report in R with the use of knitr. The file is of .Rnw extension and I compile it into PDF file. I faced a problem when using a woe::iv.mult function. Using this function causes some information being printed on the console and the…
Marta Karas
  • 4,967
  • 10
  • 47
  • 77
1
vote
0 answers

knitr in Texshop uses late R version

Following http://yihui.name/knitr/demo/editors/ I added the kntr engine, and I am able to run .Rnw in Texshop. The problem is that the R version used is the one in /Library/Frameworks/R.framework/Versions/ which is the late 2.15. I noticed this…
BolzanoW
  • 665
  • 1
  • 6
  • 12
1
vote
0 answers

Creating multiple pdf reports from single Rnw file

I have a Rnw file like below. I'd like to create multiple pdf files by changing data inside the Rnw file dynamically.…
Next Door Engineer
  • 2,818
  • 4
  • 20
  • 33
1
vote
0 answers

Custom CSS for highlighting in knitr

Related: Code styling for black and white documents I want to use a simple custom CSS for code highlighting in knitted .Rnw/.tex/.pdf documents. However only a select few rules seem to be implemented upon knitting. For the moment I am focusing on…
user109114
  • 403
  • 4
  • 10
0
votes
0 answers

cannot get .rnw and .rmd files to work emacs/ess

Trying to use sweave and rmarkdown in emacs. I keep getting File mode specification error: (wrong-type-argument stringp \.) when trying to create either an .rmd file or .rnw file. Here is my .emacs init file. Poly-r, polymode and ESS are all…
neuroandstats
  • 124
  • 11
0
votes
0 answers

How can I compile .Rnw files to .pdf from the Index file of a Bookdwon project?

Previously, I have generated multiple reports in .Rnw format to .pdf in R via the knit2pdf() command. However, today I am facing the following problem, I will detail it by steps: I am building a project with Bookdown. In the Index.Rmd file I want…
Daniel F
  • 11
  • 1
0
votes
1 answer

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 to produce a title…
user101089
  • 3,756
  • 1
  • 26
  • 53
0
votes
0 answers

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 = "UTF-8",…
Danchat
  • 137
  • 2
  • 12
0
votes
2 answers

Escaping backslash in R Sweave document causing line break

I want to write something in an R Sweave document so that the following appears in the compiled PDF: When you write "\beta" and compile the document, you see "β". However, when I escape the backslash for beta, I'm getting a line break, which is…
DanY
  • 5,920
  • 1
  • 13
  • 33
0
votes
1 answer

Color of captions becames fgcolor (knitr, Rnw)

When using knitr with Rnw files, color of the font of captions created inside a chunk becames fgcolor. This problem is similar to knitr kable: Text color in PDF from RNW is grey. This solution is not useful in this case. Is there any way to solve…
0
votes
0 answers

Problems with .Rnw files and chunks in R

I am new to R and I made a rnw-file in R-Studio to create a PDF file for MikTex. The file consists of Latex-Code as well as R-Code in chunks and it has worked well before. Yesterday, I updated some packages and R-Studio and now I am getting a…
0
votes
1 answer

How to change the color of outliers of certain category in boxplot()?

Put simply, I want to color outliers, but only if they belong to specific category, i.e. I want boxplot(mydata[,2:3], col=c("chartreuse","gold"), outcol="red") but red only for those elements for which mydata[,1] is M .
Math Guy
  • 115
  • 2
  • 10