@@ -212,8 +212,8 @@ Logger <- R6::R6Class(
212212
213213 # Check if LogEvent should be created
214214 if (
215- identical (level [[1 ]] > get(" threshold" , envir = self ), TRUE ) ||
216- identical (getOption(" lgr.logging_suspended" ), TRUE )
215+ isTRUE (level [[1 ]] > get(" threshold" , envir = self )) ||
216+ isTRUE (getOption(" lgr.logging_suspended" ))
217217 ){
218218 return (invisible (msg ))
219219 }
@@ -305,7 +305,7 @@ Logger <- R6::R6Class(
305305 # ' @description Log an Event fatal priority
306306 # ' @param msg,...,caller see `$log()`
307307 fatal = function (msg , ... , caller = get_caller(- 8L )){
308- if (identical (get(" threshold" , envir = self ) < 100L , TRUE ))
308+ if (isTRUE (get(" threshold" , envir = self ) < 100L ))
309309 return (invisible ())
310310
311311 get(" log" , envir = self )(
@@ -321,7 +321,7 @@ Logger <- R6::R6Class(
321321 # ' @description Log an Event error priority
322322 # ' @param msg,...,caller see `$log()`
323323 error = function (msg , ... , caller = get_caller(- 8L )){
324- if (identical (get(" threshold" , envir = self ) < 200L , TRUE ))
324+ if (isTRUE (get(" threshold" , envir = self ) < 200L ))
325325 return (invisible ())
326326
327327 get(" log" , envir = self )(
@@ -337,7 +337,7 @@ Logger <- R6::R6Class(
337337 # ' @description Log an Event warn priority
338338 # ' @param msg,...,caller see `$log()`
339339 warn = function (msg , ... , caller = get_caller(- 8L )){
340- if (identical (get(" threshold" , envir = self ) < 300L , TRUE ))
340+ if (isTRUE (get(" threshold" , envir = self ) < 300L ))
341341 return (invisible ())
342342
343343 get(" log" , envir = self )(
@@ -353,7 +353,7 @@ Logger <- R6::R6Class(
353353 # ' @description Log an Event info priority
354354 # ' @param msg,...,caller see `$log()`
355355 info = function (msg , ... , caller = get_caller(- 8L )){
356- if (identical (get(" threshold" , envir = self ) < 400L , TRUE ))
356+ if (isTRUE (get(" threshold" , envir = self ) < 400L ))
357357 return (invisible ())
358358
359359 get(" log" , envir = self )(
@@ -369,7 +369,7 @@ Logger <- R6::R6Class(
369369 # ' @description Log an Event debug priority
370370 # ' @param msg,...,caller see `$log()`
371371 debug = function (msg , ... , caller = get_caller(- 8L )){
372- if (identical (get(" threshold" , envir = self ) < 500L , TRUE ))
372+ if (isTRUE (get(" threshold" , envir = self ) < 500L ))
373373 return (invisible ())
374374
375375 get(" log" , envir = self )(
@@ -385,7 +385,7 @@ Logger <- R6::R6Class(
385385 # ' @description Log an Event trace priority
386386 # ' @param msg,...,caller see `$log()`
387387 trace = function (msg , ... , caller = get_caller(- 8L )){
388- if (identical (get(" threshold" , envir = self ) < 600L , TRUE ))
388+ if (isTRUE (get(" threshold" , envir = self ) < 600L ))
389389 return (invisible ())
390390
391391 get(" log" , envir = self )(
@@ -781,7 +781,7 @@ LoggerGlue <- R6::R6Class(
781781 public = list (
782782
783783 fatal = function (... , caller = get_caller(- 8L ), .envir = parent.frame()){
784- if (identical (get(" threshold" , envir = self ) < 100L , TRUE ))
784+ if (isTRUE (get(" threshold" , envir = self ) < 100L ))
785785 return (invisible ())
786786
787787 force(.envir )
@@ -795,7 +795,7 @@ LoggerGlue <- R6::R6Class(
795795 },
796796
797797 error = function (... , caller = get_caller(- 8L ), .envir = parent.frame()){
798- if (identical (get(" threshold" , envir = self ) < 200L , TRUE ))
798+ if (isTRUE (get(" threshold" , envir = self ) < 200L ))
799799 return (invisible ())
800800
801801 get(" log" , envir = self )(
@@ -808,7 +808,7 @@ LoggerGlue <- R6::R6Class(
808808 },
809809
810810 warn = function (... , caller = get_caller(- 8L ), .envir = parent.frame()){
811- if (identical (get(" threshold" , envir = self ) < 300L , TRUE ))
811+ if (isTRUE (get(" threshold" , envir = self ) < 300L ))
812812 return (invisible ())
813813
814814 get(" log" , envir = self )(
@@ -821,7 +821,7 @@ LoggerGlue <- R6::R6Class(
821821 },
822822
823823 info = function (... , caller = get_caller(- 8L ), .envir = parent.frame()){
824- if (identical (get(" threshold" , envir = self ) < 400L , TRUE ))
824+ if (isTRUE (get(" threshold" , envir = self ) < 400L ))
825825 return (invisible ())
826826
827827 get(" log" , envir = self )(
@@ -834,7 +834,7 @@ LoggerGlue <- R6::R6Class(
834834 },
835835
836836 debug = function (... , caller = get_caller(- 8L ), .envir = parent.frame()){
837- if (identical (get(" threshold" , envir = self ) < 500L , TRUE ))
837+ if (isTRUE (get(" threshold" , envir = self ) < 500L ))
838838 return (invisible ())
839839
840840 force(.envir )
@@ -848,7 +848,7 @@ LoggerGlue <- R6::R6Class(
848848 },
849849
850850 trace = function (... , caller = get_caller(- 8L ), .envir = parent.frame()){
851- if (identical (get(" threshold" , envir = self ) < 600L , TRUE ))
851+ if (isTRUE (get(" threshold" , envir = self ) < 600L ))
852852 return (invisible ())
853853
854854 force(.envir )
@@ -913,8 +913,8 @@ LoggerGlue <- R6::R6Class(
913913
914914 # Check if LogEvent should be created
915915 if (
916- identical (level [[1 ]] > get(" threshold" , envir = self ), TRUE ) ||
917- identical (getOption(" lgr.logging_suspended" ), TRUE )
916+ isTRUE (level [[1 ]] > get(" threshold" , envir = self )) ||
917+ isTRUE (getOption(" lgr.logging_suspended" ))
918918 ){
919919 return (invisible (msg ))
920920 }
0 commit comments