dataPipeLine <- function() {
# Load pakcages/setup code ------------------------------------------------
# eg:
# install.packages("dplyr")
# library(dplyr)
# Load custom functions ---------------------------------------------------
# eg:
# myFunc <- function(x) {return(x^2)}
# Loading Data ------------------------------------------------------------
# DO NOT EDIT - this will load your data as specified in the app
# TODO - this will call our function that reads the metatdata completed by the user this
# TODO - add checks to ensure that the data loads correctly (potential issues in xlsx files where rows start in row 3 or 5 etc)
# User Code ---------------------------------------------------------------
# Paste your code here
# TODO test your
# Return data -------------------------------------------------------------
# add return statement to return a single dataframe
# e.g.:
# return(myCleanDataframe)
# TODO - add a check to see if the data retuned by the pipeline function is a dataframe use checkmate package
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.