if (FALSE) {
# Install from CRAN:
inst_pkg("dplyr", source = "CRAN")
# Install from GitHub:
inst_pkg("hadley/emo", source = "GitHub")
# Install from Bioconductor:
inst_pkg("scRNAseq", source = "Bioconductor")
# Install from local file:
inst_pkg(source = "local", path = "mypackage.tar.gz")
}
# \donttest{
# Quick demo - try to install a small package (will skip if already installed):
try(inst_pkg("praise", source = "CRAN"))
# }
Run the code above in your browser using DataLab