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?










share|improve this question
























  • 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















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?










share|improve this question
























  • 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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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
















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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation