2

I'm running the following code in R Markdown.

products <- read_csv(here("data", "5000_products.csv"))

But I'm getting the following error. Error in here("data", "5000_products.csv"): unused arguments ("data", "5000_products.csv")

I have installed and loaded the library(here)

Not sure what could be the problem here, could someone please help?

jogo
  • 12,469
  • 11
  • 37
  • 42
user3437212
  • 637
  • 1
  • 10
  • 20
  • I'm not getting the unused arguments error. When you run `here("data", "5000_products.csv")` only do you still get the error? – mickey Nov 10 '18 at 15:02
  • yes, it is very strange. If just run the particular code chunk, I do not get the error, if i knit the entire .rmd file I get the error – user3437212 Nov 10 '18 at 15:08
  • Could you make a [minimal reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610#5963610) where the error occurs (including necessary packages)? – mickey Nov 10 '18 at 16:35
  • is the `require(here)' actually included in the Rmd file? Or did you just run and loaded it in your console? – Tomas Nov 10 '18 at 18:05
  • 1
    @Tomas it is in the .Rmd file as a code knitr code chunk – user3437212 Nov 10 '18 at 18:07

0 Answers0