The downloaded source packages are in
'C:\Users\Christine\AppData\Local\Temp\RtmpIBdiXp\downloaded_packages'
Package 'markdown' successfully installed.
Warning message:
In utils::install.packages("markdown", repos = "https://cran.rstudio.com/") :
installation of package 'markdown' had non-zero exit status
I have uninstalled and reinstalled rmarkdown but when I try to open an rmd doc, R Studio tells me I need an updated version of rmarkdown. I click yes to install it and I get the above.
Session info:
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Unless your system is set up to compile programs (which is possible, but something that most users shouldnāt be spending the required time on), the āinstall from sourceā option will fail.
That did not work.
The exact same thing keeps happening. I tried to update the packages. Said no to compilation.
Tried again to load an rmd doc. Was prompted again that rmarkdown needed updating. Said yes to that.
And got the same message I posted above and none of the packages updated.
Still the same.
I tried with to update data.table. If I say no to compilation, it does not update.
If I says yes, I get the same error message and no update either.
All in the console.
install.packages("data.table")
Installing package into āC:/Users/Christine/AppData/Local/R/win-library/4.2ā
(as ālibā is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
data.table 1.14.2 1.14.4 TRUE
restoring previous 'C:/Users/Christine/AppData/Local/R/win-library/4.2/data.table'
Warning in install.packages :
installation of package ādata.tableā had non-zero exit status
The downloaded source packages are in
āC:\Users\Christine\AppData\Local\Temp\Rtmpe8HphA\downloaded_packagesā
Hi @socprof,
There is some confusion going on here.
Firstly, this output:
install.packages("data.table")
Installing package into āC:/Users/Christine/AppData/Local/R/win-library/4.2ā
(as ālibā is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
data.table 1.14.2 1.14.4 TRUE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/data.table_1.14.2.zip'
Content type 'application/zip' length 2243013 bytes (2.1 MB)
downloaded 2.1 MB
package ādata.tableā successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Christine\AppData\Local\Temp\Rtmpe8HphA\downloaded_packages
means that the binary version of data.tablewas installed correctly - no need to do any more. Then library(data.table) should proceed without any errors.
Secondly, the rmarkdown package is NOT the same as the markdown package.
If you run install.packages("rmarkdown", dependencies=TRUE, type="win.binary") that should be all you need to do. If library(rmarkdown) runs without error then RStudio should be able to knit an Rmd file.
Thanks for the suggestions.
I ran install.packages("rmarkdown", dependencies=TRUE, type="win.binary"). Load rmarkdown.
Still the same problem. BUT I ran the same thing for the markdown package and that seemed to do it.