Skip to content

Instantly share code, notes, and snippets.

@padpadpadpad
Created November 26, 2024 16:50
Show Gist options
  • Save padpadpadpad/50d9dd0c64ce81644cbe32f90e5c4843 to your computer and use it in GitHub Desktop.
Save padpadpadpad/50d9dd0c64ce81644cbe32f90e5c4843 to your computer and use it in GitHub Desktop.
Header for my R scripts that I use as a snippet.
# ---------------------------
# 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