Getting error while installing Package - ggplot2

I am getting below error while installing a package. Can you help me here?

install.packages("ggplot2")

Installing package into ‘C:/Users/NQ10011309/OneDrive - Telefonica/Documents/R/win-library/4.1’

(as ‘lib’ is unspecified)

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ggplot2_3.3.5.zip'

Content type 'application/zip' length 4127811 bytes (3.9 MB)

downloaded 3.9 MB

package ‘ggplot2’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\NQ10011309\AppData\Local\Temp\Rtmp2D6Muy\downloaded_packages

library(ggplot2)

Error: package or namespace load failed for ‘ggplot2’ in library.dynam(lib, package, package.lib):

DLL ‘ellipsis’ not found: maybe not installed for this architecture?

It seems you are missing a package dependency, try installing it

install.packages("ellipsis")

Hello Andres,

Thanks for the reply. But, while enabling the package I am getting below error.

library(ellipsis)
Error: package ‘ellipsis’ is not installed for 'arch = x64'

Can you please post the complete output message you get?

> install.packages("ellipsis")
Installing package into ‘C:/Users/NQ10011309/OneDrive - Telefonica/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ellipsis_0.3.2.zip'
Content type 'application/zip' length 49167 bytes (48 KB)
downloaded 48 KB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot delete reparse point 'C:\Users\NQ10011309\OneDrive - Telefonica\Documents\R\win-library\4.1/ellipsis/libs', reason 'There is a mismatch between the tag specified in the request and the tag present in the reparse point'
Warning in install.packages :
  cannot remove prior installation of package ‘ellipsis’
Warning in install.packages :
  cannot delete reparse point 'C:\Users\NQ10011309\OneDrive - Telefonica\Documents\R\win-library\4.1/ellipsis/libs', reason 'There is a mismatch between the tag specified in the request and the tag present in the reparse point'
Warning in install.packages :
  restored ‘ellipsis’

The downloaded binary packages are in
	C:\Users\NQ10011309\AppData\Local\Temp\RtmpeWyeEl\downloaded_packages
> library(ellipsis)
Error: package ‘ellipsis’ is not installed for 'arch = x64'

This could be related to install into a cloud-synced folder, try to manually delete that folder and install again, if that doesn't solve your problem I recommend setting your package library in a non-synced folder.

You can change the default library folder by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file

# In a .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.3\\library"

For a more detailed explanation, you can read this blog post

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.