Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRAN R-devel fix #394

Merged
merged 2 commits into from
Nov 5, 2021
Merged

CRAN R-devel fix #394

merged 2 commits into from
Nov 5, 2021

Conversation

jakubsob
Copy link
Contributor

@jakubsob jakubsob commented Nov 5, 2021

This PR adopts warn_unsupported_args to a R-devel implementation of base::intersect

R-devel implementation of intersect returns NULL if one of arguments is NULL. Previous implementations of intersect return a vector of length 0, of type same as the non-NULL argument, i.e. intersect("A", NULL) yields NULL in R-devel in contrast to prevoiusly returned character(0)

Additionally this PR resolves some of CRAN check notes regarding vignettes and invalid URL's, e.g.

Found the following (possibly) invalid file URI:
URI: fomantic-ui.com/
From: inst/doc/basics.html

Closes #393

DoD

  • Major project work has a corresponding task. If there’s no task for what you are doing, create it. Each task needs to be well defined and described.

  • Change has been tested (manually or with automated tests), everything runs correctly and works as expected. No existing functionality is broken.

  • No new error or warning messages are introduced.

  • All interaction with a semantic functions, examples and docs are written from the perspective of the person using or receiving it. They are understandable and helpful to this person.

  • If the change affects code or repo sctructure, README, documentation and code comments should be updated.

  • All code has been peer-reviewed before merging into any main branch.

  • All changes have been merged into the main branch we use for development (develop).

  • Continuous integration checks (linter, unit tests) are configured and passed.

  • Unit tests added for all new or changed logic.

  • All task requirements satisfied. The reviewer is responsible to verify each aspect of the task.

  • Any added or touched code follows our style-guide.

Jakub Sobolewski added 2 commits November 5, 2021 15:24
In r-devel `intersect` returns NULL if any of arguments are NULL in contrast
to previous R versions in which `intersect` returned a vector of length 0
of a type same as given arguments
- Updated links in DESCRIPTION and vignette
- Removed vignettes from .Rbuildignore
@jakubnowicki
Copy link
Member

@jakubsob can you also update CI? I would suggest switching to something similar to what is done in dplyr.

@jakubsob
Copy link
Contributor Author

jakubsob commented Nov 5, 2021

@jakubnowicki Yes, I can. But I think it's out of scope of this PR and not related to fixes allowing us to submit to CRAN. WDYT about doing it separately?

@jakubnowicki
Copy link
Member

I'm ok with a separate PR for CI.

@jakubsob jakubsob merged commit b57d200 into develop Nov 5, 2021
@jakubsob jakubsob deleted the cran-r-devel-fix branch November 5, 2021 15:13
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.

Fix CRAN R-devel errors
3 participants