Displaying 5 results from an estimated 5 matches for "errorcondition".
2023 Apr 16
1
Unique ID for conditions to supress/rethrow selected conditions?
...of work) to define a hierarchy of built-in conditions, and then use
them consistently throughout base R. For example,
> 1 + "a"
Error in 1 + "a" : non-numeric argument to binary operator
could be a "typeError". And catching this is already possible:
> e <- errorCondition("non-numeric argument to binary operator", class="typeError")
> tryCatch(stop(e), typeError=function(e) print("hello"))
[1] "hello"
--
I?aki ?car
2023 Apr 16
2
Unique ID for conditions to supress/rethrow selected conditions?
I am the author of the *tryCatchLog* package and want to
- suppress selected conditions (warnings and messages)
- rethrow selected conditions (e.g a specific warning as a message or to "rename" the condition text).
I could not find any reliable unique identifier for each possible condition
- that (base) R throws
- that 3rd-party packages can throw (out of scope here).
Is there any
2019 Apr 26
0
R 3.6.0 is released
...support_old_tars whose default is controlled by environment
variable R_SUPPORT_OLD_TARS. (It looks like NetBSD and OpenBSD
have 'older' tar commands for this purpose.)
* The new function asplit() allow splitting an array or matrix by
its margins.
* New functions errorCondition() and warningCondition() provide a
convenient way to create structured error and warning objects.
.Deprecated() now signals a warning of class "deprecatedWarning",
and .Defunct() now signals an error of class "defunctError".
* Many 'package not found&...
2019 Apr 26
0
R 3.6.0 is released
...support_old_tars whose default is controlled by environment
variable R_SUPPORT_OLD_TARS. (It looks like NetBSD and OpenBSD
have 'older' tar commands for this purpose.)
* The new function asplit() allow splitting an array or matrix by
its margins.
* New functions errorCondition() and warningCondition() provide a
convenient way to create structured error and warning objects.
.Deprecated() now signals a warning of class "deprecatedWarning",
and .Defunct() now signals an error of class "defunctError".
* Many 'package not found&...
2019 Apr 26
0
R 3.6.0 is released
...support_old_tars whose default is controlled by environment
variable R_SUPPORT_OLD_TARS. (It looks like NetBSD and OpenBSD
have 'older' tar commands for this purpose.)
* The new function asplit() allow splitting an array or matrix by
its margins.
* New functions errorCondition() and warningCondition() provide a
convenient way to create structured error and warning objects.
.Deprecated() now signals a warning of class "deprecatedWarning",
and .Defunct() now signals an error of class "defunctError".
* Many 'package not found&...