## Did you miss the previous step? The one about creating your package
rstudioapi::navigateToFile(usethis::proj_path("dev", "01_create_pkg.R"))
## ********************
## Setup Git and GitHub
## ********************
## Note that Bioconductor doesn't allow *.Rproj files
## So we have to ignore it before anything else
usethis::use_git_ignore("*.Rproj")
usethis::use_git() ## Choose the option to make the commit, then to restart RStudio
## After the restart, continue by connecting your local git repository to
## GitHub. You might want to use the `organisation` and `private` arguments
args(usethis::use_github)
## If this is your first time running use_github(), you might have to also run:
usethis::gh_token_help()
usethis::create_github_token()
usethis::edit_r_environ()
## Setup ssh keys as described in detail at
## https://happygitwithr.com/ssh-keys.html
## Open your Rprofile file
usethis::edit_r_profile()
## And add the following to your Rprofile (without the first ##):
## ## For usethis::use_git()
## options(usethis.protocol = "ssh")
## Then re-start R
rstudioapi::restartSession()
## Now run use_github()
usethis::use_github()
## Follow any prompts, such as running on the terminal:
## git push --set-upstream origin master
## Move to the next step: setting up your package core files
rstudioapi::navigateToFile(usethis::proj_path("dev", "03_core_files.R"))
## This template was made using https://lcolladotor.github.io/biocthis/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.