mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
functions to modify qmd for specific exports
This commit is contained in:
parent
ad99b5c46f
commit
d71d6169ff
17 changed files with 246 additions and 29 deletions
|
|
@ -5,6 +5,6 @@ account: agdamsbo
|
|||
server: shinyapps.io
|
||||
hostUrl: https://api.shinyapps.io/v1
|
||||
appId: 13276335
|
||||
bundleId:
|
||||
bundleId: 9402292
|
||||
url: https://agdamsbo.shinyapps.io/webResearch/
|
||||
version: 1
|
||||
|
|
|
|||
|
|
@ -162,9 +162,25 @@ server <- function(input, output, session) {
|
|||
v$list$table2 |>
|
||||
gtsummary::as_gt()
|
||||
)
|
||||
|
||||
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
# renderUI({
|
||||
# tags$iframe(seamless="seamless",
|
||||
# src= "Hub_Infographic.html",
|
||||
# width=800,
|
||||
# height=800)
|
||||
# })
|
||||
#
|
||||
#
|
||||
# getPage<-shiny::reactive({
|
||||
# shiny::req(file.exists(file.path(getwd(), "www/report_format.html")))
|
||||
# return(shiny::includeHTML(file.path(getwd(), "www/report_format.html")))
|
||||
# })
|
||||
|
||||
output$uploaded <- shiny::reactive({
|
||||
if (is.null(v$ds)) {
|
||||
"no"
|
||||
|
|
@ -195,8 +211,8 @@ server <- function(input, output, session) {
|
|||
content = function(file, type = input$output_type) {
|
||||
v$list |>
|
||||
write_quarto(
|
||||
fileformat = type,
|
||||
qmd.file = file.path(getwd(), "www/report.qmd")
|
||||
output_format = type,
|
||||
input = file.path(getwd(), "www/report.qmd")
|
||||
)
|
||||
file.rename(paste0("www/report.", type), file)
|
||||
}
|
||||
|
|
@ -210,5 +226,5 @@ server <- function(input, output, session) {
|
|||
print(paste(.x, "deleted"))
|
||||
})
|
||||
})
|
||||
#
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,19 @@ panels <- list(
|
|||
|
||||
|
||||
ui <- bslib::page(
|
||||
theme = bslib::bs_theme(bootswatch = "minty"),
|
||||
theme = bslib::bs_theme(bootswatch = "minty",
|
||||
base_font = font_google("Inter"),
|
||||
code_font = font_google("JetBrains Mono")
|
||||
),
|
||||
# theme = bslib::bs_theme(
|
||||
# bg = "#101010",
|
||||
# fg = "#FFF",
|
||||
# primary = "#E69F00",
|
||||
# secondary = "#0072B2",
|
||||
# success = "#009E73",
|
||||
# base_font = font_google("Inter"),
|
||||
# code_font = font_google("JetBrains Mono")
|
||||
# ),
|
||||
title = "webResearcher for easy data analysis",
|
||||
bslib::page_navbar(
|
||||
title = "webResearcher",
|
||||
|
|
@ -159,7 +171,8 @@ ui <- bslib::page(
|
|||
choices = list(
|
||||
"Word" = "docx",
|
||||
"LibreOffice" = "odt",
|
||||
"PDF" = "pdf"
|
||||
"PDF" = "pdf",
|
||||
"All the above" = "all"
|
||||
)
|
||||
),
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,13 @@
|
|||
---
|
||||
format:
|
||||
html:
|
||||
embed-resources: true
|
||||
title: "webResearch analysis results"
|
||||
date: today
|
||||
author: webResearch Tool
|
||||
toc: true
|
||||
execute:
|
||||
echo: false
|
||||
format:
|
||||
html:
|
||||
embed-resources: true
|
||||
docx: default
|
||||
odt: default
|
||||
pdf: default
|
||||
params:
|
||||
data.file: NA
|
||||
---
|
||||
|
|
|
|||
BIN
inst/apps/data_analysis/www/report_format.pdf
Normal file
BIN
inst/apps/data_analysis/www/report_format.pdf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue