search for: vignetteencoding

Displaying 10 results from an estimated 10 matches for "vignetteencoding".

2014 Dec 09
4
UTF8 markdown vignette
A few things to clarify: 1. You do not necessarily have to keep the \usepackage{} line if you use %\VignetteEncoding{UTF-8}, because Pandoc will use UTF-8 anyway in its LaTeX template. 2. Perhaps the vignette engine in R has done something clever to convert utf8 to UTF-8, but I'd recommend %\VignetteEncoding{UTF-8} instead of %\VignetteEncoding{utf8} to make sure it is a valid encoding name, e.g. > '...
2014 Dec 09
3
UTF8 markdown vignette
On 09/12/2014, 4:38 PM, ONKELINX, Thierry wrote: > Dear Yihui, > > I have created a reproducible example at https://github.com/ThierryO/utf8vignette > > The \usepackage{} line is needed, otherwise R CMD check --as-cran will give a warning. > %\VignetteEncoding{UTF-8} did not solve the problem. I've just taken a look at the sources, and that's only in R-devel, it never got backported to R-patched so it isn't in the release R. You would need to use %\SweaveUTF8 instead. (It was introduced in 3.1.0, and should be kept until at least 3.2.0,...
2014 Dec 09
0
UTF8 markdown vignette
On 09/12/2014 11:13 AM, Yihui Xie wrote: > A few things to clarify: > > 1. You do not necessarily have to keep the \usepackage{} line if you > use %\VignetteEncoding{UTF-8}, because Pandoc will use UTF-8 anyway in > its LaTeX template. > > 2. Perhaps the vignette engine in R has done something clever to > convert utf8 to UTF-8, but I'd recommend %\VignetteEncoding{UTF-8} > instead of %\VignetteEncoding{utf8} to make sure it is a valid > en...
2014 Dec 09
0
UTF8 markdown vignette
Dear Yihui, I have created a reproducible example at https://github.com/ThierryO/utf8vignette The \usepackage{} line is needed, otherwise R CMD check --as-cran will give a warning. %\VignetteEncoding{UTF-8} did not solve the problem. I use rmarkdown_0.3.11 HTML vignette is not an option as the vignette demonstrates the use of a custom beamer output format. Best regards, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biome...
2014 Dec 09
2
UTF8 markdown vignette
Dear Duncan, The UTF-8 characters aren't properly rendered in the pdf version of the vignette. $?? ????? ?????? ?????? ????? ?? ?? is rendered as $????? ?????????? ???????????? ????? ?????? ? ???????? ???????? The same problem occurs when I use render("vignette.md", output_format = "mypackage::mystyle"), instead of render("vignette.md", output_format =
2014 Dec 10
0
UTF8 markdown vignette
...; wrote: > On 09/12/2014, 4:38 PM, ONKELINX, Thierry wrote: >> Dear Yihui, >> >> I have created a reproducible example at https://github.com/ThierryO/utf8vignette >> >> The \usepackage{} line is needed, otherwise R CMD check --as-cran will give a warning. >> %\VignetteEncoding{UTF-8} did not solve the problem. > > I've just taken a look at the sources, and that's only in R-devel, it > never got backported to R-patched so it isn't in the release R. You > would need to use > > %\SweaveUTF8 > > instead. (It was introduced in 3.1.0, and...
2018 Jul 09
2
Parametrized Vignettest in R packages
On 09/07/2018 3:24 PM, Witold E Wolski wrote: > Dear Yihui, > > Thank you for the valuable questions. > > sample_analysis is a "tibble" while > configuration is an "R6" class. > But I also have parametrized reports where I pass R reference classes > as arguments. > > This is the Rmd yaml params part corresponding to the error message. > >
2014 Dec 10
2
UTF8 markdown vignette
...014, 4:38 PM, ONKELINX, Thierry wrote: >>> Dear Yihui, >>> >>> I have created a reproducible example at https://github.com/ThierryO/utf8vignette >>> >>> The \usepackage{} line is needed, otherwise R CMD check --as-cran will give a warning. >>> %\VignetteEncoding{UTF-8} did not solve the problem. >> >> I've just taken a look at the sources, and that's only in R-devel, it >> never got backported to R-patched so it isn't in the release R. You >> would need to use >> >> %\SweaveUTF8 >> >> instead. (...
2018 Jul 09
0
Parametrized Vignettest in R packages
...ument: default params: configuration: !r quote(get(data(skylineconfig, package="myPackage"))) data: !r quote(get(data(sample_analysis, package="myPackage"))) vignette: > %\VignetteIndexEntry{Summarize Peptide Level Measurements} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r setup, include=FALSE} library(tidyverse) knitr::opts_chunk$set(echo = FALSE, message=FALSE) data <- eval(params$data) configuration <- eval(params$configuration) ``` Have a great evening. regards Witek On 9 July 2018 at 21:32, Duncan Murdoch <murdoch.duncan at gmail....
2014 Dec 09
0
UTF8 markdown vignette
...of the encoding argument of rmarkdown::render() is encoding = getOption("encoding"), which is "native.enc" on my system. > It sounds as though the render function needs a way to determine the encoding from the file itself. Recent Sweave versions support the declaration %\VignetteEncoding{utf8} as well as the older \usepackage[utf8]{inputenc} that you used. You might want to try that line as well. (You need to keep the \usepackage line to tell LaTeX what encoding you're using.) Duncan Murdoch > I'll post the question on an RStudio forum as well. > > Best re...