Description Usage Arguments Value
Check if a User is Allowed to Participate Given his Id
1 2 3 4 5 6 7 8 9 10 11 12 |
id |
string or numeric. The user id to check. |
cntrlVals |
list of reactive values.Controls the flow through the
Experiment. Can be created with |
location |
string. Where to get the reference database from. Must be one of "local", "dropbox" or "vector". "local" will load a txt or rds file. "dropbox" will load a csv file from the indicated dropbox account and "vector" assumes that you gave a vector of ids as input to idsVec. |
fileSep |
string. Passed to the |
fileHeader |
logical. Passed to the read.table header argument. |
dropDir |
string. The directory in the dropbox from which to read in the database. Must only be specified if location is set to "dropbox". |
fileName |
string. The database file-name, including path. Must be specified if location is one of "dropbox" or "local". |
droptoken |
string. The name of the rds file containing the access tokens of the dropbox account from which the data should be loaded. If file is outside the app directory full directory must be included. |
idsVec |
string. Vector of ids that are no longer allowed to participate. Must only be specified if location is set to "vector". |
notAllowedId |
string. The name (default is "not allowed") of the page that should be displayed in case the given id is occurring in the database. |
If id is also contained in database cntrlVals$page will be changed to notAllowedId. Does not have to be reassigned since it's a reactive value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.