Start new R package development on github

前端 未结 3 1076
耶瑟儿~
耶瑟儿~ 2021-01-31 06:24

How do I create new repository on github using devtools in RStudio? I\'ve tried to:

  1. Create empty repository on github named \"MyNewRPackage\"
  2. Started new
3条回答
  •  花落未央
    2021-01-31 06:48

    Now there's setup(), which creates the skeleton inside an existing directory. Together with hub, this becomes:

    git init NewPackage
    cd NewPackage
    Rscript -e "devtools::setup()"
    hub create
    git add .
    git commit -m "initial"
    git push -u origin HEAD
    

提交回复
热议问题