Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
Fixed issue with recursion trying to parse XML that was already parse…
Browse files Browse the repository at this point in the history
…d into a data frame.
  • Loading branch information
andrewbrownphd committed Apr 21, 2016
1 parent 4fdfb4d commit a3de49f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/GetBonuses.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ function(assignment = NULL,
}
Bonuses <- list()
for (i in 1:length(hitlist)) {
b <- GetBonuses(hit = hitlist[i], return.all = return.all, ...)
Bonuses[[i]] <- as.data.frame.BonusPayments(xml.parsed = xmlParse(b$xml))
Bonuses[[i]] <- GetBonuses(hit = hitlist[i], return.all = return.all, ...)
}
out <- do.call('rbind.data.frame',Bonuses)
if (verbose) {
Expand Down

0 comments on commit a3de49f

Please sign in to comment.