Displaying 4 results from an estimated 4 matches for "handle_conflict".
Did you mean:
handle_conflicts
2020 May 21
2
[External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
...nks,
Juan
> 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: ")
> if (opt == "1")
> conflictRules(e$package, mask.ok = as.character(unlist(e$conflicts)))
> else if (opt == "2")...
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 21
0
[External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
...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: ")
>> if (opt == "1")
>> conflictRules(e$package, mask.ok = as.character(unlist(e$conflicts)))
>> else if (op...
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: ")
if (opt == "1")
conflictRules(e$package, mask.ok = as.character(unlist(e$conflicts)))
else if (opt == "2")
conflictRules(e$...