Xaringan: Wierd error when remotes::install_github('yihui/xaringan')

Created on 20 Nov 2020  Â·  6Comments  Â·  Source: yihui/xaringan

Failed to install 'unknown package' from GitHub: Line starting 'Roxyg ...' is malformed!

I ask the question on https://stackoverflow.com/questions/64927720/failed-to-install-unknown-package-from-github-line-starting-roxyg-is-ma

when downloading the package with

remotes::install_github('yihui/xaringan')

I met a error saying:

Failed to install 'unknown package' from GitHub: Line starting 'Roxyg ...' is malformed!

And I don't understand what's happening, let alone solving it...

Sorry that i haven't wait for 24h in stack overflow since I need xaringan urgently.

Please keep the below portion in your issue. Your issue will be closed if any of the boxes is not checked. In certain (rare) cases, you may be exempted if you give a brief explanation (e.g., you are only making a suggestion for improvement). Thanks!


By filing an issue to this repo, I promise that

  • [x] I have fully read the issue guide at https://yihui.org/issue/.
  • [x] I have provided the necessary information about my issue.

    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.

    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('xaringan'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/xaringan').

    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.

  • [x] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

Most helpful comment

Good to hear - this is often an issue and easily overlooked.

Thanks. My kindness is also sometimes seen as rude - it depends ;)

All 6 comments

Please include the code you executed, otherwise we cannot help you.

Also please try to format issues in the way outlined - thanks.

Please include the code you executed, otherwise we cannot help you.

Also please try to format issues in the way outlined - thanks.

I am so sorry that I haven't read the guideline thoroughly and abused issues. I have edited my question. Hope this time it meets the criteria.

I cannot reproduce your error - I suspect that something is messed up with your R installation.
I'd try to reinstall R, update your packages (maybe do that first) and try again.

PS: Please do not cross-post, this is very much disliked by many people (saying sorry does not make it better :) )

Also please remove this part of the issue next time

Please keep the below portion in your issue. Your issue will be closed if any of the boxes is not checked. In certain (rare) cases, you may be exempted if you give a brief explanation (e.g., you are only making a suggestion for improvement). Thanks!

Thank you a lot and really appreciate your kindness (>.<)

I have reinstalled the R-studio but it didn't work.
Finally I try to set my locale by

Sys.setlocale("LC_ALL","English")

And it then seems to work out!

Good to hear - this is often an issue and easily overlooked.

Thanks. My kindness is also sometimes seen as rude - it depends ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

richardohrvall picture richardohrvall  Â·  3Comments

bnicenboim picture bnicenboim  Â·  5Comments

ramongallego picture ramongallego  Â·  3Comments

tcgriffith picture tcgriffith  Â·  4Comments

rsangole picture rsangole  Â·  3Comments