简体   繁体   中英

R Markdown issue i can`t really understand the error?

The R markdown could not give me the html file as i press the knit option it keep showing me this error to my following command.The code chunk does not give any error it s runs and give the require output but the final html file wasn t generating

library(BHH2)
poison.data<-poison.data
poison.data

The Error is- Error in eval(expr, envir, enclos): object 'poison.data' not found Calls: ... handle -> withCallingHandlers -> withVisible -> eval -> eval Execution halted

It seems poison.data is a built-in data set in package BHH2. You can try this:

---
title: "Your title"
output: html_document
---

```{r}
library(BHH2)
data(poison.data)
poison.data
```

Sample output:

在此处输入图像描述

The documentation of data() has useful information. You can access it with ?data in your console.

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