我有一个工作示例应用程序.在这里,我设置了12092021.png
作为背景图片.
12092021.png
位于根目录的www
文件夹中->;一切都很完美.
library(shiny)
ui <- fluidPage(
#background image
tags$img(
src = "12092021.png",
style = 'position: absolute; position: absolute;
width: 1024px; height: 768px;'
),
tags$head(
tags$style(HTML("
#container > .form-group {
height: 30px;
margin-bottom: 5px;
font-size:30px
}"))
),
tags$style("#a {font-size:30px;}"),
tags$style("#b {font-size:30px;}"),
tags$style("#c {font-size:30px;}"),
tags$style("#a1 {font-size:30px;height:30px;}"),
tags$style("#b1 {font-size:30px;height:30px;}"),
tags$style("#c1 {font-size:30px;height:30px;}"),
numericInput("a1", "", value = 0, min=0, max=3, step=1, width = "100px"),
numericInput("b1", "", value = 0, min=0, max=3, step=1, width = "100px"),
numericInput("c1", "", value = 0, min=0, max=3, step=1, width = "100px"),
div(id = "container",
style="position: relative;left: 650px; top: 190px; ",
numericInput("a", "", value = 0, min=0, max=3, step=1, width = "100px"),
numericInput("b", "", value = 0, min=0, max=3, step=1, width = "100px"),
numericInput("c", "", value = 0, min=0, max=3, step=1, width = "100px")
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
现在,我正在摆弄golem
个,创建一个shiny 的应用程序包.有很多事情对我来说都是很 fresh 的.我设法让这款应用使用了run_app()
.
我的问题是,我必须在GOEM框架中的哪里保存www
文件夹,以及显示我的背景图片的路径会是什么样子?
到目前为止,我已经将www
文件夹复制到R
文件夹,也复制到inst/app/
文件夹.