-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
72 lines (51 loc) · 2.44 KB
/
README.Rmd
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# dcdcr
<!-- badges: start -->
[![Lifecycle: deprecated](https://img.shields.io/badge/lifecycle-deprecated-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#deprecated)
<!-- badges: end -->
This package contains utilities to work with DataCamp Data Connector. It is designed to be used by administrators and managers of DataCamp groups. Some
prior experience of writing reports with R is recommended.
## DEPRECATION WARNING
Warning, this package is no longer actively maintained! Please see the [announcement](https://enterprise-docs.datacamp.com/data-connector/data-connector-faq/deprecating-dcdcpy-and-dcdcr) for more information and alternatives.
## Installation
You can install the development version with:
```{r eval = FALSE}
if (!requireNamespace('remotes', quietly = TRUE)){
install.packages("remotes")
}
remotes::install_github("datacamp/dcdcr")
```
## Getting Started
Before you begin, you need to enable Data Connector in your DataCamp group, and
set S3 credentials as environment variables, as described in this [this Support article](https://support.datacamp.com/hc/en-us/articles/4405070893591-DataCamp-Data-Connector-A-Step-by-Step-Configuration-Guide-for-Automated-Data-Exports).
If in doubt, speak to your Customer Success Manager.
## Accessing Data
You can access any of the tables in the data connector by initializing it using the `data_connector` function and using autocomplete to access all the tables.
By default the connector is set up to access data for the latest date. However,
you can also pass a `date` argument to `dc_data_connector` to initialize it to access data for a specific date. This is useful when you want to create reports
and want to pin your analysis to data as on a specific date.
```{r example, eval = FALSE}
library(dcdcr)
dc <- data_connector()
dc$assessment_dim()
```
You can also print the documentation for each table by accessing the function
using autocomplete, but NOT invoking it.
```{r eval = FALSE}
dc$assessment_dim
```
![dc-help](man/figures/dc-help.png)
All the data accessors are memoized and will cache the results in memory when
they are run for the first time. This should speed up analysis considerably
since the data is already cached in memory.