Re: [R-pkg-devel] tryCatch defensive programming guidance
u chose error = function(e) print(e) because that prints "as if" you had an error. Martin > Regards, > Berry > ____ > From: R-package-devel on behalf of Glenn Schultz > Sent: Saturday, February 25, 2017 15:5
[R-pkg-devel] tryCatch defensive programming guidance
All, I have the following to create a class PriceTypes. I use try catch on the function and it gives me the error price <- tryCatch(PriceTypes(price = "100") ,error = function(e) print(e) ,warning = function(w) print(w)) I read the section on tryCatch and withCallingHandlers as well the