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
Rmarkdown Cannot Run Chunk but Can Run in Console R Markdown rstudio #2117
Comments
|
If the document renders correctly in Console ( Also, can you share a full example of the document you are running ? Does the document contains only a chunk with It is possible that this kind of error comes from a broken package installation that cause an error like this when this package is loading. Example in the wild: https://stackoverflow.com/questions/55925357/error-in-rbindinfo-getnamespaceinfoenv-s3methods-when-installing-factoex You may try to check your packages and see if one fails to load. if this error happens in RStudio only, it could be with a package that RStudio is using maybe. |
|
Hi @cderv, I did more digging and found out the follow up error below: I think this issue with installing rmarkdown package. The source is version 2.7 but my windows machine does not allow installing from source. So I had to install from binary (Version 2.1). And the same error popped up when i library the rmarkdown package So it seems the packages are installed. But when I library it, it returns error. And the error is the exact same one "some stuff about rbind" error as the one I see when I click run markdown chunk |
|
I see - you don't have access to a binary because CRAN will offer binary only for current release and old one meaning R 4.0 and R 3.6 but not R 3.5. Honestly, I don't know why you have this error. It could be because of a dependency of Rmarkdown that was not correctly install in the process. Don't forget to install packages in a clean R session, maybe outside of RStudio in a R Gui session (as RStudio uses R markdown, it can be loaded). Also, maybe you can try the answer in the SO post for finding broken packages ? https://stackoverflow.com/a/55939741/3436535 I see several solution to install the last rmarkdown:
Hope it helps |
|
Hi @cderv |
This is a good solution ! Remember that CRAN will not build the binaries for Windows on package update for R version older than the one before the previous release). So when 4.1 will be out, I think new binaries won't be built for 3.6 anymore, only 4.1 and 4.0. Glad it is solved. I'll close this. Thanks |
|
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I'm setting up Rmarkdown in windows setting and everything can run properly in Console, But CANNOT run in Rmarkdown chunk .
If I click that green little play button to run the chunk, it returns a confusing Error:
Error in rbind(info, getNamespaceInfo(env, "S3methods")) : number of columns of matrices must match (see arg 2)The confusing part is that there's absolutely NOTHING in my code that is even remotely related to rbind! Even if the entire chunk only contains "1+1" it still says "Error in rbind"...
FYI This is the environment:
The text was updated successfully, but these errors were encountered: