Created
November 26, 2024 16:50
-
-
Save padpadpadpad/50d9dd0c64ce81644cbe32f90e5c4843 to your computer and use it in GitHub Desktop.
Header for my R scripts that I use as a snippet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------- | |
# Purpose of script: | |
# | |
# What this script does: | |
# 1. | |
# 2. | |
# 3. | |
# | |
# Author: Dr. Daniel Padfield | |
# | |
# Date Created: 2024-11-26 | |
# | |
# Copyright (c) Daniel Padfield, 2024 | |
# License CC BY-NC - Only noncommercial uses of the work are permitted | |
# | |
# --------------------------- | |
# | |
# Notes: | |
# | |
# --------------------------- | |
# if librarian is not installed, install it | |
if (!requireNamespace("librarian", quietly = TRUE)){ | |
install.packages("librarian") | |
} | |
# if BiocManager is not installed, install it | |
if (!requireNamespace("BiocManager", quietly = TRUE)){ | |
install.packages("BiocManager") | |
} | |
# if Biobase is not installed, install it from Bioconductor | |
if (!requireNamespace("Biobase", quietly = TRUE)){ | |
BiocManager::install("Biobase") | |
} | |
# load packages | |
librarian::shelf(tidyverse) | |
## --------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment