Displaying 20 results from an estimated 3000 matches similar to: "Scripting call to R-Studio compile PDF"
2012 Jun 15
1
Rename output file in Swaeve and Tex
HI,
I am working on R and Latex.
R CMD Sweave Test.Rnw (this generates Rnw.Tex file )
R CMD pdflatex Test.tex (It generated Test.pdf)
Is there any way to change the name of of output file (Test.pdf). I want it
to pass the output file name as parameter.
R CMD Sweave Test.Rnw Output_File
R CMD pdflatex Output_File.tex
So output file name will be Output_File.pdf
Regards
--
View
2013 Jun 19
2
knitr without R studio
Hello folks,
I`m using knitr on R studio, which make it easy to use, but a coworker of
mine would like to run it on "simple" R. So I was wondering if you know what
is the equivalent of the button "knit HTML" in RStudio in R. I tried
knit2HTML(
<html>
<head>
<title></title>
</head>
<body style="background-color:white">
2012 Mar 28
2
Making Knitr work
Might not be the best place to ask, but i could get lucky..
I have setup an eclipse environment to write sweave files lately and wanted to switch to knitr. I could get it to work on easy files, but my earlier written sweave file fails to be knit properly.
Here is the error message:
Quitting from lines 273-276: Error in setwd(base.dir) : kann Arbeitsverzeichnis nicht wechseln (it says: cannot
2008 Nov 14
1
Line breaks in mathematical formulae in Rd files (PR#13287)
Hi,
This is a problem about writing R documentation (R-exts 2.6). The
command "\deqn" defined in "Rd.sty" is:
\newcommand{\deqn}[2]{\[#1\]}
which will put mathematical formulae in the "displaymath" environment;
that means line breaks are not allowed (or will not be shown) in
formulae, but sometimes we do need multiple lines of formulae. One
solution is to write
2020 Feb 19
2
Problemas con tinytex (base Latex)
Mira el error en este fichero que te indica:
* C:~\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log*
Ahí vendrá en las últimas líneas el fallo que se ha producido.
Y con el mensaje de error específico busca si hay alguna referencia por ahí.
Entiendo que estás instalando la última versión que ha salido hace pocos
días...
El mié., 19 feb. 2020 a las 22:36, MAURICIO MARDONES (<
2009 Jan 13
6
basic sweave question
I am trying to learn the basics of Sweave so I read some things and a
friend gave me his Rnw file
to play with. I am able to do R CMD Sweave mark-example.Rnw. That works.
But,
then when I do latex mark-example.tex, I get the message below. I looked
in the archives
and Martin Morgan mentioned something in 2004 in terms of making sure
that latex is
looking at where Sweave.sty is but I am unsure
2020 Feb 19
2
Problemas con tinytex (base Latex)
Aquí hay una posible solución...
https://tex.stackexchange.com/questions/27138/how-can-i-fix-the-error-gui-framework-cannot-be-initialized-with-texniccenter
El mié., 19 feb. 2020 a las 23:16, MAURICIO MARDONES (<
mauricio.mardones en ifop.cl>) escribió:
> Esto...
>
> 2020-02-19 18:29:50,307-0300 INFO pdflatex - starting with command line:
>
2011 Jun 20
1
Quote the path of graphics output in Sweave when it contains spaces
Hi,
I'm aware of the definition of a "valid filename" in
.SweaveValidFilenameRegexp, but I think it might be better to quote
the filename when it contains spaces instead of just giving a warning.
This should bring us safer LaTeX code (although I never use spaces in
paths).
Here is the simple patch:
Index: src/library/utils/R/SweaveDrivers.R
2014 Jun 04
1
Package keyval Error: noupquote undefined
Hi,
Due to a change in Rd.sty a few days ago
(https://github.com/wch/r-source/commit/620eb9a#diff-3bf3d821c6faae50cd6ec931f6f63296L272),
the default installation of TeXLive 2009 or 2012 no longer works when
building Rd to PDF. The error log is like this:
===============
Converting Rd files to LaTeX .....
Creating pdf output from LaTeX ...
Error in texi2dvi(file = file, pdf = TRUE, clean = clean,
2013 Jul 18
1
Looking for knitr example for beginner (NO RStudio)
Hi everyone,
I am using package knitr, FIRST TIME. I don't have access to RStudio.
Read through Yihui's page, didn't find it helpful. Stuck on terms
Rnw, GFM (GitHub Flavored Markdown). Never used Sweave, so the
reference is not helping.
Is there a simple step-by-step example WITHOUT RStudio?
My question:
What is the procedure? The documentation explains the functions, but
does
2018 Jul 17
4
Compilar libro con paquete bookdown (PDF)
Buenas, foreros y foreras;
No sé si esto es pregunta para hacer acá, lo preguntaría en stackoverfow,
si no fuese que el inglés me intimida.
Quiero usar el packete `bookdown` para escribir un libro, pero resulta que
la salida tiene que ser PDF y no lo consigo.
Siguiendo las instrucciones de acá:
https://bookdown.org/yihui/bookdown/get-started.html
llego a compilar sin ningún problema en formato
2020 Feb 19
2
Problemas con tinytex (base Latex)
Estimado Mauricio Mardones
Me llamo la atención su correo, desconocía lo que usted nombra, lo busque,
pero hay una diferencia, instala textlive en un lugar del disco (.appdata),
yo opino como Carlos Ortega.
La documentación dice:
# Windows
tlmgr path remove rd /s /q "%APPDATA%\TinyTeX"
Se instala en esa carpeta oculta.
Saludos
Javier Rubén Marcuzzi
El mié., 19 feb. 2020 a las
2013 Apr 04
2
question about message
Hello R, could you tell me please, how to fix this issue?
There is installed RStudio-2.15.2 and the next steps where follow but
the message appears:
http://cran.r-project.org/web/packages/RMySQL/INSTALL):
>
> 1. Download the RMySQL_0.9.tar.gz file to the folder C:\Program
> Files\R\R-2.15.1\bin\x64
> 2. Open a Windows command line, and change directory to that folder
> 3.
2011 Sep 13
1
CMYK color space
dear R experts---I am struggling with the requirements to prepare my files
for my printers. I am printing in 2/2 format, which means cyan and black
for me, which they take from my color-separated pdf files. R comes into
play, because it produces all the figures that are embedded in my book
(pdflatex).
now, TeX has no problems producing CMYK files. However, R produces RGB
files (for
2017 Jun 08
3
Paths in knitr
Hi All,
I have to compile a report for the management and decided to use RMarkdown
and knitr. I compiled all needed plots (using separate R scripts) before
compiling the report, thus all plots reside in my graphics directory. The
RMarkdown report needs to access these files. I have defined
```{r setup, include = FALSE}
knitr::opts_knit$set(
echo = FALSE,
xtable.type = "html",
2011 Oct 14
1
pgfSweave-example not compiling
I'm trying to get pgfSweave up and running. Hopefully I can get it
working from within LyX, but first I'm just trying to get the simplest
possible thing (compiling one of the example files in the pgfSweave
package) to work. I'm using the example that comes in the pgfSweave
package unmodified, but for reference I copied it to:
http://pastebin.com/tW4RL6fs
Configuration:
R version
2009 Oct 05
1
--copy-unsafe-links does not work for "double" symlinks
Hi,
as documented, if you use rsync with --copy-unsafe-links, and copy a
directory with a symlink pointing outside of the copied tree, the
referent of the symlink is copied.
Now, assume that the directory contains a symlink, which points to a
(2nd) directory outside of the copied tree.
If this (2nd) directory contains another symlink, which also points outside
of the copied tree, rsync
2014 May 30
1
R CMD check for the R code from vignettes
Hi,
Recently I saw a couple of cases in which the package vignettes were
somewhat complicated so that Stangle() (or knitr::purl() or other
tangling functions) can fail to produce the exact R code that is
executed by the weaving function Sweave() (or knitr::knit(), ...). For
example, this is a valid document that can pass the weaving process
but cannot generate a valid R script to be source()d:
2017 Jun 12
2
Paths in knitr
Hi Yihui,
Hi Duncan,
I corrected my typo. Unfortunately knitr did not find my plots in the
directory where they reside which is different from the Rmd document.
The documentation of knitr says:
base.dir: (NULL) an absolute directory under which the plots are generate
root.dir: (NULL) the root directory when evaluating code chunks; if NULL,
the directory of the input document will be used
2013 Jan 28
1
Setting inline hook to a function identical to default in knitr turns of exponential formatting
Hello List,
while dealing with a questin of 'xiaodao' (
http://r.789695.n4.nabble.com/Problem-with-large-small-numbers-in-knitr-tp4653986.html)
I noticed that copying the default inline hook function obtained by
knit_hooks$get("inline")
into a knit_hook$set(inline = <...>) call turns off exponential
fomatting in the resulting .tex file.
I used a stripped version of