unable to install install.packages("moments")

Error Information:

> install.packages("moments")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/moments_0.14.tgz'
Content type 'application/x-gzip' length 54265 bytes (52 KB)
downloaded 52 KB

The downloaded binary packages are in

Description of issue -
wanted to install this package. But when executed this error is shown.

Steps taken so far -
restarted the R session

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
Mac OS : Catalina
Version : 10.15.7 (19H114)


  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

Installation of R packages has nothing to do with the RStudio IDE, and you are not showing any error message so far, Can you clarify what your problem actually is? Aren't you able to load the package after installing?

Yes, unable to load the downloaded package.

What is the error message you get when you try to load it?


Thank you. Executed the code and tested with an example, its working now.


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.