jennybc / here_here

I love the here package. Here's why.
313 stars 29 forks source link

here package does not work in Rmarkdown if {r, include=FALSE} #15

Open Keabla opened 4 years ago

Keabla commented 4 years ago

I have realized that by knitting exactly the same code in R markdown with {r ,include= FALSE} instead of {r ,eval= FALSE} for the code that includes the "here" function, the knitting does not work. In my specific case, the error that shows up says "error in here("Datasets","FA_GL.csv"): unused argument "FA_GL.csv" Calls: .... withVisible -> eval -> eval -> read.csv -> read.table Execution halted.

both {r ,include= FALSE} and {r ,eval= FALSE} work fine when the code is runned in R, the problem only arises when the document is knitted. Is that supposed to happen?