search for: globalcallinghandlers

Displaying 8 results from an estimated 8 matches for "globalcallinghandlers".

2020 May 21
2
[External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
Thank you Mr. Tierney! Using globalCallingHandlers() to directly handle "packageConflictError" is an excellent idea! The benefits I see for such an implementation are: * The patch would be contained within the Conflict Error Handler, which should reduce any side effects with an eventual implementation. * And by making its usage optional,...
2024 Feb 06
1
Get list of active calling handlers?
The SO post https://stackoverflow.com/q/77943180 tried to call globalCallingHandlers() from a function, and it failed with the error message "should not be called with handlers on the stack". A much simpler illustration of the same error comes from this line: try(globalCallingHandlers(warning = function(e) e)) The problem here is that try() sets an error handler,...
2020 May 21
0
[External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
...hown you how you can do it. You can put the code in a startup file if you like. If you want your students to have this, then you can prepare a startup file for them that does this. Best, luke On Thu, 21 May 2020, Juan Telleria Ruiz de Aguirre wrote: > Thank you Mr. Tierney! > > Using globalCallingHandlers() to directly handle > "packageConflictError" is an excellent idea! > > The benefits I see for such an implementation are: > * The patch would be contained within the Conflict Error Handler, > which should reduce any side effects with an eventual implementation. > * And...
2020 May 20
3
Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
Dear R Developers, ### # Context: ### When managing Search Path Conflicts (See: https://developer.r-project.org/Blog/public/2019/03/19/managing-search-path-conflicts/index.html), with: options(conflicts.policy = "strict") We get the following behaviour when loading a package (Eg: dplyr): library(dplyr) ## Error: Conflicts attaching package ?dplyr?: ## ## The following objects are
2020 May 20
0
[External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
You can get what you are asking for now in R 4.0.0 with globalCallingHandlers and using the packageConflictError object that is signaled. This should get you started: ``` options(conflicts.policy = "strict") packageConflictError handle_conflicts <- function(e) { cat(conditionMessage(e)) opt <- readline(prompt="1: mask.ok; 2: exclude. Choose:...
2020 Apr 24
0
R 4.0.0 is released
...socket connections via socketAccept(). * New function socketTimeout() changes the connection timeout of a socket connection. * The time needed to start a homogeneous PSOCK cluster on localhost with many nodes has been significantly reduced (package parallel). * New globalCallingHandlers() function to establish global condition handlers. This allows registering default handlers for specific condition classes. Developed in collaboration with Lionel Henry. * New function tryInvokeRestart() to invoke a specified restart if one is available and return with...
2020 Apr 24
0
R 4.0.0 is released
...socket connections via socketAccept(). * New function socketTimeout() changes the connection timeout of a socket connection. * The time needed to start a homogeneous PSOCK cluster on localhost with many nodes has been significantly reduced (package parallel). * New globalCallingHandlers() function to establish global condition handlers. This allows registering default handlers for specific condition classes. Developed in collaboration with Lionel Henry. * New function tryInvokeRestart() to invoke a specified restart if one is available and return with...
2020 Apr 24
0
R 4.0.0 is released
...socket connections via socketAccept(). * New function socketTimeout() changes the connection timeout of a socket connection. * The time needed to start a homogeneous PSOCK cluster on localhost with many nodes has been significantly reduced (package parallel). * New globalCallingHandlers() function to establish global condition handlers. This allows registering default handlers for specific condition classes. Developed in collaboration with Lionel Henry. * New function tryInvokeRestart() to invoke a specified restart if one is available and return with...