SufficientFunds provides a wrapper that checks whether your account has sufficient funds based upon specified characters of your HIT.AccountBalance( keypair = credentials(), print = getOption('MTurkR.print'),
browser = getOption('MTurkR.browser'),
log.requests = getOption('MTurkR.log'),
sandbox = getOption('MTurkR.sandbox'),
validation.test = getOption('MTurkR.test'))
SufficientFunds(amount, assignments = NULL, hits = NULL,
bonus.ct = NULL, bonus.amount = NULL, masters = FALSE,
turkfee = 0.1, turkmin = 0.005, mastersfee = 0.2,
keypair = credentials(), print = getOption('MTurkR.print'),
log.requests = getOption('MTurkR.log'),
sandbox = getOption('MTurkR.sandbox'),
validation.test = getOption('MTurkR.test'))FALSE.credentials.TRUE.FALSE.TRUE. See readlogfile for details.FALSE.FALSE.AccountBalance takes no substantive arguments. SufficientFunds is a wrapper for AccountBalance that accepts as inputs information about intended payments and bonuses to check whether your account has sufficient funds. If sandbox=TRUE, AccountBalance always returns accountbalance() and getbalance() are aliases for AccountBalance.AccountBalance()
SufficientFunds(amount=".25",assignments="50",hits="5")
SufficientFunds(bonus.ct="150",bonus.amount=".75")Run the code above in your browser using DataLab