-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into new-page-design
- Loading branch information
Showing
4 changed files
with
86 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# remotes::install_github("surveydown-dev/surveydown", force = TRUE) | ||
library(surveydown) | ||
|
||
# Database setup | ||
|
||
# surveydown stores data on a database that you define at https://supabase.com/ | ||
# To connect to a database, update the sd_database() function with details | ||
# from your supabase database. For this demo, we set ignore = TRUE, which will | ||
# ignore the settings and won't attempt to connect to the database. This is | ||
# helpful for local testing if you don't want to record testing data in the | ||
# database table. See the documentation for details: | ||
# https://surveydown.org/store-data | ||
|
||
db <- sd_database( | ||
host = "", | ||
dbname = "", | ||
port = "", | ||
user = "", | ||
table = "", | ||
ignore = TRUE | ||
) | ||
|
||
# UI setup | ||
ui <- sd_ui() | ||
|
||
# Server setup | ||
server <- function(input, output, session) { | ||
|
||
# Config setup | ||
config <- sd_config() | ||
|
||
# sd_server() initiates your survey - don't change it | ||
sd_server( | ||
input = input, | ||
output = output, | ||
session = session, | ||
config = config, | ||
db = db | ||
) | ||
|
||
} | ||
|
||
# shinyApp() initiates your app - don't change it | ||
shiny::shinyApp(ui = ui, server = server) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
Version: 1.0 | ||
|
||
RestoreWorkspace: No | ||
SaveWorkspace: No | ||
AlwaysSaveHistory: Default | ||
|
||
EnableCodeIndexing: Yes | ||
UseSpacesForTab: Yes | ||
NumSpacesForTab: 4 | ||
Encoding: UTF-8 | ||
|
||
RnwWeave: Sweave | ||
LaTeX: pdfLaTeX | ||
|
||
AutoAppendNewline: Yes | ||
StripTrailingWhitespace: Yes | ||
LineEndingConversion: Posix | ||
|
||
BuildType: Package | ||
PackageUseDevtools: Yes | ||
PackageInstallArgs: --no-multiarch --with-keep.source | ||
PackageRoxygenize: rd,collate,namespace | ||
Version: 1.0 | ||
RestoreWorkspace: No | ||
SaveWorkspace: No | ||
AlwaysSaveHistory: Default | ||
EnableCodeIndexing: Yes | ||
UseSpacesForTab: Yes | ||
NumSpacesForTab: 4 | ||
Encoding: UTF-8 | ||
RnwWeave: Sweave | ||
LaTeX: pdfLaTeX | ||
AutoAppendNewline: Yes | ||
StripTrailingWhitespace: Yes | ||
LineEndingConversion: Posix | ||
BuildType: Package | ||
PackageUseDevtools: Yes | ||
PackageInstallArgs: --no-multiarch --with-keep.source | ||
PackageRoxygenize: rd,collate,namespace |