what is flexdashboard trying to download - r

I am trying to output the flexdashboard template created by Rstudio.
it compiles the .md file and then fails on curl:
Error in curl::curl_download(url, dest, handle = handle, quiet = FALSE, :
schannel: failed to receive handshake, SSL/TLS connection failed
Calls: ... dep_func -> read_gfont_url -> download_file ->
this is inside a firewall and github is blocked. CRAN is allowed. if anybody knows what is it that flexdashboard tries to get I can get it and install it in other ways.
---
title: "mytitle"
output:
flexdashboard::flex_dashboard:
theme:
bg: "#101010"
fg: "#FDF7F7"
primary: "#ED79F9"
base_font:
google: Prompt
code_font:
google: JetBrains Mono
orientation: columns
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
# Install thematic and un-comment for themed static plots (i.e., ggplot2)
# thematic::thematic_rmd()
```
Column {data-width=650 .tabset}
-----------------------------------------------------------------------
### Chart A
```{r}
```
### Chart B
```{r}
```
Column {data-width=350}
-----------------------------------------------------------------------
### Chart C
```{r}
```
### Chart D
```{r}
```

it is the fonts. after removing the fonts from the title section it can produce output. strangely, it does not work with the fonts even after I downloaded and installed the fonts outside Rstudio.

Related

R Notebook ioslides ggplot/autoplot error

I'm trying to create a presentation in R Notebook with ioslides...when I load libraries at the beginning of my code, they appear in the background of the slides. How can I prevent this from occurring? My slides appear as normal, but in the background is the library name and some additional R Console output...
---
title: 'sample preso'
output: ioslides_presentation
---
```{r libraries}
library(fpp2)
```
We can specify the echo as FALSE
```{r libraries, echo = FALSE}
library(fpp2)
```

Getting Error object output not found when trying to render shiny flexdashboard from R script

I have a shiny flexdashboard that runs fine if I open the file directly and click Run Document in R Studio, however I am trying to set up an R script to run the dashboard. The script will find the markdown file and run partly through it but always throws an error once it gets to something like output$something <- renderUI(...). The error is
Error in output$select_file <- renderUI({ : object 'output' not found
A test markdown file for this issue is:
---
title: "example"
author: "hamburglar"
output:
flexdashboard::flex_dashboard:
theme: yeti
orientation: rows
vertical_layout: fill
runtime: shiny
---
#```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
#```
Home
=======================================================================
Sidebar {.sidebar}
-----------------------------------------------------------------------
> These are some notes
#```{r}
data(iris)
data(cars)
data(CO2)
files <- list(iris=iris, cars=cars, CO2=CO2)
output$select_file <- renderUI({
selectInput(inputId='file_choice',
label='Choose File',
choices=names(files)
)
})
uiOutput("select_file")
#```
Row
-----------------------------------------------------------------------
### Data
#```{r}
renderTable({
files[[input$file_choice]]
})
#```
And I've tried to use the following scripts with the same results:
library(flexdashboard)
library(shiny)
library(rmarkdown)
render("path/test_board.Rmd",
#output_file="Dashboard.html"
#flex_dashboard()
#"flex_dashboard"
)
For the path I've tried a shared drive path and my desktop and I've tried a number of different arguments that I've read will let the render function know to make a flaexdashboard (in comments in the render function). In all my attempts I get the Error saying that the output object cant be found. If anyone could offer any help I would greatly appreciate it.
In flexdashboard you don't need to use output. Just do:
---
title: "example"
author: "hamburglar"
output:
flexdashboard::flex_dashboard:
theme: yeti
orientation: rows
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
```
Home
=======================================================================
Sidebar {.sidebar}
-----------------------------------------------------------------------
> These are some notes
```{r}
data(iris)
data(cars)
data(CO2)
files <- list(iris=iris, cars=cars, CO2=CO2)
selectInput(inputId='file_choice',
label='Choose File',
choices=names(files)
)
```
Row
-----------------------------------------------------------------------
### Data
```{r}
renderTable({
files[[input$file_choice]]
})
```

Including rmarkdown text in flexdashboard (includeMarkdown does not work) (R)

I would like to include external markdown file; however, I could not handle it on RStudio so far. If I manually copy/paste the content of about.md into main.R, there is no issue. I mean setting up everything related with flexdashboard is fine. On the other hand, I have tried to reinstall rmarkdown package and import it by library("rmarkdown"). This is not fair enough because flexdashboard has already its internal one. So it should not be related with whether the rmarkdown installed or not apart from flexdashboard installation. Any suggestions ?
Thanks
I have prepared minimal code with its output as below:
'about.md'
test1
=======================================================================
**testttt**
testttt
**testttt2**
testttt
main.R
---
title: "test"
author: "test"
output:
flexdashboard::flex_dashboard:
orientation: rows
social: menu
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
```
```{r}
includeMarkdown('about.md')
```
The output:
Quitting from lines 17-18 (minimal.Rmd)
Error in includeMarkdown("about.md") :
could not find function "includeMarkdown"
Calls: <Anonymous> ... handle -> withCallingHandlers -> withVisible -> eval -> eval
Execution halted
The function includemarkdown is from the package htmltools. So you have to load the library or use:
```{r}
htmltools::includeMarkdown('about.md')
```

Shiny inside the new learnr package does not work

The documentation of the new learnr-package states that
it’s also possible to add other forms of interactivity using Shiny (e.g. for teaching a statistical concept interactively).
I tried it with the provided example but I could not manage it. The slider does appear but not the plot. I used:
---
title: "Tutorial"
output:
learnr::tutorial:
progressive: true
allow_skip: true
runtime: shiny_prerendered
tutorial:
version: 0.1
---
```{r setup, include=FALSE}
library(learnr)
library(checkr)
library(shiny)
knitr::opts_chunk$set(exercise.checker = checkr::checkr_tutor)
```
The example did work with
---
title: "R Notebook"
output: html_notebook
runtime: shiny
---
I tracked the problem down: It was completely my own fault. I used the same name for the input variable in another R chunk with shiny code.
I did not get any error message, the output just did not show up.

Insert image in shiny dashboard: shiny flex dashboard failed

I run shiny in flex dashboard template in markdown.
I want to insert images in tab but it always shows me
Warning in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="figure-html/unnamed-chunk-8-1.mb.png": The system cannot find the path specified
And the dashboard output shows nothing. Has anyone encounters the issue before?
If just want to insert the image no other coding for graphs etc, then it works
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
library(flexdashboard)
library(shiny)
```
Column {data-width=350}
-----------------------------------------------------------------------
![alt](/Users/abc/Desktop/cluster.png)
if add other codes for other graphs , ex , the dashboard shows nothing .but if remove the insert image part , the dashboard is perfect
Column {data-width=500}
-----------------------------------------------------------------------
### Data
```{r}
DT::datatable(table_fm, options = list(pageLength = 10))
```
Column {data-width=350}
-----------------------------------------------------------------------
![alt](/Users/abc/Desktop/cluster.png)

Resources