跳至内容

课程

Developing R Packages

中级4 小时

Learn to develop R packages and boost your coding skills. Discover package creation benefits, practice with dev tools, and create a unit conversion package.

R4 小时15 个视频56 个练习4,550 经验值2,522结业证明

创建您的免费账户

继续使用 Google
继续即表示您接受我们的 使用条款,我们的 隐私政策 并且您的数据存储在美国。

深受上千家公司学习者喜爱

要培训团队?

试用企业版

课程介绍

The expansive ecosystem of R packages may seem daunting at first glance, but don't worry! Acquiring the skill to develop your own R package is invaluable, regardless of whether you collaborate on your code with others. With a range of modern tools and packages at your fingertips, it's simpler than ever.

Discover the Benefits of Package Creation

Creating a package allows you to document your functions, enhancing their quality. It provides a formal structure for your code and analyses, enabling function improvement while tests verify no previous functionality is disrupted.

Practice Using R Package Development Tools

This course will guide you through these concepts, and as a bonus, you'll develop your own package focused on unit conversion. You'll learn how to use the devtools, usethis, roxygen2, available, and testthat packages as well as rmarkdown to speed up and improve your package development workflow.

Experience the Power of R Package Development

Get ready to dive into the dynamic world of R package development and empower yourself with a valuable toolset that can greatly enhance your data analysis journey!

先修要求

课程大纲

课程大纲

1

Creating R Packages: From Data to Functions

Dive into the essentials of R package construction, from understanding the architecture, the critical R and man directories, to the significance of the DESCRIPTION and NAMESPACE files. Get hands-on with the usethis package as you create your own package skeleton and include data. Strengthen your R function writing skills, grasp best practices for package development, and get comfortable saving functions to a file. Finally, install your package locally using devtools.
开始本章
2

Designing R Packages: Package Naming and Dependencies

Learn the advantages of creating packages versus using scripts, exploring the impact on code organization, reproducibility, collaboration, and sharing. Discover effective strategies for structuring code and functions within the R directory, and choosing an appropriate name and license for your package. Finally, you’ll learn how to manage CRAN package dependencies.
开始本章
3

Package Documentation: Generating Help Files and Vignettes

R

Developing R Packages

课程完成

获取成就证书

立即报名

通过 DataCamp for Mobile 提升您的数据技能

通过我们的移动课程和每日 5 分钟编程挑战,随时随地取得进步。

Develop R Packages Course | Master R Package Development & Boost Your Coding Skills | DataCamp