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

Fix deprecation warnings #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

arilamstein
Copy link

This fixes #1 (which in turn is part of BAAQMD/inventory#28).

In short, the production version of this package is using functions in the units package that are now deprecated. This PR attempts to replace those function calls with the listed replacements.

@dholstius Please do a careful review of the changes (especially in .onLoad). Since I haven't used this package myself before, and there is no obvious way to test the changes, it's important that someone make sure that the package still works as expected.

Note that I made other changes while in the neighborhood. The package was missing a lot of necessary packages in Imports that I added. And I also removed a lot of notes and warnings when running R CMD check (removed 3 warnings and 2 notes - it still generates 3 warnings and 2 notes).

Ari Lamstein added 6 commits June 23, 2021 15:04
…n practice this just meant adding all packages this package actually needs to the DESCRIPTION file and explicitly importing those functions in the NAMESPACE file.
…he package and those functions explicitly.
…mmended replacement: install_unit.

David will need to review this checkin carefully as the parameters he was setting in install_symbolic_unit do not seem to have exact replacements in install_unit.
…o use install_unit instead.

Like the last checkin, David will have to review this one to make sure it is correct. My reading of the documentation is that "veh mi" is translated as multiplication. And since the offset in the old code was 1, I think that this should work. But I really don't know how to test this code.
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.

Multiple deprecation warnings on startup
1 participant