简体   繁体   中英

Rstudio will not knit

Rstudio will not knit. I have been using it for a few weeks in a course.

When I try to knit it executes until it comes to some code and it stops. The code is

ggplot(data = gss, aes(x = year, fill = degree)) + geom_bar()

The message is

could not find function "ggplot"

This happens with other functions as well. With the code commented out is will run and produce an HTML file.

I have reinstalled R and Rstudio twice. I have had difficulty with my AV software (Bitdefender) blocking the install of some of the apps. The software is a new version updated a couple of weeks ago.

在文档中加载包(R Markdown?你没说),然后再使用其中的任何函数,例如library(ggplot2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM