Skip to content

Commit

Permalink
fix vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrecenti committed Sep 24, 2019
1 parent c849436 commit 636818d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions inst/ui-server-userinfo/server.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
library(auth0)

auth0_server(function(input, output, session) {

observe({
print(session$userData$auth0_info)
})

observe({ print(session$userData$auth0_info) })
}, info = a0_info)
8 changes: 4 additions & 4 deletions vignettes/examples/ui-server-userinfo.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "ui-server"
title: "ui-server-userinfo"
type: docs
repo: https://github.com/curso-r/auth0
menu:
Expand All @@ -17,15 +17,15 @@ Also, set the port, running something like `options(shiny.port = 8080)`.

## global.R

```{r, echo = FALSE, eval=TRUE}
```{r, echo = FALSE}
knitr::opts_chunk$set(eval=FALSE)
f <- system.file(sprintf("%s/global.R", rmarkdown::metadata$title), package = "auth0")
knitr::spin_child(f)
```

## ui.R

```{r, echo = FALSE}
knitr::opts_chunk$set(eval=FALSE)
```{r, echo = FALSE, eval=TRUE}
f <- system.file(sprintf("%s/ui.R", rmarkdown::metadata$title), package = "auth0")
knitr::spin_child(f)
```
Expand Down

0 comments on commit 636818d

Please sign in to comment.