bch441-work-abc-units/scriptTemplate.R

76 lines
1.6 KiB
R
Raw Permalink Normal View History

2021-11-16 05:31:48 +00:00
# scriptTemplate.R
#
# Purpose:
# Version:
# Date:
# Author:
#
# Input:
# Output:
# Dependencies:
#
# ToDo:
# Notes:
#
# ==============================================================================
setwd("<your/project/directory>")
# ==== PARAMETERS ============================================================
# Define and explain all parameters. No "magic numbers" in your code below.
# ==== PACKAGES ==============================================================
# Check that required packages have been installed. Install if needed.
if (! requireNamespace("seqinr", quietly=TRUE)) {
install.packages("seqinr")
}
# Package information:
# library(help = seqinr) # basic information
# browseVignettes("seqinr") # available vignettes
# data(package = "seqinr") # available datasets
# Note: use package functions with the :: operator - eg.
# seqinr::aaa("K")
# ==== FUNCTIONS =============================================================
# Define functions or source external files
source("<myUtilityFunctionsScript.R>")
myFunction <- function(a, b=1) {
# Purpose:
# Describe ...
# Parameters:
# a: ...
# b: ...
# Value:
# result: ...
# code ...
return(result)
}
# ==== PROCESS ===============================================================
# Enter the step-by-step process of your project here. Strive to write your
# code so that you can simply run this entire file and re-create all
# intermediate results.
# ==== TESTS =================================================================
# Enter your function tests here...
# [END]