R API from RedCap

Hello,

I am using RStudio and have gotten the following error when running API code to get data from RedCap into a web-based interface. I am new to R and a previous person set this up to run and pull data from RedCap so that others can quickly sort through and filter based on web page. Any help would be appreciated. Thank you

When I run the app code I get the following:

plumber::plumb(file='app_main.R')$run()
data.table 1.14.8 using 24 threads (see ?getDTthreads). Latest news: r-datatable.com

Attaching package: ‘dplyr’

The following objects are masked from ‘package:data.table’:

between, first, last

The following objects are masked from ‘package:stats’:

filter, lag

The following objects are masked from ‘package:base’:

intersect, setdiff, setequal, union

Attaching package: ‘lubridate’

The following objects are masked from ‘package:data.table’:

hour, isoweek, mday, minute, month, quarter, second, wday, week, yday, year

The following objects are masked from ‘package:base’:

date, intersect, setdiff, union

Loading required package: bit

Attaching package: ‘bit’

The following object is masked from ‘package:dplyr’:

symdiff

The following object is masked from ‘package:data.table’:

setattr

The following object is masked from ‘package:base’:

xor

Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64

Attaching package: ‘bit64’

The following objects are masked from ‘package:base’:

%in%, :, is.double, match, order, rank

Running plumber API at http://127.0.0.1:6257
Running swagger Docs at http://127.0.0.1:6257/__docs__/
<simpleError in .subset2(x, i, exact = exact): attempt to select less than one element in get1index>
<simpleError in .subset2(x, i, exact = exact): attempt to select less than one element in get1index>
<simpleError in .subset2(x, i, exact = exact): attempt to select less than one element in get1index>
<simpleError in .subset2(x, i, exact = exact): attempt to select less than one element in get1index>
<simpleError in .subset2(x, i, exact = exact): attempt to select less than one element in get1index>

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.