-
Notifications
You must be signed in to change notification settings - Fork 333
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
Error when running serve_site(): "Error in as.vector(x, "character"): cannot coerce type 'environment' to vector of type 'character'" #365
Comments
Here is the first step for debugging: make a copy of your website project (i.e. make a backup), delete all Rmd files ( |
Thanks @yihui for the suggestion, but already tried it, still, had no luck:
I'm sorry I forgot to tell you that So any suggestion to debug why |
Does |
Well, after installing the CRAN versions of This is the output from
Thank you so much @yihui ! |
That was very helpful. I just fixed the issue in servr. If you use the dev version of httpuv, you'll have to use the dev version of servr, too. Thanks! |
@yihui - got the same problem. Even after
and the the output from
The same website worked two month ago. Please, help. |
@mdozmorov When in doubt, upgrade. And restart R. If the problem persists, please read the issue guide and provide the necessary information: https://github.com/rstudio/blogdown/blob/master/.github/ISSUE_TEMPLATE.md |
Thank you, @yihui, updating R and packages helped. This issue extending the list of solved ones at https://yihui.name/en/2017/05/when-in-doubt-upgrade/ |
@mdozmorov Perfect. Thanks for letting me know! :) |
When running
serve_site()
, I get an error like this:Error in as.vector(x, "character"): cannot coerce type 'environment' to vector of type 'character'
The problem is I can't get more information about the error from the message, so I can't track where I got wrong.
Previously, It is running well on my desktop. Just got this error after not blogging for a while.
If this is helping, this is my blog repo: https://github.com/bagasbgy/blog. And this is my
sessionInfo()
:The text was updated successfully, but these errors were encountered: