From 32af7ee2c6c11aa7bd8acbc8b9faa4392f11563e Mon Sep 17 00:00:00 2001 From: Zeyuan Chen Date: Thu, 15 Feb 2024 16:34:06 -0800 Subject: [PATCH] bug fix on log_file accepting NULL --- R/utils.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/utils.r b/R/utils.r index 06247e3..a6ab2d4 100644 --- a/R/utils.r +++ b/R/utils.r @@ -122,7 +122,7 @@ validate_inputs_unico = function(X, W, C1, C2, fit_tau, assert("parallel must be of class 'logical'", is.logical(parallel)) assert("num_cores must be of class 'numeric' or NULL", is.numeric(num_cores) | is.null(num_cores)) - assert("log_file must be of class 'character' or NULL", is.character(log_file) | is.null(num_cores)) + assert("log_file must be of class 'character' or NULL", is.character(log_file) | is.null(log_file)) assert("verbose must be of class 'logical'", is.logical(verbose)) assert("debug must be of class 'logical'", is.logical(debug))