-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow customization of application verbiage. #693
Conversation
R/safetyGraphicsApp.R
Outdated
hexPath = system.file("resources/safetyGraphicsHex.png", package = "safetyGraphics"), | ||
homeTabPath = system.file('resources/safetyGraphicsHomeTab.html', package = 'safetyGraphics'), | ||
launchBrowser = FALSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add new params in header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
if (runNow) { | ||
if (launchBrowser == TRUE) { | ||
runApp(app, launch.browser = TRUE) | ||
} else { | ||
runApp(app) | ||
} | ||
} | ||
|
||
app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to try a deploy to shinyapps.io with this update. IIRC the previous code was added to make that work cleanly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Captured in #708
R/safetyGraphicsApp.R
Outdated
if (!is.character(appName)) | ||
appName <- 'safetyGraphics' | ||
|
||
if (!is.character(hexPath) || !file.exists(hexPath)) | ||
hexPath <- system.file("resources/safetyGraphicsHex.png", package = "safetyGraphics") | ||
|
||
if (!is.character(homeTabPath) || !file.exists(homeTabPath)) | ||
homeTabPath <- system.file('resources/safetyGraphicsHomeTab.html', package = 'safetyGraphics') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this logic to app_startup()
i.e. application name, description, and image