The following points are here for the developers to make sure they are following consistent standards.
devtools::use_test('test_name')devtools::document() or Ctrl+Shift+D)devtools::test())devtools::check())We will have a main branch, and a develop branch. When tackling an issue which has a corresponding issue/ticket, create a branchticketY from develop, where Y is the ticket number/ID (can optionally extend the branch name with a succinct description of the work required e.g. ticketY-fix-bug-x). Once the work is complete and tested, create a pull request for the branch ticketY in to develop.
When we are ready to make a new release, we will merge develop in to main.
devtools, usethis, testthat and renv packages for package development.dplyr::filter(), and specify a dependency on that package in the DESCRIPTION file (usethis::use_package('package_name'))@importFrom to simplify things.See R packages by Hadley Wickham for reference.
/R: `usethis::use_r('script_name')@param x {numeric} a number of iterations.@return, e.g. @return A numeric vector of length 1.@examples).devtools::load_all().renv.lock file which you can open in regualr editor or RStudio. You can change the version of R in the topright corner of RStudio Server.renv::init(): Initializes the current working directory as a renv project. Run it when starting a new R Project.renv::snapshot(): Save the current state of your library. Run after installing a new package.renv::restore(): Restore the library state saved in the most recent snapshot. Run after pulling a branch when you want to restore the latest library state.git checkout origin/branch_to_review).devtools::document())devtools::test())devtools::check())develop branchdevelop branch in to main.git fetch --all and git pull: the latter needs to be run for each of the branches of interest).git checkout feature-branch-name).git merge develop).git merge --abort. b) If you're happy to continue the merge, read on.git add . or git add file-name1 file-name2).git status - all staged files will appear green).git commit -m 'commit message').git log (press q to return to the command line screen).git reset --hard <commit-hash-to-move-to>. This change will remove any changes/commits that were added after the specified commit.git revert -m 1 <merge commit hash>.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.