what is the reason for this error with here() in knitr?
up vote
0
down vote
favorite
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?
r
add a comment |
up vote
0
down vote
favorite
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?
r
I'm not getting the unused arguments error. When you runhere("data", "5000_products.csv")
only do you still get the error?
– mickey
Nov 10 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 at 15:08
Could you make a minimal reproducible example where the error occurs (including necessary packages)?
– mickey
Nov 10 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 at 18:05
1
@Tomas it is in the .Rmd file as a code knitr code chunk
– user3437212
Nov 10 at 18:07
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
r
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?
r
r
edited Nov 10 at 16:30
jogo
9,47592135
9,47592135
asked Nov 10 at 14:45
user3437212
1151112
1151112
I'm not getting the unused arguments error. When you runhere("data", "5000_products.csv")
only do you still get the error?
– mickey
Nov 10 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 at 15:08
Could you make a minimal reproducible example where the error occurs (including necessary packages)?
– mickey
Nov 10 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 at 18:05
1
@Tomas it is in the .Rmd file as a code knitr code chunk
– user3437212
Nov 10 at 18:07
add a comment |
I'm not getting the unused arguments error. When you runhere("data", "5000_products.csv")
only do you still get the error?
– mickey
Nov 10 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 at 15:08
Could you make a minimal reproducible example where the error occurs (including necessary packages)?
– mickey
Nov 10 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 at 18:05
1
@Tomas it is in the .Rmd file as a code knitr code chunk
– user3437212
Nov 10 at 18:07
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 at 15:02
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 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 at 15:08
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 at 15:08
Could you make a minimal reproducible example where the error occurs (including necessary packages)?
– mickey
Nov 10 at 16:35
Could you make a minimal reproducible example where the error occurs (including necessary packages)?
– mickey
Nov 10 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 at 18:05
is the `require(here)' actually included in the Rmd file? Or did you just run and loaded it in your console?
– Tomas
Nov 10 at 18:05
1
1
@Tomas it is in the .Rmd file as a code knitr code chunk
– user3437212
Nov 10 at 18:07
@Tomas it is in the .Rmd file as a code knitr code chunk
– user3437212
Nov 10 at 18:07
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240065%2fwhat-is-the-reason-for-this-error-with-here-in-knitr%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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 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 at 15:08
Could you make a minimal reproducible example where the error occurs (including necessary packages)?
– mickey
Nov 10 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 at 18:05
1
@Tomas it is in the .Rmd file as a code knitr code chunk
– user3437212
Nov 10 at 18:07