Skip to content

Commit b8b0f50

Browse files
committed
1 parent 2c0da3b commit b8b0f50

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description: Encapsulates functions to streamline calls from R to the REDCap
66
University. The Application Programming Interface (API) offers an avenue
77
to access and modify data programmatically, improving the capacity for
88
literate and reproducible programming.
9-
Version: 1.0.9000
9+
Version: 1.0.9001
1010
Authors@R: c(person("Will", "Beasley", role = c("aut", "cre"), email =
1111
"[email protected]", comment = c(ORCID = "0000-0002-5613-5006")),
1212
person("David", "Bard", role = "ctb"),

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Upcoming Versions
99
* New `redcap_instruments()` function exports a list of the data collection instruments for a project. (#381, @vcastro)
1010
* New `redcap_event_instruments()` function exports the instrument-event mappings for a project (i.e., how the data collection instruments are designated for certain events in a longitudinal project).. (#381, @vcastro)
1111

12-
1312
### Minor Enhancements
1413

1514
* `sanitize_token()` now allows lowercase characters --in addition to uppercase characters & digits. (#347, @jmbarbone)
@@ -18,6 +17,7 @@ Upcoming Versions
1817
* `retrieve_credential_local()` can now user `username` to identify the desired credential row (#364)
1918
* `redcap_read()` and `redcap_read_oneshot()` gain the `http_response_encoding` parameter that's passed to [`httr::content()`](https://httr.r-lib.org/reference/content.html). The default value remains "UTF-8". (#354, @lrasmus)
2019
* Accommodate single-character REDCap variable names (#367 & #368, @daynefiler)
20+
* Set `httr::user_agent`, following the advice of its vignette (#397)
2121

2222
### Test Suite
2323

R/kernel-api.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ kernel_api <- function(
5959
result <- httr::POST(
6060
url = redcap_uri,
6161
body = post_body,
62-
config = config_options
62+
config = config_options,
63+
httr::user_agent("OuhscBbmc/REDCapR")
6364
)
6465

6566
status_code <- result$status

0 commit comments

Comments
 (0)