简体   繁体   English

R Markdown 问题我无法真正理解错误?

[英]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 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生成

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错误是- eval 中的错误(expr,envir,enclos):object 'poison.data' not found Calls: ... handle -> withCallingHandlers -> withVisible -> eval -> eval 执行停止

It seems poison.data is a built-in data set in package BHH2.似乎毒物.data是poison.data中的内置数据集。 You can try this:你可以试试这个:

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

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

Sample output:样品 output:

在此处输入图像描述

The documentation of data() has useful information. data()的文档有有用的信息。 You can access it with ?data in your console.您可以在控制台中使用?data访问它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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