当前位置:网站首页>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
边栏推荐
- 十字路口通行优先权,十字路口通行规则图解
- [csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability
- Virtual commodity account trading platform source code_ Support personal QR code collection
- 指针数组和数组指针
- (指針)自己寫一個比較字符串大小的函數,功能與strcmp類似。
- 苹果CMS仿西瓜视频大气响应式视频模板源码
- leetcode刷题:二叉树09(二叉树的最小深度)
- Why use node
- Flink学习8:数据的一致性
- Architecture training graduation design + summary
猜你喜欢

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps

Wechat official account infinite callback authorization system source code

Understand the principle of bytecode enhancement technology through the jvm-sandbox source code

Keysight N9320B射频频谱分析仪解决轮胎压力监测方案

leetcode刷题:二叉树06(对称二叉树)

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线

R语言dplyr中的Select函数变量列名

I was tortured by my colleague's null pointer for a long time, and finally learned how to deal with null pointer

Wechat brain competition answer applet_ Support the flow main belt with the latest question bank file

Modstartblog modern personal blog system v5.2.0 source code download
随机推荐
新手找陪驾要注意什么
十字路口通行优先权,十字路口通行规则图解
Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
【云原生】那些看起来很牛X,原理却很简单的一行代码
What does software testing do? Find defects and improve the quality of software
Emlog用户注册插件 价值80元
The interactive solution of JS and app in the H5 page embedded in app (parameters can be transferred and callbacks can be made)
普源DS1000Z系列数字示波器在通信原理实验中的应用方案
微信脑力比拼答题小程序_支持流量主带最新题库文件
沃博联结束战略评估,决定保留表现优异的博姿业务
5张图告诉你:同样是职场人,差距怎么这么大?
RHCSA 06 - suid, sgid, sticky bit(待补充)
Idea modify body color
如何远程办公更有效率 | 社区征文
leetcode刷题:二叉树08(N叉树的最大深度)
Global exposure and roller shutter exposure of industrial cameras
量子力学习题
【微服务|openfeign】@FeignClient详解
RHCSA 08 - automount配置
Redis:有序集合zset类型数据操作命令