Skip to content

Conversation

@jimhester
Copy link
Member

We changed to using an importFrom directive so we could mock these functions, but doing that makes a cyclic dependency if you try to calculate coverage on httr and its dependencies, because they are then load time dependencies for covr. Here we define a simple pass through function to make these functions runtime dependencies instead, which avoids the issue as they will only be loaded after httr itself is loaded.

Fixes #623

We changed to using an importFrom directive so we could mock these
functions, but doing that makes a cyclic dependency if you try to
calculate coverage on httr and its dependencies, because they are then
load time dependencies for covr. Here we define a simple pass through
function to make these functions runtime dependencies instead, which
avoids the issue as they will only be loaded after httr itself is
loaded.

Fixes #623
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.

Running covr for httr/R6 lead to cyclic namespace dependency failure

2 participants