rstudio / rmarkdown

Dynamic Documents for R
https://rmarkdown.rstudio.com
GNU General Public License v3.0
2.87k stars 974 forks source link

render not found #1990

Closed data-al closed 3 years ago

data-al commented 3 years ago

After installing the latest rmarkdown package i have this issue trying to knit the default or any other .rmd :

[1] 127
Warning message:
In system(paste0("rmarkdown::render '", input, "'")) :
  'rmarkdown::render' not found

No document is produced. I'm guessing it's some kind of problem with finding the function of the package ? Any guidance is appreciated

xfun::session_info('rmarkdown') R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363), RStudio 1.4.1074

Locale: LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
LC_TIME=English_United Kingdom.1252

Package version: base64enc_0.1.3 digest_0.6.27 evaluate_0.14 glue_1.4.2 graphics_4.0.2 grDevices_4.0.2 highr_0.8
htmltools_0.5.0 jsonlite_1.7.1 knitr_1.30 magrittr_1.5 markdown_1.1 methods_4.0.2 mime_0.9
rlang_0.4.8 rmarkdown_2.6 stats_4.0.2 stringi_1.5.3 stringr_1.4.0 tinytex_0.27 tools_4.0.2
utils_4.0.2 xfun_0.19 yaml_2.2.1
Warning messages: 1: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1 2: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1 3: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1 4: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1 5: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1 6: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1


By filing an issue to this repo, I promise that

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

Abdullahi-a-hussein commented 2 years ago

I am getting the same issue. It all started when I tried to install gt package. I reinstalled all the packages. But that did not fix anything. Everything worked after installing fastmap separately and I have no idea why that worked.

Screen Shot 2022-02-05 at 11 05 16 AM
cderv commented 2 years ago

rmarkdown uses some packages that depends on fastmap

> pak::pkg_deps_explain("rmarkdown", "fastmap")
v Updated metadata database: 3.97 MB in 5 files.                          
v Updating metadata database ... done                                     
rmarkdown -> htmltools -> fastmap                                          
rmarkdown -> jquerylib -> htmltools -> fastmap

So if there was an issue with fastmap installation, then those packages wouldn't load, and rmarkdown etiher.

Anyway, I don't think this was related to this issue here. Glad you found the fix !

thedivtagguy commented 2 years ago

Can confirm that I too had this error which was fixed after I installed tinytex. Error:

Warning message: In system(paste0("rmarkdown::render \"", input, "\"")) : 'rmarkdown::render' not found

Details about my setup:

R version 4.0.5 (2021-03-31) -- "Shake and Throw"
Platform: x86_64-w64-mingw32/x64 (64-bit)
RStudio Version 1.4.1106
Marseillor commented 2 years ago

I also met this issue. It happened when I'm trying to run library(ggplot2) when I had mistakenly uninstalled one of the needed package rlang. After reinstalling that package, the issue was sovled. Hopefully my experience may help.

hrj21 commented 1 year ago

Hi all, sorry to revive this from August. I had the same issue today using R 4.1.0 and RStudio 1.4.1717 (I'm on a managed software catalog so cannot update). Neither installing tinytex nor a fresh install of rmarkdown helped, but installing a newer version of xfun solved the issue. I found this out only because I tried "Knit with parameters" and it told me the xfun version wasn't high enough:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace ‘xfun’ 0.30 is being loaded, but >= 0.34 is required

cderv commented 1 year ago

Thanks for sharing this - I did not know this could be a side effect of this minimum requirement issue.

github-actions[bot] commented 1 year ago

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.