Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R how to make my package available online

Tags:

r

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

like image 757
Paolo RLang Avatar asked Mar 16 '23 23:03

Paolo RLang


1 Answers

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.

like image 165
Rich Scriven Avatar answered Mar 31 '23 11:03

Rich Scriven