I have an RStudio session open and need to knit it into an HTML document. I'm trying to do it through the knit button but I'm getting a popup that says this:
Loading required package: knitr Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘knitr’ Error in knit("jorge_perez_ruano_uber_final.Rhtml", encoding = "UTF-8") : could not find function "knit" Execution halted
knitr terminated with status 1
I have installed the markdown package and also tried to run the render function but it's giving me another error:
Error in render("path/to/file.Rmd") : could not find function "render"
Anyone knows how to help?
knitr, tryinstall.packages("knitr")- mhovdknitrenvironment should be considered separate from the global environment, and as such all code you write needs to be in code chunks that will be knitted. - mhovd