SufficientFunds provides a wrapper that checks whether your account has sufficient funds based upon specified characters of your HIT.AccountBalance(verbose = getOption('MTurkR.verbose'), ...)
SufficientFunds(amount, assignments = NULL, hits = NULL,
bonus.ct = NULL, bonus.amount = NULL, masters = FALSE,
turkfee = 0.1, turkmin = 0.005, mastersfee = 0.2, ...)FALSE.getOption('MturkR.verbose').request.balance) containing the balance of the account in US Dollars.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