When R language library is installed, some packages will be brought with it, which can be called directly. However, not all expansion packages come with them. Some packages need to be installed separately. For example, “mvtnorm” needs to be downloaded and installed manually
the following two methods have been tried, but the second one is easier to use. For the official documentation of mvtnorm, see the link: mvtnorm
1. Use the command to install
Open the command line interface (executable program exe) under the path of R, and several interfaces can be used, such as r.exe and rgui.exe. It is recommended to use rgui.exe because it has GUI interface, which is more convenient to operate
then enter the following command:
install.package("mvtnorm")
Choose the image source of cran, it’s better to choose the domestic one, so that the download speed is not too slow
select package – “install package –” and then select the package you want to install in the pop-up box. Note that package names are case sensitive. The reason why I choose this installation method is that I don’t need to search for the matching expansion package on the image URL. It’s easier than the first command line installation
after the installation, the prompt of package: mvtnorm “successfully unpacked and MD5 sums checked” will appear, and the installation path of binary package will be displayed
to check whether the installation is successful, you can enter the
from rpy2.robjects.packages import importr
mvt=importr('mvtnorm')
You can check whether the installation is successful. If there is no display, the mvtnorm package is successfully installed. If: the R package “mvtnorm” is not installed.
3. References
R realization method of multivariate normal distribution test
Read More:
- PackageNotInstalledError: Package is not installed in prefix
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- Solution of Prophet error reporting when installing R package in Kubuntu virtual machine environment
- Idea error: (4, 46) Java: package org.springframework.boot . autoconfigure does not exist problem solving
- Record of solving the failure of installing ie11 (9c59) under 64 bit Windows 7 system
- Perfect solution to raise runtimeerror (“distributed package doesn’t have nccl”) in Windows system“
- Idea Maven project uses package to package and report error (package does not exist)
- When angular4.0 starts the project, an error is reported: the “@ angular / compiler cli” package was not properly installed
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- package R does not exist
- Installing the basemap package in Anaconda
- Error in loadNamespace(name) : there is no package called ‘yaml’
- Configuration: error:!! OpenSSL is not properly installed on your system
- Installation and use of R language ggmap package
- Solving the problem of saving object set by save() function in R language
- Usage and examples of three important functions of tidyr package in R language: gather, spread and separate
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- Julia install and use the extension package package (ERROR: UndefVarError: Pkg not defined)
- Error code is 2502 / 2503 when installing MSI format installation package under win10 or win8
- Failed to download package files error after re installing Ubuntu