sara-billen
/
courses-preparing-for-statistics-interview-questions-in-r-zuzanna-k-chmielewska
Public
forked from datacamp-content-public/courses-preparing-for-statistics-interview-questions-in-r-zuzanna-k-chmielewska
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.R
35 lines (25 loc) · 853 Bytes
/
requirements.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
library(remotes)
##### Install specific package versions from CRAN #####
# install_version("ggplot2", "3.0.0")
# install_version("dplyr", "0.7.5")
# install_version("tidyr", "0.8.1")
# install_version("purrr", "0.2.5")
##### Install packages in development from GitHub #####
# install_github("nicholasehamilton/ggtern")
##### Install packages from Bioconductor
# source("https://bioconductor.org/biocLite.R")
# biocLite("GenomicRanges")
##### Include datasets in the image
data_dir <- Sys.getenv("DATADIR")
dir.create(data_dir)
#' @param x Amazon S3 URL of the dataset, as a string.
download_data <- function(x) {
download.file(
x,
file.path(data_dir, basename(x))
)
}
# Usage is, e.g.,
# download_data(
# "https://assets.datacamp.com/production/repositories/19/datasets/27a2a8587eff17add54f4ba288e770e235ea3325/coffee.csv"
# )