Skip to contents

Print basic to console basic tryCatch template

Usage

remindMe_trycatch()

Value

None (prints to console).

Examples

remindMe_trycatch()
#> ++++++++++++++++++++++++++++++++++++++++++++++++++
#> Printing two examples of common tryCatches
#> ++++++++++++++++++++++++++++++++++++++++++++++++++
#> 
#> p = 8
#> p = "string"
#> 
#> tryCatch({
#>   8 + p
#> }, error = function(err) {
#>   message("An error orccured....")
#>   print(err$message)
#> })
#> 
#> 
#> tt = tryCatch({
#>   temp = 8 + p
#>   return(temp)
#> }, error = function(err) {
#>   print(err$message)
#>   temp = NULL
#>   return(temp)
#> })
#> print(tt)