首页 > 代码库 > R 包 安装 卸载 查看版本

R 包 安装 卸载 查看版本

R 查看包的版本 version
> packageVersion("snow")

卸载包
remove.packages

从源码安装包
install.packages(path_to_file, repos = NULL, type="source")
http://stackoverflow.com/questions/1474081/how-do-i-install-an-r-package-from-source


生成随机数 正太分布
For uniformly distributed (flat) random numbers, use runif(). By default, its range is from 0 to 1.


安装R时出错:
checking for history_truncate_file... no
configure: error: --with-readline=yes (default) and headers/libs are not available
./configure --with-readline=no --with-x=no

http://stackoverflow.com/questions/17473547/error-with-readline-yes-default-and-headers-libs-are-not-available
http://kuxingseng2016.blog.51cto.com/1374617/1846326

R 包 安装 卸载 查看版本