Skip to content

Commit

Permalink
added vpts validation function
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandari committed Jul 11, 2024
1 parent 5dc3a3b commit e76b7f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions R/validate_vpts.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ validate_datetime_format <- function(data, format) {
#' @importFrom glue glue
#' @importFrom dplyr select
#' @examples
#' schema <- data('vpts_schema', package = 'bioRad')
#' df <- read.csv('path_to_your_data.csv') # Your VPTS csv
#' validate_vpts_df(df, schema)
#' my_vpts <- as.data.frame(example_vpts)
#' validate_vpts(my_vpts, schema)
#' @export
validate_vpts_df <- function(df) {
validate_vpts <- function(df) {
schema <- vpts_schema
required_fields <- schema$fields$name[schema$fields$constraints.required ==
TRUE]
Expand Down

0 comments on commit e76b7f3

Please sign in to comment.