I have an external dataset in /data folder as I am developing a R package. I call it data_m. devtools::check()
shows now errors of the dataset.
As I run the vignette with Knit, however, I could not see the results of any functions, such as colnames(data_m)
or the functions that I wrote.
For instance
```r
colnames(data_m)
```
only gives me the code colnames(data_m)
instead of the column names of the dataset.
Also,
```{r}
colnames(data_m)
```
generates the error
Error in this data.frame(x): object
data_mnot found Calls: <Anonymous> ...withVisible -> eval -> eval -> colnames -> is.data.frame Execution halted
As I run
devtools::check()
I also shows
frequencyrank: no visible binding for global variable ‘data_m’
I think there is a disconnection between the dataset and the vignette. But I am not sure what it is.
Could anyone let me know what the problem actually is? Thank you very much.