Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Function-oriented Make-like declarative workflows for R

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Unknown
LICENSE.note
NotificationsYou must be signed in to change notification settings

ropensci/targets

ropensciJOSSzenodoR TargetopiaCRANstatuscheckcodecovlint

Pipeline tools coordinate the pieces of computationally demandinganalysis projects. Thetargets package is a Make-like pipeline toolfor statistics and data science in R. The package skips costly runtimefor tasks that are already up to date, orchestrates the necessarycomputation with implicit parallel computing, and abstracts files as Robjects. If all the current output matches the current upstream code anddata, then the whole pipeline is up to date, and the results are moretrustworthy than otherwise.

Philosophy

A pipeline is a computational workflow that does statistics, analytics,or data science. Examples include forecasting customer behavior,simulating a clinical trial, and detecting differential expression fromgenomics data. A pipeline contains tasks to prepare datasets, runmodels, and summarize results for a business deliverable or researchpaper. The methods behind these tasks are user-defined R functions thatlive in R scripts, ideally in a folder called"R/" in the project. Thetasks themselves are called “targets”, and they run the functions andreturn R objects. Thetargets package orchestrates the targets andstores the output objects to make your pipeline efficient, painless, andreproducible.

Prerequisites

  1. Familiarity with theR programminglanguage, covered inR for DataScience.
  2. Data science workflow managementtechniques.
  3. How to write functions toprepare data, analyze data, and summarize results in a data analysisproject.

Installation

If you are usingtargetswithcrew for distributedcomputing, it isrecommended to usecrew version0.4.0 or higher.

install.packages("crew")

There are multiple ways to install thetargets package itself, andboth the latest release and the development version are available.

TypeSourceCommand
ReleaseCRANinstall.packages("targets")
DevelopmentGitHubpak::pkg_install("ropensci/targets")
DevelopmentrOpenSciinstall.packages("targets", repos = "https://dev.ropensci.org")

Get started in 4 minutes

The 4-minute video athttps://vimeo.com/700982360 demonstrates theexample pipeline used in thewalkthrough andfunctions chaptersof theuser manual. Visithttps://github.com/wlandau/targets-four-minutes for the code andhttps://rstudio.cloud/project/3946303 to try out the code in a browser(no download or installation required).

Usage

To create a pipeline of your own:

  1. Write Rfunctions for apipeline and save them to R scripts (ideally in the"R/" folder ofyour project).
  2. Calluse_targets()to write key files, including the vital_targets.R file whichconfigures and defines the pipeline.
  3. Follow the comments in_targets.R to fill in the details of yourspecific pipeline.
  4. Check the pipeline withtar_visnetwork(),run it withtar_make(),and read output withtar_read().Morefunctionsare available.

Documentation

Help

Please read thehelpguide to learn how bestto ask for help usingtargets.

Courses

Selected talks

English

Español

日本語

Example projects

Apps

Deployment

Extending and customizing targets

Code of conduct

Please note that this package is released with aContributor Code ofConduct.

Citation

citation("targets")Tocitetargetsinpublicationsuse:Landau,W.M., (2021).ThetargetsRpackage:adynamicMake-likefunction-orientedpipelinetoolkitforreproducibilityandhigh-performancecomputing.JournalofOpenSourceSoftware,6(57),2959,https://doi.org/10.21105/joss.02959ABibTeXentryforLaTeXusersis@Article{,title= {ThetargetsRpackage:adynamicMake-likefunction-orientedpipelinetoolkitforreproducibilityandhigh-performancecomputing},author= {WilliamMichaelLandau},journal= {JournalofOpenSourceSoftware},year= {2021},volume= {6},number= {57},pages= {2959},url= {https://doi.org/10.21105/joss.02959},  }

Packages

No packages published

Contributors24

Languages


[8]ページ先頭

©2009-2025 Movatter.jp