Skip to content
Prev 386958 / 398502 Next

rmarkdown and source call to R file.

I don't know the answer (there are multiple possible reasons for the
file not being found), but as the first step to debug the problem, you
may replace this chunk

```{r, echo=FALSE}
   library(knitr)
   source("helper.R", local = knitr::knit_global())
   summarized_table<-give_table(params$ldf_summary)
   kable(summarized_table,"simple")
```

with

```{r}
getwd()
list.files()
```

and see what the working directory is, and which files are available.

Regards,
Yihui


On Fri, Jan 22, 2021 at 1:02 AM Georgios via R-help
<r-help at r-project.org> wrote: