Error with RMarkdown

Hello an error message appears when I want to generate the report with RMarkdown
here is the error


here are the reproducible codes

library(knitr)
BD_donnees<-read.csv("D:/donnees.csv",header =TRUE,sep =";",dec =",",row.names=1.)
library(FactoMineR)
res.PCA <- PCA(BD_donnees, quanti.sup = 8:11)

thank you in advance

https://files.fm/u/8eqzk8ryp#sign_up

Hello an error message appears when I want to generate the report with RMarkdown
here is the error

```{r,eval=F}
library(knitr)
BD_donnees<-read.csv("D:/donnees.csv",header =TRUE,sep =";",dec =",",row.names=1.)
```
```{r}
library(FactoMineR)
res.PCA <- PCA(BD_donnees, quanti.sup = 8:11)
```

Thank you in advance

If you set eval=F then the code inside that code chunk doesn't get executed, that is why BD_donnees doesn't exist when you knit the file.

You have to consider that when you knit a file the code gets executed on a clean environment, not in the environment you are currently working on.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.