SufficientFunds provides a wrapper that checks whether your account has sufficient funds based upon specified characters of your HIT.AccountBalance(verbose = getOption('MTurkR.verbose', TRUE), ...)
SufficientFunds(amount = NULL, assignments = NULL, hits = NULL, 
                bonus.ct = NULL, bonus.amount = NULL, masters = FALSE, 
                turkfee = 0.2, turkmin = 0.01, mastersfee = 0.05, ...)FALSE.assignments is greater than or equal to 10. This is factored in automaticallygetOption('MTurkR.verbose', TRUE).request.balance) containing the balance of the account in US Dollars. Note: object is returned invisibly.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