xiongbenxiong
xiongbenxiong

Reputation: 197

Error in library(dplyr) : there is no package called ‘dplyr’

I am trying to install dplyr package but got an error message saying

Error in library(dplyr) : there is no package called ‘dplyr’". 

I am using Windows and R i386 3.5.2. I tried to fix with install.packages("Rcpp") as suggested by others but still getting error message.

Upvotes: 16

Views: 55787

Answers (5)

R. Buchanan
R. Buchanan

Reputation: 87

In my case, dplyr hadn't installed completely the first time I tried install.packages("dplyr") and, for some reason, refused to be overwritten when I tried to reinstall it. Manually deleting the dplyr folder and then reinstalling it worked for me. I just typed dplyr into the Windows start menu, which pulled up the correct folder in the R library, then I just hit right click and delete.

Upvotes: 1

An Android
An Android

Reputation: 159

What I did to solve is, I removed the package 'dplyr'

remove.packages("dplyr")

then re-installed it again!

install.packages("dplyr")

then rather calling it this way,

library(dplyr)

I called this way,

library("dplyr")

and then did tried again without those quotations and it worked(I guess)!

Upvotes: 1

Sara
Sara

Reputation: 21

this problem happened to me, too. The reason is that after you run "install.packages("dplyr")", the package installed in your R library (check here: C:\Program Files\R\R-3.5.1\library) is actually called "dbplyr".

So if you run library(dplyr), there should be no library under this name.

My solution is: turn off R studio, open it again. The run:

install.packages("Rcpp")
install.packages("dplyr")

Upvotes: 2

Mensch
Mensch

Reputation: 497

Try install.packages("dplyr"), the double quote is important.

Upvotes: 13

JustGettinStarted
JustGettinStarted

Reputation: 834

You dont have the package installed. To do that use : install.packages("dplyr")

Then library(dplyr)

Upvotes: 4

Related Questions