Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to download GitHub package

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to download GitHub package". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "How to download GitHub package"!

Small partners who are proficient in R usually not only use CRAN or bioconductor packages, but also try many packages that developers have not officially published, such as those stored in repositories such as GitHub. Normally easy to download and install, I had Apprentice test it out using her Windows PC, using the following code:

library(devtools)

install_github("jmzeng1314/AnnoProbe")

library(AnnoProbe)

gpl='GPL16956'

probe2gene=idmap(gpl,type = 'pipe')

head(probe2gene)

It's really as smooth as silk. First, install the GitHub online package, which requires the devtools package or the install_github function in remotes:

Load devtools package or remotes package

After loading the devtools package or remotes package, you can use the install_github function, as follows:

Use the install_github function

You can see that it is very simple to succeed, because the package itself is not large, the download speed is ok, the package itself is two or three functions, and it is not complicated.

Easy to install

So, why do we repeat this code will encounter all kinds of fancy error?

First of all, the first reason is network problems. It is very difficult to access GitHub in some parts of the mainland of China. The error is as follows:

481595150473_.pic_hd

At this time, you can try another download method, install_git function, the code is as follows:

library(remotes)

url='https://gitee.com/jmzeng/annoprobe.git'

install_git(url)

It's not that this function is awesome, but because I actively backed up this annoprobe to gitee.com, because gitee.com's server is in the mainland of China, so friends in Chinese mainland can access it theoretically very smoothly.

But not all GitHub packages are backed up to gitee.com, so you have two strategies, first you can take the initiative to register an account at gitee.com, and then move someone else's GitHub package to your gitee.com account, so that you can easily install it. Another option is to take a special approach to downloading GitHub packages and extracting them offline.

install.packages("GitHub project download path-master/",repos=NULL,type="source") At this point, I believe that everyone has a deeper understanding of "how to download GitHub packages". Let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report