knitr::opts_chunk$set( collapse = TRUE, comment = "" )
This repo is dormant and will not developed further. With the advent of targets, drake has largely been superceded. Similar examples of targets can be found here: https://docs.ropensci.org/targets/#example-projects.
remotes::install_deps(dependencies = TRUE, build = FALSE)
The goal of drake-example is to provide a template repo for using the drake package for R workflows. The repo is also tries to utilize R compendiums to manage dependencies and enables the suite package management tools. Here is the current directory of files for this type of project:
fs::dir_tree()
Fake data are created and stored in the data-raw
directory. Here we are using the starwars
data from the dplyr
package.
R/
directories. devtools::load_all()
makes them available during your R session like a package.code/
directory as normal R code. drake::code_to_plan()
to bring those R scripts into your drake plan as targets. The plan and the targets are stored in _drake.R
. For many of its processes, drake
will automatically look for that _drake.R
file. exec_drake.R
and the DESCRIPTION
files are the main control files for the project. The most important element of this script is the drake::make()
or drake::r_make
functions. This file also sources all other required files. This example draws from the following amazing resources:
To report bugs/issues/feature requests, please file an issue.
If you would like to contribute to the package, please see our CONTRIBUTING guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Copyright 2019 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This project was created using the bcgovr package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.