PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
200 stars 231 forks source link

Removed duplicate `need_packages` from `data.atmosphere` #3212

Closed meetagrawal09 closed 10 months ago

meetagrawal09 commented 10 months ago

Description

This PR focuses on removing duplicate need_packages from data.atmosphere and updating all use cases of the function to use the function from PEcAn.utils

Review Time Estimate

Types of changes

Checklist:

meetagrawal09 commented 10 months ago

This PR also fixes a few typos in the data.atmosphere package.

Aariq commented 10 months ago

FYI there is a nice alternative to need_packages() in rlang. rlang::check_packages() prompts the user to install the package if it is missing. It's perfect for dealing with dependencies in Suggests that are needed for some functions to work. https://rlang.r-lib.org/reference/is_installed.html