search for: sweaveutf8

Displaying 6 results from an estimated 6 matches for "sweaveutf8".

2014 Dec 09
3
UTF8 markdown vignette
...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, but \VignetteEncoding will be preferred in the long run. It should make it into 3.1.3 unless we drop the ball again.) Duncan Murdoch > > I use rmarkdown_0.3.11 > > HTML vignette is not an option as the...
2014 Dec 19
1
UTF8 markdown vignette
On 18/12/2014, 12:17 AM, Yihui Xie wrote: > For the record, I saw a change had been made in R-devel: > https://github.com/wch/r-source/commit/d53b098 (Thanks, Duncan) > Meanwhile, I also made a change in knitr to assume UTF-8 unless R > passes an encoding to the vignette engine: > https://github.com/yihui/knitr/commit/23c6c8e2 Both will solve the > original problem, but
2014 Dec 10
0
UTF8 markdown vignette
...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, but \VignetteEncoding will be preferred in the long run. It > should make it into 3.1.3 unless we drop the ball again.) > > Duncan Murdoch > >> >> I use rmarkdown_0.3.11 >>...
2014 Dec 09
0
UTF8 markdown vignette
...sepackage[enc]{inputenc} was basically a hack, which looks really > odd in non-LaTeX vignettes (e.g. HTML vignettes). Yes, "utf8" works; it will be sent to the vignette engine as "UTF-8". I was surprised about the missing docs. The documented way to do this is to use %\SweaveUTF8 but the source says the recommended way is to use %\VignetteEncoding{} and it's certainly a little more engine-agnostic. I'll add something to the docs if Kurt doesn't get there first. > > 3. The default `encoding` argument of rmarkdown::render() is not > relevant here, ev...
2014 Dec 10
2
UTF8 markdown vignette
...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, but \VignetteEncoding will be preferred in the long run. It >> should make it into 3.1.3 unless we drop the ball again.) >> >> Duncan Murdoch >> >>> >>&...
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,