From 441e5d8caac990bbf978b3837c5160c9edd34c25 Mon Sep 17 00:00:00 2001 From: Kinga Date: Tue, 19 Mar 2024 10:41:50 +0000 Subject: [PATCH] Issue #61: Removed double underscore from function name --- R/api_create_study.R | 2 +- R/api_randomize.R | 2 +- inst/plumber/unbiased_api/study.R | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/api_create_study.R b/R/api_create_study.R index f225e88..f9cb052 100644 --- a/R/api_create_study.R +++ b/R/api_create_study.R @@ -1,4 +1,4 @@ -api__minimization_pocock <- function( +api_minimization_pocock <- function( # nolint: cyclocomp_linter. identifier, name, method, arms, covariates, p, req, res) { audit_log_set_event_type("study_create", req) diff --git a/R/api_randomize.R b/R/api_randomize.R index 18db0f3..76da9c2 100644 --- a/R/api_randomize.R +++ b/R/api_randomize.R @@ -26,7 +26,7 @@ parse_pocock_parameters <- return(params) } -api__randomize_patient <- function(study_id, current_state, req, res) { +api_randomize_patient <- function(study_id, current_state, req, res) { audit_log_set_event_type("randomize_patient", req) collection <- checkmate::makeAssertCollection() diff --git a/inst/plumber/unbiased_api/study.R b/inst/plumber/unbiased_api/study.R index bc5c3a3..528f284 100644 --- a/inst/plumber/unbiased_api/study.R +++ b/inst/plumber/unbiased_api/study.R @@ -21,7 +21,7 @@ unbiased:::wrap_endpoint(function( identifier, name, method, arms, covariates, p, req, res) { return( - unbiased:::api__minimization_pocock( + unbiased:::api_minimization_pocock( identifier, name, method, arms, covariates, p, req, res ) ) @@ -40,7 +40,7 @@ unbiased:::wrap_endpoint(function( unbiased:::wrap_endpoint(function(study_id, current_state, req, res) { return( - unbiased:::api__randomize_patient(study_id, current_state, req, res) + unbiased:::api_randomize_patient(study_id, current_state, req, res) ) })