R Packages (Paperback)

Hadley Wickham

買這商品的人也買了...

相關主題

商品描述

Turn your R code into packages that others can easily download and use. This practical book shows you how to bundle reusable R functions, sample data, and documentation together by applying author Hadley Wickham’s package development philosophy. In the process, you’ll work with devtools, a suite of R functions for automating common development tasks. Devtools encapsulates best practices that Hadley has learned from years of working with this programming language.

Ideal for developers, data scientists, and business analysts, this book starts you with the basics and shows you how to improve your package writing over time. You’ll learn to focus on what you want your package to do, rather than think about package structure.

  • Learn an R package’s most useful components, including vignettes and unit tests
  • Automate anything you can, and do as much as possible with functions
  • Get tips on good style, such as organizing functions into files
  • Streamline your development process with devtools
  • Submit your package to the Comprehensive R Archive Network (CRAN)
  • Learn from a well-respected member of the R community who created 30 R packages, including ggplot2

商品描述(中文翻譯)

將您的 R 程式碼轉換為其他人可以輕鬆下載和使用的套件。這本實用的書籍向您展示如何根據作者 Hadley Wickham 的套件開發理念,將可重複使用的 R 函數、範例資料和文件捆綁在一起。在此過程中,您將使用 devtools,這是一套用於自動化常見開發任務的 R 函數集。Devtools 包含了 Hadley 多年來在這個程式語言上學到的最佳實踐。

這本書非常適合開發人員、資料科學家和業務分析師,它從基礎知識開始,並向您展示如何逐步改進您的套件撰寫能力。您將學習專注於您希望套件達到的目標,而不是考慮套件結構。

本書的內容包括:

- 學習 R 套件的最有用組件,包括 vignettes 和單元測試
- 自動化任何可以自動化的事情,並盡可能多地使用函數
- 獲得良好風格的建議,例如將函數組織到文件中
- 使用 devtools 簡化開發流程
- 將您的套件提交到 Comprehensive R Archive Network (CRAN)
- 從 R 社群中一位備受尊敬的成員那裡學習,該成員創建了包括 ggplot2 在內的 30 個 R 套件。