knitr::opts_chunk$set(echo = TRUE)

Check delivery

This is an R Markdown document that checks data that has been delivered to the datahost.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

Load library and data

scriptstart = Sys.time()
library(SHARK4R)
library(tidyverse)
library(DT)
setwd("C:/__R/_test_SHARK4R/")
myfile = shark_read_deliv(params$targetDataset)

Check fields

Uses the check_fields() function to control if all required fields are present.

check_deliv_HarbourPorpoise(myfile)

Overview of data

glimpse(myfile)
DT::datatable(myfile)

Reproducibility

# Date time
Sys.time()

# Here we store the session info for this script
sessioninfo::session_info()

Runtime of script

scriptend = Sys.time()
print(scriptend-scriptstart)


sharksmhi/SHARK4R documentation built on Jan. 9, 2025, 5:15 p.m.