Skip to content

Commit

Permalink
add explanatory section
Browse files Browse the repository at this point in the history
fix line-break issue

close #15
  • Loading branch information
colearendt committed Feb 25, 2022
1 parent a14db6e commit 0db27fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/last_30_days/rsc-usage.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ output:
css: styles.css
---
```{r preflight_check, results='asis', include=TRUE}
# ---------------------------------------------------------------------------
# this section is used to stop the report from rendering
# if important variables are missing (CONNECT_SERVER and CONNECT_API_KEY)
# ---------------------------------------------------------------------------
if (
nchar(Sys.getenv("CONNECT_SERVER")) == 0 ||
nchar(Sys.getenv("CONNECT_API_KEY")) == 0
Expand Down Expand Up @@ -76,8 +80,8 @@ data_arr <- list(shiny = shiny, content = content)
This content summary may contain privileged information. The report is generated
using the [RStudio Connect Server API](http://docs.rstudio.com/connect/api) and
the source code is [available online](https://github.com/sol-eng/connect-usage)
if you'd like to customize your analysis. Data is limited to the last `r
days_back` days.
if you'd like to customize your analysis. Data is limited to the last
`r days_back` days.

The report uses the environment variables `CONNECT_SERVER` and `CONNECT_API_KEY`
to collect the data. To limit the results to a single publisher, use a publisher
Expand Down

0 comments on commit 0db27fd

Please sign in to comment.