AmitNayek
AmitNayek

Reputation: 178

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 its runs and give the require output but the final html file wasnt 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

Upvotes: 0

Views: 481

Answers (1)

canovasjm
canovasjm

Reputation: 513

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:

enter image description here

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

Upvotes: 1

Related Questions