Displaying 20 results from an estimated 3000 matches similar to: "Problem installing knitr 0.5 or higher in Ubuntu"
2013 Jul 17
1
SweaveParseOptions, quoted commas, and knitr vignettes
I haven't figured it out entirely, but it looks like there are a
couple of small glitches with knitr-based vignettes and
SweaveParseOptions.
I posted the tarball of a package with a knitr vignette with (as far
as I can tell) everything properly coded in the DESCRIPTION file
(VignetteBuilder: knitr, Suggests: knitr) and the vignette itself
(%\VignetteEngine{knitr::knitr}). When Windows
2017 Jun 29
2
Cannot install knitr
Dear All,
I am trying to install the package
knitr
but getting the following error:
----------------------
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib64/R/library/stringi/libs/stringi.so':
libicui18n.so.56: cannot open shared object file: No such file or directory
Error : unable to load R code in package ?knitr?
ERROR: lazy loading
2013 Aug 23
2
packages with Sweave and knitr vignettes?
Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems
to imply that
it is possible to include both Sweave and knitr vignettes in a single
package.
I'm wondering
if anyone has tried this and/or if there are some hidden gotchas putting
this into practice,
and concerned about creating problems with CRAN checks if I try this.
Consider two vignettes:
pkg/vignettes/vign1.Rnw,
2017 Jun 12
0
Paths in knitr
Will there be anything wrong if you do not set these options?
Regards,
Yihui
--
https://yihui.name
On Mon, Jun 12, 2017 at 2:24 AM, <G.Maubach at weinwolf.de> wrote:
> 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
2016 May 03
2
vignette/knitr help
I need some help understanding a problem running the tests on the
'digest' package. Initially, I got the message that the 'knitr' package
was needed to run vignettes:
Running vignettes for package ?digest?
Error in loadVignetteBuilder(vigns$pkgdir) :
vignette builder 'knitr' not found
So I installed the knitr package and all its dependents (?mime?,
?stringi?,
2013 Mar 26
1
Execution halted when I use knitr and Rscript with opts_chunk
Hello all,
I wrote a bash script in Mac OS that takes my .rnw file, knit it and then
makes a .pdf. To knit my file, I'm using the command
Rscript -e "library(knitr); knit('file.rnw', encoding='utf8')"
and everything works fine. However, I don't want the ## characters in my
final document. I tested, using R prompt, the following commands
library(knitr)
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",
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
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
2012 Nov 29
2
googleVis plot and knitr/sweave
Dear R users.
I'm currently making a report with knitr (RStudio) where I would like to
plot a googleVis map. However, the map generated is an HTML file which I
don't know how to integrate it in my report.
So my question is how to include a map generated with googleVis in a PDF
created with knitr/sweave.
Regards,
Phil
--
View this message in context:
2012 Dec 26
2
Problem with large/small numbers in knitr
I have problems with very large numbers using knitr. In the following, my a
and b are extremely small and ssrr and ssru are extremely large. Knitr
delivers error messages. Scaling ssrr and ssru by 1000 resolved the problem:
ssrr <-ssrr/1000 ; ssru<-ssru/1000
Any clue as to how I might resolve the problem?
BTW, the same program does run in another computer. I am wondering whether
my
2013 Mar 02
2
How to start console output with a comment sign (as in knitr)
Dear all,
knitr writes a comment sign in front of each line of console output. This extremely useful, especially for beginners who are starting to write scripts. One could just compose their script in the console (getting immediate output) and then copy the whole chunk into their .r-file.
I have been able to configure the options such that the prompt and the continuing line labels are replaced
2012 Aug 02
2
ggplot does not show in knitr
Hello,
I'm having some issues getting a ggplot figure to show up in the knitr
output, when placed in a loop.
Specifically, I have a loop inside a knitr chunk :
```{r fitting, warning=FALSE, fig.width=10, fig.height=10, fig.keep='high'}
for (t in 1:T)
{
# do a regression of tgt.vals ~ predictors and compute coeffs and
fitted values (fit.vals / fit.adj.vals)
plot(
2016 May 03
2
vignette/knitr help
On 5/3/16 11:29 AM, Thierry Onkelinx wrote:
> Dear Mick,
>
> Note that both knitr and rmarkdown are listed under Suggests: both are
> required to compile the vignette. Installing rmarkdown should solve
> the problem. If not, please provide more information. OS, R version,
> digest version, ...
>
>
This is occurring in the context of an automated testing environment
that
2014 Mar 13
4
Manuales de knitr
Hola a todos, ¿conocéis algún manual de knitr, además de los que aparecen
en la página oficial (http://yihui.name/knitr/)?
Es que en ciertas ocasiones, me gustaría conocer más sobre knitr y la
página web se queda corta. También existe un libro sobre knitr (aparece en
la página web), ¿alguien lo tiene y me podría decir si es recomendable su
compra?
Un saludo y muchas gracias.
--
Víctor Nalda
2012 May 25
1
knitr customization
I am trying to transition from Sweave to knitr, but there are a few
things about customization of the appearence of R input and output that
I did not get yet. Maybe somebody on the list can help me.
In my Sweave presentations I used a slanted font for the R input and a
normal font for the output, both in a small font. I also indented
everything by an extra 2em. All this was achieved by the
2013 Jan 08
2
how to label two figures in the same chunk independently with knitr
Dear R helpers,
I am using knitr to run analysis with R and edit my document with Latex. I
am wondering whether there is a way to include 2 or more pictures per chunk
and being able to refer them in the text independently and eventually
whether it is possible to give them different captions. Let me give you an
example.Rnw:
\documentclass{article}
\title{Example}
\author{FS}
\begin{document}
2016 Aug 29
2
Problemas para delimitar chunks con la fucnción spin en el paquete knitr
Muchas gracias Carlos.
Tengo la versión de knitr 1.14
Corrí el ejemplo que me dices y resulta en lo mismo, no se crean chunks
diferentes. Parece que para separar chunks se debe incluir #'
Por ejemplo, estas 2 líneas de códigos del ejemplo:
#+ test-chisq5
sum(x^2) # chi-square distribution with df 5
#+ test-chisq4
sum((x - mean(x))^2) # df is 4 now
Dan como resultado en el Rmd (todo queda
2012 May 02
0
New version of the knitr package (0.5)
The knitr package version 0.5 is on CRAN now. It has gone through
extensive development in the past few months, and about 200 issues
were solved (https://github.com/yihui/knitr/issues) thanks to the
feedback of users, which greatly improved the quality and usefulness
of this package. For a complete list of changes, see
https://github.com/yihui/knitr/blob/master/NEWS
Most notable new features are:
2012 May 02
0
New version of the knitr package (0.5)
The knitr package version 0.5 is on CRAN now. It has gone through
extensive development in the past few months, and about 200 issues
were solved (https://github.com/yihui/knitr/issues) thanks to the
feedback of users, which greatly improved the quality and usefulness
of this package. For a complete list of changes, see
https://github.com/yihui/knitr/blob/master/NEWS
Most notable new features are: