简体   繁体   中英

R how to make my package available online

I have developed a R package, and I want to let anyone uses it by calling

install.packages(my package name)

help?

I tried to search on Google, and I installed some libraries to do that but these libraries make my package corrupted so i thought to ask you maybe you suggest me the best way

i would like if i have my package on github thanks

I think the best thing to do would be to go over to GitHub and do some reading. You mention in the comments that you want the user to be able to use install.packages() and not install_github() . For that you'll need to either submit your package to CRAN or make the tarball source available for download somewhere so that the user can install from source after download.

The CRAN Repository Policy is a good thing to read, as well as Writing R Extentions and of course all the info at GitHub.

By the way, devtools::install_github() is very widely used, so you may want to rethink your stance on only using install.packages() if not submitting to CRAN.

I have developed a R package, and I want to let anyone uses it by calling

install.packages(my package name)

help?

That is precisely what drat is for. It lets you create a repository and by far the easiest way is just to let GitHub host it. The package vignettes detail how.

See the drat documentation, or the blog posts about it . Also that we discussed just today in the r-packages-devel list how drat can help as an additional_repostitories even for CRAN packages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM