Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vignette 'docs.Rmd' is non-ASCII but has no declared encoding #23

Open
dmenne opened this issue Nov 8, 2016 · 6 comments
Open

Vignette 'docs.Rmd' is non-ASCII but has no declared encoding #23

dmenne opened this issue Nov 8, 2016 · 6 comments

Comments

@dmenne
Copy link

dmenne commented Nov 8, 2016

Using the default generated docs.Rmd, I get the following error message on build_vignettes().

"Vignette 'docs.Rmd' is non-ASCII but has no declared encoding"

German Windows 10, everything is UTF by default.

packagedocs_0.4.0

@hafen
Copy link
Owner

hafen commented Nov 10, 2016

Interesting. Could you take a look at the result of

tools::showNonASCII(readLines("docs.Rmd"))

and let me know what you encounter?

@hafen hafen closed this as completed Nov 10, 2016
@hafen hafen reopened this Nov 10, 2016
@dmenne
Copy link
Author

dmenne commented Nov 11, 2016

5: copyright: "Dieter Menne, Menne Biomed Consulting T<c3><bc>bingen"

Bingo. This should be "Tübingen".

@hafen
Copy link
Owner

hafen commented Nov 11, 2016

Great! This file is yours to edit so I presume updating that solves the problem?

@dmenne
Copy link
Author

dmenne commented Nov 11, 2016

Not really, because I do not want to switch away from UTF, and the text looks fine in my editor. Where does the copyright come from? Are non-ascii characters forbidden in the header?

docs.zip

@hafen
Copy link
Owner

hafen commented Nov 11, 2016

By default the header information is populated from text parsed from your DESCRIPTION file. Can you try updating the vignette portion of your header to this:

vignette: |
  %\VignetteIndexEntry{gastempt Documentation}
  %\VignetteEngine{packagedocs::redirect}
  %\VignetteEncoding{UTF-8}

@dmenne
Copy link
Author

dmenne commented Nov 11, 2016

Works. Probably make it default?
There is no "Tübingen" in the DESCRIPTION file, looks like the package gets the copyright information from Github, e.g. https://github.com/dmenne/gastempt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants