当前位置:网站首页>How to view installed r packages in R language
How to view installed r packages in R language
2022-07-04 04:27:00 【Analysis of breeding data】
stay R In language , How to view installed R package , Loaded packages , You can use the following commands .
1. View installed packages
installed.packages()
It will come out , All installed R Package details , Include package name , route , edition , priority , Suggestions, etc
Extract the installed package name :
as.data.frame(installed.packages())$Package

2. View the loaded R package
The parentheses here cannot be omitted
(.packages())
You can see , It is loaded by default 7 A basic package .
If you don't want to load , Can be removed from memory ( This is not delete ), use detach:
Be careful , Double quotation marks here must have ,packages: There has to be
detach("package:stats")
We see ,stats Has been removed .
Want to load back , use library()
library(stats)
You can see ,stats In memory again 
3. load and unload R package
install R package , If it's in CRAN in , Direct use install.packages(),
install.packages("ggplot2")

Load it , See if it works :
> library(ggplot2)
RStudio Community is a great place to get help:
https://community.rstudio.com/c/tidyverse
Delete R package , use remove.packages()
remove.packages("ggplot2")
4. to update R package
to update R package , use update.packages()
update.packages("ggplot2")
5. see R Package version
load R package , And then use :sessionInfor()

You can see ,ggplot2 The version is :3.3.6
边栏推荐
- RHCSA 07 - 用户与群组管理
- (指针)自己写一个比较字符串大小的函数,功能与strcmp类似。
- RHCSA 03 - 文件的基础权限
- leetcode刷题:二叉树04(二叉树的层序遍历)
- JS实现文字滚动 跑马灯效果
- dried food! Generation of rare samples based on GaN
- NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
- How to add custom API objects in kubernetes (1)
- Two commonly used graphics can easily realize data display
- I.MX6U-ALPHA开发板(模仿STM32驱动开发实验)
猜你喜欢

Parameterization of controls in katalon

R语言中如何查看已安装的R包

leetcode刷题:二叉树04(二叉树的层序遍历)

Idea modify body color

苹果CMS仿西瓜视频大气响应式视频模板源码

Main applications of TDK lambda power supply

Flink learning 6: programming model

Two commonly used graphics can easily realize data display

User defined path and file name of Baidu editor in laravel admin

深入解析结构化异常处理(SEH) - by Matt Pietrek
随机推荐
R语言中如何查看已安装的R包
RHCSA 07 - 用户与群组管理
[microservice openfeign] use openfeign to remotely call the file upload interface
y55.第三章 Kubernetes从入门到精通 -- HPA控制器及metrics-server(二八)
How to add custom API objects in kubernetes (1)
01 QEMU starts the compiled image vfs: unable to mount root FS on unknown block (0,0)
Katalon uses script to query list size
RHCSA 01 - 创建分区与文件系统
2020 Bioinformatics | TransformerCPI
Confession code collection, who says program apes don't understand romance
One click compilation and deployment of MySQL
【微信小程序】好看的轮播图组件
Leetcode skimming: binary tree 08 (maximum depth of n-ary tree)
ROS2中CMake编译选项的设置
透过JVM-SANDBOX源码,了解字节码增强技术原理
Flink学习6:编程模型
I was tortured by my colleague's null pointer for a long time, and finally learned how to deal with null pointer
深入解析结构化异常处理(SEH) - by Matt Pietrek
Pytest basic self-study series (I)
(pointeur) Écrivez - vous une fonction qui compare la taille de la chaîne et fonctionne comme strcmp.