Skip to content

Conversation

AshesITR
Copy link
Collaborator

@AshesITR AshesITR commented Feb 7, 2021

fixes #642

also increases coverage of R/namespace.R to 100%

fixes #642

also increases coverage of R/namespace.R to 100%
@AshesITR AshesITR mentioned this pull request Feb 7, 2021
@MichaelChirico MichaelChirico mentioned this pull request Feb 7, 2021
20 tasks
linted_files <- unique(names(lints))

# lintr paths contain backslash on windows, list.files uses forward slash.
linted_files <- gsub("\\", "/", linted_files, fixed = TRUE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not particularly important for a test case like this but i think normalizePath handles this right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd have to normalize both paths because that also makes them absolute.

@AshesITR AshesITR merged commit 8539ea7 into master Feb 8, 2021
@AshesITR AshesITR deleted the fix/642-namespace-imports branch February 8, 2021 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intended behaviour of namespace_imports for object_name_linter?
2 participants