Bắt đầu ngayBắt đầu miễn phí

Set package dependencies

Package dependencies are crucial in R package development. They ensure the proper functioning of packages by providing required functions, additional functionality, and examples. Dependencies promote code reusability, simplify package installation, and enhance package compatibility. Managing dependencies is essential for developing robust and efficient R packages.

Your boss has requested that you add ggplot2 as a suggested dependency, since some of the examples with our loaded datasets in unitConverter can be visualized well.

The usethis package has been loaded for you.

Bài tập này là một phần của khóa học

Developing R Packages

Xem khóa học

Hướng dẫn bài tập

  • Add the ggplot2 package as a suggested dependency with version 3.0.0 or higher.

Bài tập tương tác thực hành trực tiếp

Hãy thử làm bài tập này bằng cách hoàn thành đoạn mã mẫu này.

# Suggest ggplot2 >= 3.0.0
___
Chỉnh sửa và Chạy Mã