User Tools

Site Tools


private:add_origin

How to add the remote github origin to Rstudio package project

  1. Create new project (New Directory > R Package > name the package) and click also “Create git repository”
  2. This will build the package skeleton in appropriate subfolders (man, R)
  3. Now you need to create remote origin: open shell, and type:
    git remote add origin https://github.com/USERNAME/PACKAGE.git

    (this will add the origin to the RStudio options - Tools > Project options > Git/SVN)

  4. Choose what to commit (e.g. everything:)
    git add .
  5. Make the initial commit:
    git commit -m "initial commit"
  6. Establish this repository in GitHub
  7. Push the commit:
    git push -u origin master
private/add_origin.txt · Last modified: 2015/02/04 14:00 (external edit)