Are Edvarsen
2015-12-22
Git og GitHub
git init
git status
git add
git commit
git mv
git rm
git branch
git checkout
git merge
git clone https://github.com/Rapporteket/nordummy
git push https://github.com/Rapporteket/nordummy master
Pakker i R og RStudio
#' Dummy R function
#'
#' Dummy R function mainly to show how functions are documented.
#' Please make sure everything is documented in a way that others
#' can understand and use.
#'
#' @param someDistribution Vector of some distribution
#'
#' @return density Density table of some distribution
#' @return somePlot a histogram of some distribution
#'
#' @export
dummyFunction <- function(someDistribution) {
hist(someDistribution)
list(density = density(someDistribution))
}
#' Describes myPackage (heading)
#'
#' Describe myPackage even further (paragraph)
#'
#' @section Functions:
#' Say something nice to me...
#'
#' @section Whatever:
#' More, please
#'
#' @examples
#' someDistribution <- rnorm(seq(0,10, length=200), mean=3, sd=1)
#' dens <- dummyFunction(someDistribution)
#'
#' @docType package
#' @name myPackage
NULL
Register i en R-pakke
Installér “rapbase” i R-konsollet:
devtools::install_github("Rapporteket/rapbase")
Følg ev også instruksjonene i “README” fra github
Se denne nettsida for mer detaljert informasjon