This package was previously named Signac
.
However, there is another package named Signac
that is used for analyzing single cell ATAC-Seq
data available here.
Thus, I have renamed this package earlycross
which is an allusion to the (earlier) art of
Cross.
devtools::install_github("daskelly/earlycross")
Here are two helpful links that I used when building this package: 1. https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/ 2. http://kbroman.org/pkg_primer/
library(devtools)
library(roxygen2)
setwd("~/repos")
create("earlycross")
# manually add functions ...
# ...
devtools::use_package("Seurat", "Imports")
devtools::use_package("assertthat", "Imports")
devtools::use_package("Matrix", "Imports")
setwd('./earlycross')
document()
When coming back to add new functions:
# Add functions to R/
# When referring to internal functions no need for :: or :::
# rm -f NAMESPACE
library(devtools)
document()
When working on the package locally you can install it by:
setwd("~/repos/earlycross")
library(devtools)
build()
install()
Two easy methods to keep code tidy and well-formatted:
formatR::tidy_dir("R")
lintr::lint_package()
See here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.