Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in installing 'mvtnorm' and 'multcomp' package

Tags:

installation

r

Trying to install the 'mvtnorm' and 'multcomp' packages in R-studio, which are dependencies for the 'coin' package I need to use.

 > install.packages('mvtnorm')        
 Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘mvtnorm’
 These will not be installed

The same error comes up when I try to install multcomp. Can anyone help with this issue?

like image 735
JYH Avatar asked Dec 29 '25 21:12

JYH


1 Answers

Updating your R version will fix this issue.

After updating your R version you can simply run install.packages('mvtnorm', dep = TRUE) and it will install the package for you.

You can alternatively download the package source ".tar.gz" file from here - https://cran.r-project.org/web/packages/mvtnorm/index.html

then install the package by executing install.packages(path_to_file, repos = NULL, type="source") replacing the path_to_file with the path to the downloaded file.

Hope this helps

like image 169
Abhishek R Avatar answered Jan 01 '26 13:01

Abhishek R