The behavior of rstudioapi::sendToConsole which unlockREDCap relies on for user experience has changed behavior over the last few versions. It looks like the flag focus=FALSE needs to be set on these calls to prevent focus changing and exposing the automagic to the user.
The behavior of
rstudioapi::sendToConsole
whichunlockREDCap
relies on for user experience has changed behavior over the last few versions. It looks like the flagfocus=FALSE
needs to be set on these calls to prevent focus changing and exposing the automagic to the user.