$ brew install git
*.tar.gz
files).install_github()
function inHadley Wickham’sdevtools package, it’s easyfor people to install your package directly from GitHub. It doesn’thave to be on CRAN. (Asyou’ll see, getting your package on CRAN can be a bitdifficult.)install_github('author/package')
.For example, with my R/bromanpackage, which exists atgithub.com/kbroman/broman,you’d typepkg
subdirectory. To install his package withinstall_github()
, you’d need to do:git init
git add .
and git commit
README
file (or aMarkdown version,README.md
). This will show up nicely at your GitHub repository, belowthe list of files.README
/README.md
file. And it will also ignore the .git
subdirectory that is created when you make the package a gitrepository.gh-pages
branch for your package git repositoryand fill it will a website. GitHub makes it easy to useJekyll Bootstrap for the website, soyou can write things inMarkdown rather thanHTML. See my simple site tutorial– particularly the page onmaking a project site.