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

Create an R package

Reproducibility and usability are pivotal in data analysis, and R packages cater to these needs perfectly. This exercise focuses on the usethis package in R, a tool that simplifies the creation of your own R packages.

Imagine you've been handed the task by your manager of creating an R package around converting different distance measurements from one unit to another. This exercise sets you on this productive path with the first step.

The usethis package has been loaded for you in this and the following exercises.

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

  • Create the skeleton of an R package named "unitConverter" using the usethis package.
  • Validate the package has been created by checking the file and directory structure of the package.

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.

# Create a package skeleton named unitConverter
___

# View and check the R package directory
___
Chỉnh sửa và Chạy Mã