Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Building sweave documents written in UTF-8 encoding #131

Closed
kw-lee opened this issue Jul 27, 2018 · 2 comments
Closed

Building sweave documents written in UTF-8 encoding #131

kw-lee opened this issue Jul 27, 2018 · 2 comments

Comments

@kw-lee
Copy link

kw-lee commented Jul 27, 2018

When I tried to build sweave documents written in UTF-8 encoding, Every character was broken.
I found this problem came from the option in 'R sweave.sublime-build'
(Using PackageResourceViewer)

    "variants": [
        {
            "name": "knitr",
            "cmd": [
                "Rscript", "-e",
                "knitr::knit('$file_name'); tools::texi2dvi('$file_base_name.tex', pdf = TRUE)"
            ]
        }
    ],

I can solve this problem changing knitr::knit('$file_name') to knitr::knit('$file_name',encoding='UTF-8')
Can you add option 'building sweave documents written in UTF-8 encoding ' in package settings?

@randy3k
Copy link
Owner

randy3k commented Jul 27, 2018

I believe it can be solved by setting the encoding key of options.

@kw-lee
Copy link
Author

kw-lee commented Jul 28, 2018

There was such a way, it works! Thank you!

@kw-lee kw-lee closed this as completed Jul 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants