Skip to content

Commit

Permalink
Merge pull request #142 from kerchner/patch-1
Browse files Browse the repository at this point in the history
Update default csv name in error message
  • Loading branch information
jhelvy authored Nov 26, 2024
2 parents 65ec8ba + f7c070a commit 86d509e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# surveydown (development version)

- Fixed typo in error message (`data.csv` -> `preview_data.csv`).

# surveydown 0.5.0

- New cookies feature! Now `sd_server()` accepts a new argument `use_cookies`, defaults to `TRUE`. It enables cookies so that reopening the survey will resume the participant to where the survey was left. The database will trace to the original `session_id` and continuous the data update based on user input. If changed to `FALSE`, the survey will start as brand new session upon reopening.
Expand Down
2 changes: 1 addition & 1 deletion R/db.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ sd_database <- function(

# Authentication/Checks for NULL Values
if (is.null(host) | is.null(dbname) | is.null(port) | is.null(user) | is.null(table)) {
message("One or more of the required arguments in sd_database() are NULL, so the database is NOT connected; writing responses to local data.csv file *for previewing purposes only*.")
message("One or more of the required arguments in sd_database() are NULL, so the database is NOT connected; writing responses to local preview_data.csv file *for previewing purposes only*.")
return(NULL)
}

Expand Down

0 comments on commit 86d509e

Please sign in to comment.