Comments (2)
Solved it, what you do to make it work on all systems is this:
This minimal example should work to just run:
library(shiny); library(brochure)
metadata_page <- function(nav_links) {
page(
href = "/metadata",
ui <- function(request) {
fluidPage(titlePanel("Metadata search page"), nav_links)
},
server <- function(input, output, session) {}
)
}
landing_page_test <- function(nav_links) {
page(
href = "/",
ui = function(request) {
fluidPage(h1("Welcome"), nav_links)},
server = function(input, output, session) {}
)
}
test_app <- function() {
# Use . for home and no / for metadata
nav_links <- tags$ul(
tags$li(tags$a(href = ".", "home"),),
tags$li(tags$a(href = "metadata", "metadata"),)
)
brochureApp(
options = list(launch.browser = T),
## Pages
# Main menu
landing_page_test(nav_links),
metadata_page(nav_links)
)
}
test_app()
from brochure.
I would maybe add a small section about this in the readme, but for now I will close the issue. Others can just read this issue too.
from brochure.
Related Issues (20)
- adding a "www" folder to my app caused it to unexpectedly break HOT 5
- shinyashboard doesn't refresh page, it opens a new one HOT 2
- Deployment Help for Brochure application HOT 7
- test golem recommended don't work HOT 1
- Add test for default page
- reactLog error HOT 4
- wrapped should default to tagList in brochureApp HOT 1
- redirect() function injects "<script>$( document ).ready(function().." into body of bs4Dashh::dashboardPage() HOT 4
- Clarify the way brochureApp() handles `..`
- Css not recognized when adapting traditional golem app to brochure [solved]
- Creating a brochure app through golem does not import `{brochure}` HOT 2
- Brochure hex logo
- Strange EOF issue when POSTing JSON HOT 1
- Is there a need to use inner-session async in `brochure` pages?
- Brochure adds unnecessary container-fluid HOT 4
- Start from within RStudio
- feat: path should match based on regex
- bug: sub-path not working HOT 1
- Bootswatch-themes per page don't get applied
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brochure.