Skip to content

[Feature request] Show conflicting name on error #96

@aramirezreyes

Description

@aramirezreyes

Would it be possible to print the name of the conflicting name when erroring?

I found myself commenting bits of an import::from call to try and discover which name was conflicting. I think this would be useful.

Could be added by modifying this line.

import/R/safe_assign.R

Lines 19 to 20 in 8649e70

stop("Cannot assign name to different value in the given environment. Name already in use.",
call. = FALSE)

Would it be desirable? If so, I would be happy to make a pull request.

Metadata

Metadata

Assignees

Labels

enhancementfixed-in-mainIssue has been fixed in main, will be closed pending CRAN release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions