Firstly I tried to install rmarkdown, which is know could not install well, but still i could load the library but can not knit anything , even the first default code that appears with the markdown

install.packages("rmarkdown", dep = T)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/USER/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/rmarkdown_2.28.zip'
Content type 'application/zip' length 2696373 bytes (2.6 MB)
downloaded 2.6 MB

package ‘rmarkdown’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\USER\AppData\Local\Temp\RtmpMT4OEb\downloaded_packages

library(rmarkdown)


This is how pops out even if i try to open new template and try to knit, PLEASE HELP

processing file: d.Rmd

Error in render():
! unused arguments (visible = TRUE, envir = parent.frame())
Backtrace:

  1. rmarkdown::render("C:/Users/USER/Downloads/d.Rmd", encoding = "UTF-8")
  2. knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
  3. knitr:::process_file(text, output)
  4. knitr:::process_group(group)
  5. knitr:::call_block(x)
    ...
  6. evaluate:::evaluate_call(...)
  7. knitr (local) value_fun(ev$value, ev$visible)
  8. knitr (local) fun(x, options = options)
  9. knitr:::knit_print.default(x, ...)
  10. evaluate (local) normal_print(x)

Quitting from lines 19-20 [cars] (d.Rmd)
Execution halted

First I would try to upgrade all dependencies of rmarkdown. Perhaps the easiest is to install pak and use pak to upgrade

install.packages("pak", repos = sprintf(
  "https://r-lib.github.io/p/pak/stable/%s/%s/%s",
  .Platform$pkgType,
  R.Version()$os,
  R.Version()$arch
))

(Cf. All about installing pak. — Installing pak • pak)

pak::pkg_install("rmarkdown", upgrade = TRUE)

Thank you Mr Gabor for all these but this is still not working. Now What i am thinking is uninstall both studio and R and use the lower version of R

Perhaps a foolish question, but do you have RTools for the current version installed?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.