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
	/var/folders/tl/4rbx0gbs79z4v4ckq8kchwzc0000gn/T//RtmpD7tm5O/downloaded_packages

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)

Also:

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

library(moments)

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

library(moments)