ast
stringlengths
16
28.2M
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){pqr2Ps}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){p}<LSEP>[](symbol){q}<LSEP>[](symbol){r}<LSEP>[](symbol){useExact}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){useExact}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[](symbol){q}<LEND>[](symbol){r}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){p}<LEND>[](symbol){q}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[](symbol){q}<LEND>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){res}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){p}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){N}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1000.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){q}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){choose}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[](symbol){q}<LEND>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){res1}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){res1}<LSEP>[argument 1; litteral](real){inf}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){res1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){res}<LSEP>[](symbol){N}<LEND>[](symbol){res1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){res}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[litteral](NULL){NULL}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){perfectParsCharTree}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LSEP>[](symbol){nchar}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){phylo}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tree must be of class 'phylo'}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){charMat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[](symbol){nchar}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){charMat}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){desc}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.part}<LSEP>[](symbol){tree}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){desc}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){desc}<LSEP>[](symbol){length}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nnode}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){desc}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nchar}<LSEP>[](symbol){nnode}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){nchar}<LSEP>[](symbol){nnode}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){nchar}<LSEP>[](symbol){nnode}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){desc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){desc}<LEND>[](symbol){nnode}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nnode}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){nchar}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){desc}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nrand}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nchar}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){desc}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){desc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nchar}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nnode}<LEND>[](symbol){nrand}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Randomly sampling nodes for}<LSEP>[](symbol){nrand}<LSEP>[argument 2; litteral](str){extra characters}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nnode}<LSEP>[](symbol){nchar}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){nchar less than the number of ...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nchar}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nnode}<LEND>[](symbol){nchar}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nchar}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){charMat}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){desc}<LSEP>[](symbol){i}<LEND>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){charMat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){sampleRanges}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){r}<LSEP>[](symbol){alpha}<LSEP>[](symbol){beta}<LSEP>[](symbol){rTimeRatio}<LSEP>[](symbol){modern.samp.prob}<LSEP>[](symbol){min.taxa}<LSEP>[](symbol){ranges.only}<LSEP>[](symbol){minInt}<LSEP>[](symbol){merge.cryptic}<LSEP>[](symbol){randLiveHat}<LSEP>[](symbol){alt.method}<LSEP>[](symbol){plot}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){taxaData}<LEND>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){living}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cryptic}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){taxaData}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){x}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){x}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){x}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){timeData}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){taxaData}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 2; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){taxaData}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){taxaData}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){living}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){taxaData}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){living}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxaData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cryptic}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){taxaData}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){timeData}<LSEP>[](symbol){taxaData}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){taxaData}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){taxaData}<LEND>[argument 2; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){taxaData}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){taxaData}<LEND>[](symbol){min.taxa}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){min.taxa set higher than numbe...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){merge.cryptic}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){taxaData}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){cryptic}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){min.taxa set higher than numbe...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){timeData}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){timeData}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Weird NAs in Data??}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){timeData is not in time relati...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Some dates in timeData <0 ?}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){some r values < 0}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){beta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){some shape parameters (alpha, ...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){alpha}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multiple alpha values input bu...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){beta}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multiple beta values input but...}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){rTimeRatio}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){rTimeRatio}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multiple rTimeRatio values inp...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){midpoint}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){timeData}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){taxa.midpoints}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){r_start}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){rTimeRatio}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.500000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){r_end}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rTimeRatio}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){rTimeRatio}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){timeData}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){denomTime}<LSEP>[litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){denomTime}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){timeData}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rTimeChange}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r_end}<LSEP>[](symbol){r_start}<LEND>[](symbol){denomTime}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rTimeChange}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){rTimeChange}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dur1}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rTimeChange}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r_end}<LSEP>[](symbol){r_start}<LEND>[](symbol){dur1}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){taxa.timeChange}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){midpoint}<LSEP>[](symbol){taxa.midpoints}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rTimeChange}<LSEP>[](symbol){taxa.timeChange}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){names}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multiple r values given but no...}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){rTimeRatio so low as to cause ...}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){beta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){rTimeChange}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){alt.method}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rangesTimes}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){timeData}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){minInt}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){taxa.shiftTimes}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){taxa.midpoints}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rangesTimes}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){taxa.rShiftTime}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rTimeChange}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){taxa.shiftTimes}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){randLiveHat}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){end.hat}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){living}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){living}<LEND>[argument 2; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){end.hat}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){rangesTimes}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){scaledTimes}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){end.hat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){end.hat}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rangesTimes}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rHat}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){dbeta}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){scaledTimes}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alpha}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){beta}<LSEP>[](symbol){x}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){rHatTime}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHat}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){taxa.rShiftTime}<LSEP>[](symbol){x}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){rHatTime1}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){rHatTime}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){rHatTime}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){rHatTime}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime1}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime1}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime1}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rHatTime}<LSEP>[litteral](NULL){NULL}<LEND>[statement 22; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){rHatTime}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){rHatTime}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){rHatTime}<LEND>[argument 2; litteral](str){n}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){timeData}<LEND>[argument 4; litteral](str){Time (Time-Units before Present)}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Instant. Sampling Rate}<LSEP>[argument 1; litteral](str){(per lineage time-units)}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rangesTimes}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){r}<LEND>[argument 2; litteral](str){n}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){timeData}<LEND>[argument 4; litteral](str){Time (Time-Units before Present)}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Instant. Sampling Rate}<LSEP>[argument 1; litteral](str){(per lineage time-units)}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){r}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){redo}<LSEP>[litteral](logical){TRUE}<LEND>[statement 24; control flow](){while}<LSEP>[](symbol){redo}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){samp_occ}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){timeData}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){rHatTime}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){samps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){samps}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){samps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){samps}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){samps}<LEND>[argument 1; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){samps}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){samps}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){samps}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){samps}<LEND>[call](){}<LSEP>[](symbol){numeric}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){samps}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rangesTimes}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rHatTime}<LSEP>[](symbol){i}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LSEP>[](symbol){minInt}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){modern.samp.prob}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){living}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){modern.samp.prob}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){samps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){samps}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){samps}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){samp_occ}<LSEP>[](symbol){i}<LEND>[](symbol){samps}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){samp_occ}<LSEP>[](symbol){i}<LEND>[litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){redo}<LEND>[call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){min.taxa}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){samp_occ}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){samp_occ}<LEND>[](symbol){names}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){cryptic}<LEND>[](symbol){merge.cryptic}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){cryptic}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){samp_occ}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cryptic}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){samp_occ}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cryptic}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){samp_occ}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){samp_occ}<LSEP>[](symbol){i}<LEND>[litteral](logical){NA}<LEND>[statement 27; control flow](){if}<LSEP>[](symbol){ranges.only}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ranges}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){samp_occ}<LSEP>[](symbol){max}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){samp_occ}<LSEP>[](symbol){min}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){ranges}<LEND>[](symbol){names}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ranges}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FAD}<LSEP>[argument 1; litteral](str){LAD}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){res}<LSEP>[](symbol){ranges}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LSEP>[](symbol){samp_occ}<LEND>[statement 28; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){setRootAge}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LSEP>[](symbol){fixedAges}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){phylo}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tree must be of type 'phylo'}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){fixedAges}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){fixedTable}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fixedAges must be supplied}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fixedAges}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){fixedTable}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){root.time}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){why does tree already have a $...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fixedTaxa}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixedAges}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fixedAges}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixedAges}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){taxaTree}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){missingAge}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){fixedTaxa}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){x}<LSEP>[](symbol){taxaTree}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){missingAge}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fixedTaxa}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){None of the taxa in fixedAges ...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){fixedAges}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixedAges}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){missingAge}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){fixedTaxa}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixedTaxa}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){missingAge}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){youngest}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){fixedAges}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){fixedAges}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){youngDate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixedAges}<LSEP>[](symbol){youngest}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){youngTipDepth}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){node.depth.edgelength}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){taxaTree}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixedTaxa}<LSEP>[](symbol){youngest}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){root.time}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){youngTipDepth}<LSEP>[](symbol){youngDate}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){root.time}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multiple root.time elements ca...}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tree}<LEND>[assign](){<-}<LSEP>[](symbol){setRootAges}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){trees}<LSEP>[](symbol){fixedAges}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){trees}<LSEP>[argument 1; litteral](str){multiPhylo}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){trees must be of type multiPhylo}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){trees}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){trees must be of type multiPhylo}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){trees}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tree}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){trees}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){trees}<LSEP>[argument 1; litteral](str){fixedTable}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){fixedTable}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){trees}<LSEP>[argument 1; litteral](str){fixedTable}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){trees}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){setRootAge}<LSEP>[](symbol){tree}<LSEP>[](symbol){fixedAges}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){trees}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){timeLadderTree}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LSEP>[](symbol){timeData}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){phylo}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tree must be of class 'phylo'}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){timeData}<LSEP>[argument 1; litteral](str){matrix}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){timeData}<LSEP>[argument 1; litteral](str){data.frame}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){timeData}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){timeData}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){timeData not of matrix or data...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){timeData}<LEND>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){timeData}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tree}<LEND>[call](){}<LSEP>[](symbol){drop.tip}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Less than two valid taxa share...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){timeData}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){timeData}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Weird NAs in Data??}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){timeData is not in time relati...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nodes}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){polys}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nodes}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nodes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){polys}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No Polytomies in Cropped Tree?}<LEND>[statement 11; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){polys}<LEND>[argument 1; litteral](real){0.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){node}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){polys}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){desc}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){node}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dTips}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){desc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.part}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dFADs}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){dTips}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){timeData}<LSEP>[](symbol){x}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){subtree}<LEND>[call](){}<LSEP>[](symbol){stree}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){dFADs}<LEND>[argument 1; litteral](str){left}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){subtree}<LSEP>[](symbol){tip.label}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){desc}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){dFADs}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){dFADs}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){desc}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dtip}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){subtree}<LSEP>[](symbol){tip.label}<LEND>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){subclade}<LEND>[call](){}<LSEP>[](symbol){extract.clade}<LSEP>[](symbol){tree}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){subtree}<LEND>[call](){}<LSEP>[](symbol){bind.tree}<LSEP>[](symbol){subtree}<LSEP>[](symbol){subclade}<LSEP>[](symbol){dtip}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){subtree}<LEND>[call](){}<LSEP>[](symbol){collapse.singles}<LSEP>[](symbol){subtree}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){subtree}<LSEP>[](symbol){tip.label}<LEND>[](symbol){dtip}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[](symbol){i}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){node}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){drtips}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){prop.part}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){node}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tip_lab}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){drtips}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){droptree}<LEND>[call](){}<LSEP>[](symbol){collapse.singles}<LEND>[argument 0; call](){}<LSEP>[](symbol){drop.tip}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){drtips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){droptree}<LEND>[call](){}<LSEP>[](symbol){bind.tree}<LSEP>[](symbol){droptree}<LSEP>[](symbol){subtree}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){droptree}<LSEP>[](symbol){tip.label}<LEND>[](symbol){tip_lab}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tree}<LSEP>[](symbol){droptree}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tree}<LSEP>[](symbol){subtree}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nodes}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){polys}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nodes}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nodes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge.length}<LEND>[litteral](NULL){NULL}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tree}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){testEdgeMat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){phylo}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tree is not of type 'phylo'}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){edge}<LSEP>[argument 1; litteral](str){tip.label}<LSEP>[argument 2; litteral](str){Nnode}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Missing key required elements ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){NA values in $edge table}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$tip.label must be a vector}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$tip.label must be of type cha...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$tip.label must be of length g...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$Nnode must be a vector}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$Nnode must be of type numeric}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$Nnode must be of length 1}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$Nnode must be at least 1}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$edge must be of type matrix}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$edge must have two columns}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$edge must be of type numeric}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){NAs found in $edge matrix}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$Nnode is not stored as an int...}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){$edge is not stored as an integer}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){NAs found in $edge matrix}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All elements of $edge must be ...}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){rootID}<LEND>[call](){}<LSEP>[](symbol){getRootID}<LSEP>[](symbol){tree}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){rootID}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The root node is numbered }<LSEP>[](symbol){rootID}<LSEP>[argument 2; litteral](str){ in $edge, should be Ntip(tree...}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 4; litteral](str){)}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){expNodeNumber}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){expNodeNumber}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Some elements of edge are numb...}<LSEP>[](symbol){expNodeNumber}<LSEP>[argument 2; litteral](str){\n calculated from Nnode+lengt...}<LSEP>[argument 3; litteral](str){\n Check these: }<LEND>[argument 4; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){expNodeNumber}<LEND>[argument 1; litteral](str){ }<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Nnode is lower than number imp...}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){tabEdge}<LEND>[call](){}<LSEP>[](symbol){tabulate}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tabEdge}<LEND>[](symbol){expNodeNumber}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fewer node IDs found in $edge ...}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabEdge}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Some tip IDs appear more than ...}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabEdge}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Some tip IDs appear less than ...}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabEdge}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Some internal node IDs appear ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabEdge}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Some internal node IDs appear ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabEdge}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){ }<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Apparent tip IDs appear in col...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 2; litteral](str){ }<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){testParentChild}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Edge matrix has inconsistencies}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of nodes is incorrect b...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not all internal nodes (includ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not all internal nodes (except...}<LEND>[statement 31; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){getRootID}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){uniqueNode}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){whichRoot}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){uniqueNode}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){whichRoot}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){More than one apparent root in...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){rootID}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){uniqueNode}<LSEP>[](symbol){whichRoot}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){rootID}<LEND>[assign](){<-}<LSEP>[](symbol){cleanNewPhylo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){renumberRootID}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tree}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rootID}<LEND>[call](){}<LSEP>[](symbol){getRootID}<LSEP>[](symbol){tree}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){expRootID}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){rootID}<LSEP>[](symbol){expRootID}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){rootID}<LEND>[litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){expRootID}<LEND>[](symbol){rootID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){expRootID}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[litteral](str){integer}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tree}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){tree}<LSEP>[argument 1; litteral](str){phylo}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tree must be of class 'phylo'}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){edge}<LSEP>[argument 1; litteral](str){tip.label}<LSEP>[argument 2; litteral](str){Nnode}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Missing key required elements ...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){oldNtip}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[litteral](str){integer}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){storage.mode}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){Nnode}<LEND>[litteral](str){integer}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){testEdgeMat}<LSEP>[](symbol){tree}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Edge matrix has inconsistencies}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Nsingle}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){Nsingle}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){treePrev}<LSEP>[](symbol){tree}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){Nsingle}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tree1}<LEND>[call](){}<LSEP>[](symbol){collapse.singles}<LSEP>[](symbol){treePrev}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tree1}<LEND>[call](){}<LSEP>[](symbol){renumberRootID}<LSEP>[](symbol){tree1}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){testEdgeMat}<LSEP>[](symbol){tree1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Edge matrix has inconsistencies}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){treePrev}<LEND>[argument 1; call](){}<LSEP>[](symbol){Nnode}<LSEP>[](symbol){tree1}<LEND>[](symbol){Nsingle}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){collapse.singles dropped too m...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Nsingle}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree1}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree1}<LSEP>[](symbol){edge}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){treePrev}<LSEP>[](symbol){tree1}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tree1}<LSEP>[](symbol){tree}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tree1}<LEND>[call](){}<LSEP>[](symbol){reorder.phylo}<LSEP>[](symbol){tree1}<LSEP>[argument 1; litteral](str){cladewise}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){testEdgeMat}<LSEP>[](symbol){tree1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Edge matrix has inconsistencies}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tree1}<LEND>[call](){}<LSEP>[](symbol){read.tree}<LEND>[argument 0; call](){}<LSEP>[](symbol){write.tree}<LSEP>[](symbol){tree1}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){testEdgeMat}<LSEP>[](symbol){tree1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Edge matrix has inconsistencies}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tree1}<LEND>[call](){}<LSEP>[](symbol){ladderize}<LSEP>[](symbol){tree1}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){oldNtip}<LEND>[argument 1; call](){}<LSEP>[](symbol){Ntip}<LSEP>[](symbol){tree1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Final tip taxon number differe...}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tree1}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){DBI}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){RSQLite}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){RSQL}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){lgr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LEND>[assign](){<-}<LSEP>[](symbol){log.levels}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){lgr}<LSEP>[](symbol){get_log_levels}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){set_threshold}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.levels}<LSEP>[argument 1; litteral](str){debug}<LEND>[call](){}<LSEP>[](symbol){test_check}<LSEP>[argument 0; litteral](str){RSQL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){db.name}<LEND>[call](){}<LSEP>[](symbol){getMtcarsdbPath}<LEND>[assign](){<-}<LSEP>[](symbol){rsql}<LEND>[call](){}<LSEP>[](symbol){createRSQL}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RSQLite}<LSEP>[](symbol){SQLite}<LEND>[](symbol){db.name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){sql_lib basic test}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dbListTables}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){conn}<LEND>[argument 1; litteral](str){mtcars}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){db.name}<LEND>[call](){}<LSEP>[](symbol){getMtcarsdbPath}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rsql}<LEND>[call](){}<LSEP>[](symbol){createRSQL}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RSQLite}<LSEP>[](symbol){SQLite}<LEND>[](symbol){db.name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){*}<LEND>[argument 1; litteral](str){mtcars}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LSEP>[argument 6; litteral](str){qsec}<LSEP>[argument 7; litteral](str){vs}<LSEP>[argument 8; litteral](str){am}<LEND>[argument 1; litteral](str){mtcars}<LSEP>[argument 2; litteral](str){gear}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LSEP>[argument 6; litteral](str){qsec}<LSEP>[argument 7; litteral](str){vs}<LSEP>[argument 8; litteral](str){am}<LEND>[argument 1; litteral](str){mtcars}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gear}<LSEP>[argument 1; litteral](str){carb}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LSEP>[argument 6; litteral](str){qsec}<LSEP>[argument 7; litteral](str){vs}<LSEP>[argument 8; litteral](str){am}<LEND>[argument 1; litteral](str){mtcars}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mtcars.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){query_sql}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mtcars.observed}<LEND>[argument 1; litteral](real){12.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){util}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_vector_quotes}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hel'lo}<LSEP>[argument 1; litteral](str){'hel'lo'}<LSEP>[argument 2; litteral](str){'tell''}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hel''lo}<LSEP>[argument 1; litteral](str){hel''lo}<LSEP>[argument 2; litteral](str){tell''}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){legal entities}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LEND>[argument 1; litteral](str){qsec}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){query_sql}<LSEP>[argument 1; litteral](str){select mpg, cyl, disp, hp, dra...}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ill.egal1}<LEND>[argument 1; litteral](str){legal}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ill egal2}<LEND>[argument 1; litteral](str){legal}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){legal}<LEND>[argument 1; litteral](str){illegal 3}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){min(legal)}<LEND>[argument 1; litteral](str){legal}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){query_sql}<LSEP>[argument 1; litteral](str){select min(legal) from legal}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){min(d_date)}<LEND>[argument 1; litteral](str){legal}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){query_sql}<LSEP>[argument 1; litteral](str){select min(d_date) from legal}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){illegal(legal)}<LEND>[argument 1; litteral](str){legal}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){sql_lib insert and delete test}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){insert_fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LSEP>[argument 6; litteral](str){qsec}<LSEP>[argument 7; litteral](str){vs}<LSEP>[argument 8; litteral](str){am}<LSEP>[argument 9; litteral](str){gear}<LSEP>[argument 10; litteral](str){carb}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){insert_data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){6.000000}<LSEP>[argument 6; litteral](real){7.000000}<LSEP>[argument 7; litteral](real){8.000000}<LSEP>[argument 8; litteral](real){9.000000}<LSEP>[argument 9; litteral](real){10.000000}<LSEP>[argument 10; litteral](real){11.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){insert.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_insert}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){insert_data}<LSEP>[](symbol){insert_fields}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_insert}<LEND>[](symbol){insert.sql}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){update_fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){update_values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){where_values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){258.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){update_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_update}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){update_fields}<LSEP>[](symbol){update_values}<LSEP>[](symbol){where_values}<LEND>[statement 8; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_update}<LEND>[](symbol){update_sql}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){delete.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_delete}<LEND>[argument 0; litteral](str){mtcars}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 10; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_delete}<LEND>[](symbol){delete.sql}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){sql_lib select, insert and del...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){insert_fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LSEP>[argument 6; litteral](str){qsec}<LSEP>[argument 7; litteral](str){vs}<LSEP>[argument 8; litteral](str){am}<LSEP>[argument 9; litteral](str){gear}<LSEP>[argument 10; litteral](str){carb}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){insert_data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){11.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[argument 1; litteral](real){11.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){insert_data}<LEND>[](symbol){insert_fields}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){insert.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_insert}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){insert_data}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_insert}<LEND>[](symbol){insert.sql}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){update_fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){update_values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){update_values}<LEND>[](symbol){update_fields}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){where_values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){275.800000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){update_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_update}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){update_values}<LSEP>[](symbol){where_values}<LEND>[statement 10; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_update}<LEND>[](symbol){update_sql}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){check_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[](symbol){update_fields}<LSEP>[argument 1; litteral](str){mtcars}<LSEP>[](symbol){where_values}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){check_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){check_sql}<LEND>[statement 13; call](){}<LSEP>[](symbol){expect_equivalent}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){check_df}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){mpg}<LSEP>[](symbol){cyl}<LEND>[](symbol){update_values}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){delete.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_delete}<LEND>[argument 0; litteral](str){mtcars}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 15; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_delete}<LEND>[](symbol){delete.sql}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){sql_lib select, insert, update...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtcars}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){mtcars}<LEND>[statement 1; call](){}<LSEP>[](symbol){dbWriteTable}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){conn}<LEND>[argument 1; litteral](str){mtcars}<LSEP>[](symbol){mtcars}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){insert_fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){disp}<LSEP>[argument 3; litteral](str){hp}<LSEP>[argument 4; litteral](str){drat}<LSEP>[argument 5; litteral](str){wt}<LSEP>[argument 6; litteral](str){qsec}<LSEP>[argument 7; litteral](str){vs}<LSEP>[argument 8; litteral](str){am}<LSEP>[argument 9; litteral](str){gear}<LSEP>[argument 10; litteral](str){carb}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){insert_data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){11.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[argument 1; litteral](real){11.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){insert_data}<LEND>[](symbol){insert_fields}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){insert_data}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'car}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){insert_data}<LSEP>[argument 1; litteral](real){7.000000}<LSEP>[argument 2; litteral](str){model}<LEND>[litteral](str){'O'Connor'}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){insert.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_insert}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){insert_data}<LEND>[statement 8; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_insert}<LEND>[](symbol){insert.sql}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){update_fields}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mpg}<LSEP>[argument 1; litteral](str){cyl}<LSEP>[argument 2; litteral](str){model}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){update_values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](str){'O'Connor'}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){update_values}<LEND>[](symbol){update_fields}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){where_values_df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){275.800000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){update_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_update}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){update_values}<LSEP>[](symbol){where_values_df}<LEND>[statement 14; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_update}<LEND>[](symbol){update_sql}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){where.accent}<LSEP>[litteral](str){\xC3\xA1ccent}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){where.df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){where.accent}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){exists.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; litteral](str){id_pais}<LSEP>[argument 1; litteral](str){pais}<LSEP>[](symbol){where.df}<LEND>[](symbol){exists.sql}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){'O'Connor'}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){check_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[](symbol){update_fields}<LSEP>[argument 1; litteral](str){mtcars}<LSEP>[](symbol){where_values.df}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 21; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){check_sql}<LSEP>[argument 1; litteral](str){select distinct mpg, cyl, mode...}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){check_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){check_sql}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){observed_values}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){check_df}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mpg}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){observed_values}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){add_quotes}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){observed_values}<LSEP>[](symbol){model}<LEND>[statement 25; call](){}<LSEP>[](symbol){expect_equivalent}<LSEP>[](symbol){observed_values}<LSEP>[](symbol){update_values}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){delete.where.df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){O'Connor}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){delete.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_delete}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){delete.where.df}<LEND>[statement 28; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){delete.sql}<LSEP>[argument 1; litteral](str){delete from mtcars where (mode...}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){delete.where.df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){'O'Connor'}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){delete.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_delete}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){delete.where.df}<LEND>[statement 31; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){delete.sql}<LSEP>[argument 1; litteral](str){delete from mtcars where (mode...}<LEND>[statement 32; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_delete}<LEND>[](symbol){delete.sql}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){check_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){check_sql}<LEND>[statement 34; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){check_df}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){sql_lib select with where clause}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){query_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[argument 1; litteral](str){*}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){21.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){selected.mtcars}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){query_sql}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){selected.mtcars}<LSEP>[](symbol){drat}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.900000}<LSEP>[argument 1; litteral](real){3.900000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){retrieveInsert}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){retrieve.insert.df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){car}<LSEP>[argument 2; litteral](str){red}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){dbWriteTable}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){conn}<LEND>[argument 1; litteral](str){retrieveInsert}<LSEP>[](symbol){retrieve.insert.df}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){values.uk}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retrieve.insert.df}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){uk}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){values.color}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retrieve.insert.df}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](str){color}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){vehicle.id.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){retrieve_insert}<LEND>[argument 0; litteral](str){retrieveInsert}<LSEP>[](symbol){values.uk}<LSEP>[](symbol){values.color}<LSEP>[argument 3; litteral](str){vehicle_id}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){vehicle.id.observed}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){values.uk}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){truck}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){vehicle.id.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){retrieve_insert}<LEND>[argument 0; litteral](str){retrieveInsert}<LSEP>[](symbol){values.uk}<LSEP>[](symbol){values.color}<LSEP>[argument 3; litteral](str){vehicle_id}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){vehicle.id.observed}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; litteral](str){*}<LSEP>[argument 1; litteral](str){retrieveInsert}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){vehicle.id.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){retrieve}<LEND>[argument 0; litteral](str){retrieveInsert}<LSEP>[](symbol){values.uk}<LSEP>[argument 2; litteral](str){vehicle_id}<LEND>[statement 11; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){vehicle.id.observed}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){vehicle.id.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){retrieve}<LEND>[argument 0; litteral](str){retrieveInsert}<LSEP>[](symbol){values.uk}<LSEP>[argument 2; litteral](str){vehicle_id}<LEND>[statement 13; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){vehicle.id.observed}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){vehicle_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 15; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_update}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_update}<LEND>[argument 0; litteral](str){retrieveInsert}<LSEP>[](symbol){vehicle_id}<LSEP>[](symbol){values.uk}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){vehicle.id.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){retrieve_insert}<LEND>[argument 0; litteral](str){retrieveInsert}<LSEP>[](symbol){values.uk}<LSEP>[](symbol){values.color}<LSEP>[argument 3; litteral](str){vehicle_id}<LEND>[statement 17; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){vehicle.id.observed}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){update symbols}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){update.pk}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){update.values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){observed.update}<LEND>[call](){}<LSEP>[](symbol){sql_gen_update}<LSEP>[argument 0; litteral](str){foo}<LSEP>[](symbol){update.values}<LSEP>[](symbol){update.pk}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){observed.update}<LSEP>[argument 1; litteral](str){update foo set (field.1,field....}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){disconnect}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){RSQL.class}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){R6}<LSEP>[](symbol){R6Class}<LEND>[argument 0; litteral](str){RSQL}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](NULL){NULL}<LSEP>[argument 6; litteral](logical){NA}<LSEP>[argument 7; litteral](logical){NA}<LSEP>[argument 8; litteral](real){0.000000}<LSEP>[argument 9; litteral](real){0.000000}<LSEP>[argument 10; litteral](real){0.000000}<LSEP>[argument 11; litteral](real){0.000000}<LSEP>[argument 12; litteral](real){0.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){drv}<LSEP>[](symbol){dbname}<LSEP>[](symbol){user}<LSEP>[](symbol){password}<LSEP>[](symbol){host}<LSEP>[](symbol){port}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){db.name}<LEND>[](symbol){dbname}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){driver}<LEND>[](symbol){drv}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[call](){}<LSEP>[](symbol){dbConnect}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){driver}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){db.name}<LEND>[](symbol){user}<LSEP>[](symbol){password}<LSEP>[](symbol){host}<LSEP>[](symbol){port}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){force}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[](symbol){force}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){available.functions}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){max}<LSEP>[argument 1; litteral](str){min}<LSEP>[argument 2; litteral](str){mean}<LSEP>[argument 3; litteral](str){tmean}<LSEP>[argument 4; litteral](str){count}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[litteral](str){([[:alnum:]\\_]+)}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){available.functions.regexp}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){available.functions}<LEND>[argument 1; litteral](str){|}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){field.wildcard}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){(?:}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[argument 2; litteral](str){|\\*)}<LSEP>[argument 3; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.select.regexp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){^(?:}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[argument 2; litteral](str){|(}<LSEP>[](symbol){available.functions.regexp}<LSEP>[argument 4; litteral](str){)\\(}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[argument 6; litteral](str){\\)}<LSEP>[argument 7; litteral](str){|}<LSEP>[argument 8; litteral](str){\\*)$}<LSEP>[argument 9; litteral](str){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){entity.regexp}<LSEP>[litteral](str){^(?:[[:alnum:]]\\_|(?:max|min|...}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){^}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[argument 2; litteral](str){$}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.select.regexp}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Finalizing object and disconne...}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){disconnect}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){entities}<LSEP>[](symbol){entity.type}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){setupRegexp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){errors}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){entity}<LSEP>[](symbol){entities}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){error}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){entity.regexp}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){entity.type}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){table}<LSEP>[argument 1; litteral](str){field}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){entity.regexp}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.field.regexp}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){entity.type}<LSEP>[argument 1; litteral](str){select}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){entity.regexp}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){entity.select.regexp}<LEND>[statement 4; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){entity.regexp}<LSEP>[](symbol){entity}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){entity.regexp}<LSEP>[argument 1; litteral](str){====}<LSEP>[](symbol){entity}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){entity.regexp}<LSEP>[](symbol){entity}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){error}<LSEP>[litteral](logical){TRUE}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){error}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){errors}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){errors}<LSEP>[](symbol){entity}<LEND>[](symbol){errors}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){errors}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){entity.type}<LSEP>[argument 1; litteral](str){ names are not legal:}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){errors}<LSEP>[argument 1; litteral](str){,}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){select_fields}<LSEP>[](symbol){table}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LSEP>[](symbol){group_by}<LSEP>[](symbol){order_by}<LSEP>[](symbol){top}<LSEP>[](symbol){distinct}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){select_fields}<LSEP>[argument 1; litteral](str){select}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){table}<LSEP>[argument 1; litteral](str){table}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){group_by}<LSEP>[](symbol){order_by}<LEND>[argument 1; litteral](str){field}<LEND>[statement 3; call](){}<LSEP>[](symbol){sql_gen_select}<LSEP>[](symbol){select_fields}<LSEP>[](symbol){table}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LSEP>[](symbol){group_by}<LSEP>[](symbol){order_by}<LSEP>[](symbol){top}<LSEP>[](symbol){distinct}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){values_df}<LSEP>[](symbol){insert_fields}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){table}<LSEP>[argument 1; litteral](str){table}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){insert_fields}<LSEP>[argument 1; litteral](str){field}<LEND>[statement 2; call](){}<LSEP>[](symbol){sql_gen_insert}<LSEP>[](symbol){table}<LSEP>[](symbol){values_df}<LSEP>[](symbol){insert_fields}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){update_fields}<LSEP>[](symbol){values}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){table}<LSEP>[argument 1; litteral](str){table}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){update_fields}<LSEP>[](symbol){where_fields}<LEND>[argument 1; litteral](str){field}<LEND>[statement 2; call](){}<LSEP>[](symbol){sql_gen_update}<LSEP>[](symbol){table}<LSEP>[](symbol){update_fields}<LSEP>[](symbol){values}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){table}<LSEP>[argument 1; litteral](str){table}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){where_fields}<LEND>[argument 1; litteral](str){field}<LEND>[statement 2; call](){}<LSEP>[](symbol){sql_gen_delete}<LSEP>[](symbol){table}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_select}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.query}<LEND>[](symbol){sql_select}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[call](){}<LSEP>[](symbol){sql_execute_select}<LSEP>[](symbol){sql_select}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){select.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){select.counter}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_update}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.query}<LEND>[](symbol){sql_update}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[call](){}<LSEP>[](symbol){sql_execute_update}<LSEP>[](symbol){sql_update}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){update.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){update.counter}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_insert}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.query}<LEND>[](symbol){sql_insert}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[call](){}<LSEP>[](symbol){sql_execute_insert}<LSEP>[](symbol){sql_insert}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){insert.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){insert.counter}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_command}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.query}<LEND>[](symbol){sql_command}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[call](){}<LSEP>[](symbol){sql_execute_insert}<LSEP>[](symbol){sql_command}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){command.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){command.counter}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_delete}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.query}<LEND>[](symbol){sql_delete}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[call](){}<LSEP>[](symbol){sql_execute_delete}<LSEP>[](symbol){sql_delete}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){delete.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){delete.counter}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){values}<LSEP>[](symbol){field_id}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){table}<LSEP>[argument 1; litteral](str){table}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){field_id}<LEND>[argument 1; litteral](str){field}<LEND>[statement 2; call](){}<LSEP>[](symbol){sql_retrieve}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){values}<LSEP>[](symbol){field_id}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){values}<LSEP>[](symbol){field_id}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[](symbol){table}<LSEP>[argument 1; litteral](str){table}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){checkEntitiesNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){field_id}<LEND>[argument 1; litteral](str){field}<LEND>[statement 2; call](){}<LSEP>[](symbol){sql_retrieve_insert}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){values}<LSEP>[](symbol){field_id}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){last.rs}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){DBI}<LSEP>[](symbol){dbDisconnect}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){self}<LSEP>[](symbol){conn}<LEND>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){createRSQL}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){drv}<LSEP>[](symbol){dbname}<LSEP>[](symbol){user}<LSEP>[](symbol){password}<LSEP>[](symbol){host}<LSEP>[](symbol){port}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){RSQL.class}<LSEP>[](symbol){new}<LEND>[](symbol){drv}<LSEP>[](symbol){dbname}<LSEP>[](symbol){user}<LSEP>[](symbol){password}<LSEP>[](symbol){host}<LSEP>[](symbol){port}<LEND>[assign](){<-}<LSEP>[](symbol){sql_execute_insert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_insert}<LSEP>[](symbol){dbconn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_insert}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){,NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql_insert}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql_insert}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){, NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql_insert}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_insert}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_insert}<LSEP>[argument 1; litteral](str){;}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){DBI}<LSEP>[](symbol){dbSendStatement}<LEND>[](symbol){dbconn}<LSEP>[](symbol){sql_insert}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[](symbol){sql_insert}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ret}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_execute_update}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_update}<LSEP>[](symbol){dbconn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){DBI}<LSEP>[](symbol){dbSendQuery}<LEND>[](symbol){dbconn}<LSEP>[](symbol){sql_update}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_execute_delete}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_delete}<LSEP>[](symbol){dbconn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_delete}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){,NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql_delete}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql_delete}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){, NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql_delete}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){DBI}<LSEP>[](symbol){dbExecute}<LEND>[](symbol){dbconn}<LSEP>[](symbol){sql_delete}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[](symbol){sql_delete}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_execute_select}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql_select}<LSEP>[](symbol){dbconn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_select}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){,NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql_select}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql_select}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){, NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql_select}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){DBI}<LSEP>[](symbol){dbGetQuery}<LEND>[](symbol){dbconn}<LSEP>[](symbol){sql_select}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){execute_get_insert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dbconn}<LSEP>[](symbol){sql_select}<LSEP>[](symbol){sql_insert}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){sql_execute_select}<LSEP>[](symbol){sql_select}<LSEP>[](symbol){dbconn}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){ret}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sql_execute_insert}<LSEP>[](symbol){sql_insert}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){sql_execute_select}<LSEP>[](symbol){sql_select}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){needs_quotes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){text}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Date}<LSEP>[argument 1; litteral](str){character}<LEND>[assign](){<-}<LSEP>[](symbol){is_quoted}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LSEP>[](symbol){quotes_symbols}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){text}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){text}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ret}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){quotes_symbols}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){quotes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){quotes_symbols}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){quotes}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){text}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){text}<LEND>[argument 2; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){text}<LEND>[](symbol){quotes}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){stuff_quote}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){unquoted.text}<LSEP>[](symbol){quote}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is_quoted}<LSEP>[](symbol){unquoted.text}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){stuff_quote function cannot be...}<LSEP>[](symbol){unquoted.text}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){stuffed.text}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[](symbol){quote}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){quote}<LSEP>[](symbol){quote}<LSEP>[argument 2; litteral](str){}<LEND>[](symbol){unquoted.text}<LEND>[](symbol){stuffed.text}<LEND>[assign](){<-}<LSEP>[](symbol){dequote}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){text}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){re_quote}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LSEP>[](symbol){quotes}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){text}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){text}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){quote}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is_quoted}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](str){"}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){quote}<LSEP>[litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is_quoted}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](str){'}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){dequote}<LSEP>[](symbol){text}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){quote}<LSEP>[litteral](logical){TRUE}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){quote}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){quotes}<LSEP>[](symbol){text}<LSEP>[](symbol){quotes}<LSEP>[argument 3; litteral](str){}<LEND>[](symbol){text}<LEND>[assign](){<-}<LSEP>[](symbol){add_quotes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){text}<LSEP>[](symbol){re_quote}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ret}<LEND>[litteral](NULL){NULL}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){rm_quotes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LSEP>[](symbol){quotes}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){text}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){unquoted.text}<LSEP>[](symbol){text}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){quotes}<LEND>[argument 1; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){quotes}<LEND>[argument 1; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){text}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){text}<LEND>[argument 2; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){text}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){text}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){unquoted.text}<LSEP>[](symbol){text}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){stuff_quote}<LSEP>[](symbol){unquoted.text}<LEND>[](symbol){text}<LEND>[assign](){<-}<LSEP>[](symbol){stuff_df_quoted}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text.df}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){text.df}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){text.df}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){text.df must be a data.frame b...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){text.df}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){process}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){text.df}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){process}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cols.quoted}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){text.df}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){x}<LSEP>[](symbol){is_quoted}<LEND>[argument 2; call](){}<LSEP>[](symbol){logical}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cols.need.quotes}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){text.df}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){x}<LSEP>[](symbol){needs_quotes}<LEND>[argument 2; call](){}<LSEP>[](symbol){logical}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cols.need.quotes}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){cols.quoted}<LSEP>[](symbol){cols.need.quotes}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){text.df}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cols.need.quotes.min}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){cols.need.quotes}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){min}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cols.need.quotes.max}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){cols.need.quotes}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){max}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cols.need.quotes.min}<LSEP>[](symbol){cols.need.quotes}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cols.need.quotes.max}<LSEP>[](symbol){cols.need.quotes}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){cols.need.quotes.min}<LSEP>[](symbol){cols.need.quotes.max}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){unsound.columns}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){cols.need.quotes.min}<LSEP>[](symbol){cols.need.quotes.max}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){unsound quoting strategy in co...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){text.df}<LEND>[](symbol){unsound.columns}<LEND>[argument 1; litteral](str){,}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){text.df}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){text.df}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){text.df}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){rm_quotes}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){text.df}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cols.need.quotes.min}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){text.df}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){text.df}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){re_quote}<LEND>[](symbol){text.df}<LEND>[assign](){<-}<LSEP>[](symbol){rm_vector_quotes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text.vector}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){text.vector}<LSEP>[](symbol){rm_quotes}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ret}<LEND>[litteral](NULL){NULL}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){add_grep_exact_match}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(\\^|\\%)}<LSEP>[argument 1; litteral](str){\\\\\\1}<LSEP>[](symbol){text}<LEND>[statement 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){^}<LSEP>[](symbol){text}<LSEP>[argument 2; litteral](str){$}<LSEP>[argument 3; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_delete}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){where_values}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where_values.df}<LEND>[](symbol){where_fields}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){where_values.df}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){sql_gen_where}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values.df}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){delete from}<LSEP>[](symbol){table}<LSEP>[](symbol){sql_where}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_select}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){select_fields}<LSEP>[](symbol){table}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LSEP>[](symbol){group_by}<LSEP>[](symbol){order_by}<LSEP>[](symbol){top}<LSEP>[](symbol){distinct}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){where_values}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where_values.df}<LEND>[](symbol){where_fields}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){where_values.df}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sql_select_fields}<LSEP>[litteral](str){}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){select_fields}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_select_fields}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_select_fields}<LSEP>[](symbol){separator}<LSEP>[](symbol){f}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){, }<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){distinct}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_select_fields}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){distinct}<LSEP>[](symbol){sql_select_fields}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){sql_gen_where}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values.df}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){sql_order_by}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){order_by}<LSEP>[argument 1; litteral](str){,}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){sql_group_by}<LSEP>[litteral](str){}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group_by}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){group_by}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_group_by}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_group_by}<LSEP>[](symbol){separator}<LSEP>[](symbol){f}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){, }<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){order_by}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sql_group_by}<LSEP>[](symbol){order_by}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sql_group_by}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){group by }<LSEP>[](symbol){sql_group_by}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){select}<LSEP>[](symbol){sql_select_fields}<LSEP>[argument 2; litteral](str){from}<LSEP>[](symbol){table}<LSEP>[](symbol){sql_where}<LSEP>[](symbol){sql_group_by}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){sql_order_by}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){order by}<LSEP>[](symbol){sql_order_by}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){top}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){limit}<LSEP>[](symbol){top}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){replaceNAwithNULL}<LSEP>[](symbol){ret}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){trimws}<LSEP>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_where}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){process}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){where_fields}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){where_values}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){process}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){where_values}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){process}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){where_values}<LEND>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){where_fields}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.no_where_values_specified}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){where_values}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.no_where_values_specified}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){process}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){where_fields}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib_where_files_has_to_be_...}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[argument 1; call](){}<LSEP>[](symbol){str}<LSEP>[](symbol){where_fields}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){where_values}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){where_values}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){where_values}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){where_values}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_values}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){where_values}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.where_fields_num_not_e...}<LSEP>[argument 1; litteral](str){R-sql}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 2; litteral](str){!=}<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_values}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){where_fields}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 5; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){where_values}<LSEP>[argument 1; litteral](str){,}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_values_col}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){where_values}<LSEP>[](symbol){}<LSEP>[](symbol){col}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){where_values_col}<LEND>[argument 1; litteral](str){factor}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_values_col}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){where_values_col}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](str){}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){where_fields}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_values}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){where_values}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){where_values}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){sql_gen_where_list}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_where_list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_where}<LSEP>[litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){comma.sep}<LSEP>[litteral](str){, }<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql_where}<LSEP>[litteral](str){where (}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){where_fields}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_where}<LSEP>[](symbol){separator}<LSEP>[](symbol){f}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[](symbol){comma.sep}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_where}<LSEP>[argument 1; litteral](str){) in }<LSEP>[argument 2; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){list_where}<LSEP>[litteral](str){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){separator_list}<LSEP>[litteral](str){}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){v}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_row_where}<LSEP>[litteral](str){}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){where_fields}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){where_values}<LSEP>[](symbol){v}<LSEP>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){:label_}<LSEP>[](symbol){f}<LSEP>[argument 2; litteral](str){:}<LSEP>[argument 3; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){where_values}<LSEP>[](symbol){v}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){value}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){add_quotes}<LSEP>[](symbol){value}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_row_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_row_where}<LSEP>[](symbol){separator}<LSEP>[](symbol){value}<LSEP>[argument 3; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[](symbol){comma.sep}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){sql_row_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){(}<LSEP>[](symbol){sql_row_where}<LSEP>[argument 2; litteral](str){)}<LSEP>[argument 3; litteral](str){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){list_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){list_where}<LSEP>[](symbol){separator_list}<LSEP>[](symbol){sql_row_where}<LSEP>[argument 3; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){separator_list}<LSEP>[](symbol){comma.sep}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_where}<LSEP>[argument 1; litteral](str){(}<LSEP>[](symbol){list_where}<LSEP>[argument 3; litteral](str){)}<LSEP>[argument 4; litteral](str){}<LEND>[](symbol){sql_where}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_where_or}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_where}<LSEP>[litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){where_fields}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_where}<LSEP>[litteral](str){where}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator_where}<LSEP>[litteral](str){}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){v}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_row_where}<LSEP>[litteral](str){}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){where_fields}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){where_values}<LSEP>[](symbol){v}<LSEP>[](symbol){i}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){:label_}<LSEP>[](symbol){f}<LSEP>[argument 2; litteral](str){:}<LSEP>[argument 3; litteral](str){}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){where_values}<LSEP>[](symbol){v}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){value}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){add_quotes}<LSEP>[](symbol){value}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_row_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_row_where}<LSEP>[](symbol){separator}<LSEP>[](symbol){f}<LSEP>[argument 3; litteral](str){=}<LSEP>[](symbol){value}<LSEP>[argument 5; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){ and }<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_where}<LSEP>[](symbol){separator_where}<LSEP>[argument 2; litteral](str){(}<LSEP>[](symbol){sql_row_where}<LSEP>[argument 4; litteral](str){)}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){separator_where}<LSEP>[litteral](str){ or }<LEND>[](symbol){sql_where}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_insert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){values_df}<LSEP>[](symbol){insert_fields}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){values.df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){values_df}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){values.df}<LEND>[](symbol){insert_fields}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){values.df}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){values.df}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){values_df}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){values_df}<LEND>[argument 1; litteral](str){data.frame}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Values must be defined as data...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){values.df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){values.df}<LSEP>[](symbol){as.character}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){insert_fields}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){values_df}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.incompatible_fields_an...}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){insert_fields}<LEND>[argument 2; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.not_eq}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[argument 3; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){values_df}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){insert_fields}<LSEP>[argument 1; litteral](str){;}<LEND>[argument 5; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){values.df}<LSEP>[argument 1; litteral](str){;}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){sql_insert_fields}<LSEP>[litteral](str){}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){insert_fields}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_insert_fields}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_insert_fields}<LSEP>[](symbol){separator}<LSEP>[](symbol){f}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){, }<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){sql_values}<LSEP>[litteral](str){}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){separator_rows}<LSEP>[litteral](str){}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values.df}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_values_row}<LSEP>[litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){insert_fields}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){values.df}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value}<LSEP>[litteral](str){NA}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){values.df}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){value}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){add_quotes}<LSEP>[](symbol){value}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql_values_row}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_values_row}<LSEP>[](symbol){separator}<LSEP>[](symbol){value}<LSEP>[argument 3; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){separator}<LSEP>[litteral](str){, }<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[](symbol){sql_values_row}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sql_values}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_values}<LSEP>[](symbol){separator_rows}<LSEP>[argument 2; litteral](str){(}<LSEP>[](symbol){sql_values_row}<LSEP>[argument 4; litteral](str){)}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){separator_rows}<LSEP>[litteral](str){, }<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){insert into }<LSEP>[](symbol){table}<LSEP>[argument 2; litteral](str){(}<LSEP>[](symbol){sql_insert_fields}<LSEP>[argument 4; litteral](str){) values }<LSEP>[](symbol){sql_values}<LSEP>[argument 6; litteral](str){}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){replaceNAwithNULL}<LSEP>[](symbol){ret}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){replaceNAwithNULL}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sql.code}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql.code}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){,NA}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){sql.code}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql.code}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){, NA}<LSEP>[argument 1; litteral](str){, NULL}<LSEP>[](symbol){sql.code}<LEND>[](symbol){sql.code}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_update}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){update_fields}<LSEP>[](symbol){values}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){values.df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){values}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){values.df}<LEND>[](symbol){update_fields}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){values.df}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){values.df}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){where_values}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where_values.df}<LEND>[](symbol){where_fields}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){where_values.df}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){sql_gen_where}<LSEP>[](symbol){where_fields}<LSEP>[](symbol){where_values.df}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){update }<LSEP>[](symbol){table}<LSEP>[argument 2; litteral](str){ set (}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){update_fields}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 4; litteral](str){)=(}<LEND>[argument 5; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){add_quotes}<LSEP>[](symbol){values.df}<LEND>[argument 1; litteral](str){,}<LEND>[argument 6; litteral](str){) }<LSEP>[](symbol){sql_where}<LSEP>[argument 8; litteral](str){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){,'{,1}NA'{,1}}<LSEP>[argument 1; litteral](str){,NULL}<LSEP>[](symbol){ret}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){replaceNAwithNULL}<LSEP>[](symbol){ret}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){trim_leading}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){^\\s+}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){trim_trailing}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\s+$}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){trim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){^\\s+|\\s+$}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){rename_col}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LSEP>[](symbol){name}<LSEP>[](symbol){replace_name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){name}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[](symbol){i}<LEND>[](symbol){replace_name}<LEND>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){cbind_coerced}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){stringsAsFactors}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ret}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ret}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ret}<LEND>[argument 1; litteral](str){stringsAsFactors}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){df_verify}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dataframe}<LSEP>[](symbol){columns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dataframe_names}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dataframe}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){column}<LSEP>[](symbol){columns}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){column}<LSEP>[](symbol){dataframe_names}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ret}<LSEP>[](symbol){column}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ret}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.missing_columns_in_dat...}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 2; litteral](str){df}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){dataframe_names}<LSEP>[argument 1; litteral](str){,}<LEND>[assign](){<-}<LSEP>[](symbol){sql_retrieve}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){values}<LSEP>[](symbol){field_id}<LSEP>[](symbol){dbconn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){values_uk}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){values_uk}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){values_uk}<LEND>[](symbol){fields_uk}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){values_uk}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){values_uk}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){values}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){values}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){values}<LEND>[](symbol){fields}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){values}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values_uk}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value_uk}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){select_statement}<LEND>[call](){}<LSEP>[](symbol){sql_gen_select}<LSEP>[](symbol){field_id}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){value_uk}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){verifying}<LSEP>[](symbol){select_statement}<LSEP>[argument 2; litteral](str){:}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){sql_execute_select}<LSEP>[](symbol){select_statement}<LSEP>[](symbol){dbconn}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[argument 0; litteral](str){Retrieved}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){row}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ret}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){row}<LSEP>[](symbol){}<LSEP>[](symbol){field_id}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_retrieve_insert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){fields}<LSEP>[](symbol){values}<LSEP>[](symbol){field_id}<LSEP>[](symbol){dbconn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){values_uk}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){values_uk}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){values_uk}<LEND>[](symbol){fields_uk}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){values}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){values}<LEND>[](symbol){fields}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){values_uk}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){values_uk}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){stuff_df_quoted}<LSEP>[](symbol){values}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values_uk}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gettext}<LSEP>[argument 0; litteral](str){sql_lib.error_nrows_values_uk_...}<LSEP>[argument 1; litteral](str){R-rsql}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values_uk}<LEND>[argument 2; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){values_uk}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){value_uk}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){values_uk}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){values}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){values_insert}<LEND>[call](){}<LSEP>[](symbol){cbind_coerced}<LSEP>[](symbol){value_uk}<LSEP>[](symbol){value}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){select_statement}<LEND>[call](){}<LSEP>[](symbol){sql_gen_select}<LSEP>[](symbol){field_id}<LSEP>[](symbol){table}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){value_uk}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){verifying}<LSEP>[](symbol){select_statement}<LSEP>[argument 2; litteral](str){:}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){insert_statement}<LEND>[call](){}<LSEP>[](symbol){sql_gen_insert}<LSEP>[](symbol){table}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fields_uk}<LSEP>[](symbol){fields}<LEND>[](symbol){values_insert}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){sql_execute_select}<LSEP>[](symbol){select_statement}<LSEP>[](symbol){dbconn}<LEND>[statement 7; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[argument 0; litteral](str){Retrieved}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){row}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){row}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lgr}<LSEP>[](symbol){trace}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){executing}<LSEP>[](symbol){insert_statement}<LEND>[statement 1; call](){}<LSEP>[](symbol){sql_execute_insert}<LSEP>[](symbol){insert_statement}<LSEP>[](symbol){dbconn}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){sql_execute_select}<LSEP>[](symbol){select_statement}<LSEP>[](symbol){dbconn}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ret}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){row}<LSEP>[](symbol){}<LSEP>[](symbol){field_id}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){sql_gen_joined_query}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dw_definition}<LSEP>[](symbol){recipe}<LSEP>[](symbol){indicator_fields}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_select_fields}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){indicator_fields}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sql_from}<LSEP>[litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_where}<LSEP>[litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ind_i}<LSEP>[litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){where_sep}<LSEP>[litteral](str){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){from_sep}<LSEP>[litteral](str){}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){recipe}<LSEP>[](symbol){m_recipe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){current_expression}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){recipe}<LSEP>[](symbol){m_recipe}<LEND>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alias}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\.}<LSEP>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){value}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){indicator_fields}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){op}<LEND>[argument 1; litteral](str){=}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sql_select_fields}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){value}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sql_select_fields}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){(}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sql_select_fields}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){op}<LEND>[](symbol){alias}<LSEP>[argument 4; litteral](str){.}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indicator_fields}<LSEP>[](symbol){j}<LEND>[argument 6; litteral](str){)}<LSEP>[argument 7; litteral](str){}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){value_type}<LEND>[argument 1; litteral](str){indicator}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind_i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ind_i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ind_i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){first_alias}<LSEP>[](symbol){alias}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sql_from}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_from}<LSEP>[](symbol){from_sep}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dw_definition}<LSEP>[](symbol){m_fact_table}<LEND>[argument 3; litteral](str){ }<LSEP>[](symbol){alias}<LSEP>[argument 5; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){from_sep}<LSEP>[litteral](str){,}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dw_definition}<LSEP>[](symbol){m_dimensions}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){current_field_def}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dw_definition}<LSEP>[](symbol){m_dimensions}<LEND>[](symbol){k}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){explicit_value}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ind_i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_field_def}<LSEP>[](symbol){default}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){explicit_value}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){explicit_value}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_field_def}<LSEP>[](symbol){field}<LEND>[argument 1; litteral](str){symbol}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){filter}<LEND>[call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){ind_i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_field_def}<LSEP>[](symbol){field}<LEND>[argument 1; litteral](str){symbol}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){explicit_value}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){value_id}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){right_value}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){value_id}<LEND>[false branch; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){right_value}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_expression}<LSEP>[](symbol){value}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){filter}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){right_value}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){first_alias}<LSEP>[argument 1; litteral](str){.}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_field_def}<LSEP>[](symbol){field}<LEND>[argument 3; litteral](str){}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){filter}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sql_where}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_where}<LSEP>[](symbol){where_sep}<LSEP>[](symbol){alias}<LSEP>[argument 3; litteral](str){.}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){current_field_def}<LSEP>[](symbol){field}<LEND>[argument 5; litteral](str){=}<LSEP>[](symbol){right_value}<LSEP>[argument 7; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){where_sep}<LSEP>[litteral](str){ and }<LEND>[](symbol){current_field_def}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){select}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){sql_select_fields}<LSEP>[argument 1; litteral](str){as}<LSEP>[](symbol){indicator_fields}<LSEP>[argument 3; litteral](str){,}<LEND>[argument 2; litteral](str){from}<LSEP>[](symbol){sql_from}<LSEP>[argument 4; litteral](str){where}<LSEP>[](symbol){sql_where}<LEND>[](symbol){ret}<LEND>[assign](){<-}<LSEP>[](symbol){parse_where_clause}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){where_clause_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){character}<LEND>[argument 1; call](){}<LSEP>[](symbol){character}<LEND>[argument 2; call](){}<LSEP>[](symbol){character}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){where_clause}<LSEP>[](symbol){where_clause_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where_struct}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){where_clause}<LSEP>[argument 1; litteral](str){!=}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){!=}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\'([a-zA-Z0-9[:punct:]!'[:spa...}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){where_df}<LSEP>[](symbol){where}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_struct}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){where_clause}<LSEP>[argument 1; litteral](str){<=}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){<=}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\'([a-zA-Z0-9[:punct:]!'[:spa...}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){where_df}<LSEP>[](symbol){where}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){where_struct}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){where_clause}<LSEP>[argument 1; litteral](str){>=}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){>=}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\'([a-zA-Z0-9[:punct:]!'[:spa...}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){where_df}<LSEP>[](symbol){where}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){where_struct}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){where_clause}<LSEP>[argument 1; litteral](str){=}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){=}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\'([a-zA-Z0-9[:punct:]!'[:spa...}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){where_df}<LSEP>[](symbol){where}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){where_struct}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){where_clause}<LSEP>[argument 1; litteral](str){>}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){>}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\'([a-zA-Z0-9[:punct:]!'[:spa...}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){where_df}<LSEP>[](symbol){where}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){where_struct}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){where_clause}<LSEP>[argument 1; litteral](str){<}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){<}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\\'([a-zA-Z0-9[:punct:]!'[:spa...}<LSEP>[argument 1; litteral](str){\\1}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){where_struct}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lhs}<LSEP>[argument 1; litteral](str){comp}<LSEP>[argument 2; litteral](str){rhs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){where_df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){where_df}<LSEP>[](symbol){where}<LEND>[statement 3; call](){}<LSEP>[](symbol){next}<LEND>[](symbol){where_df}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){%IN%}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[body; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){interaction}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){interaction}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){getPackageDir}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){home.dir}<LEND>[call](){}<LSEP>[](symbol){find.package}<LSEP>[argument 0; litteral](str){RSQL}<LSEP>[argument 1; litteral](NULL){NULL}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.subdir}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[argument 0; litteral](str){inst}<LSEP>[argument 1; litteral](str){extdata}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){dir.exists}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){home.dir}<LSEP>[](symbol){data.subdir}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){data.subdir}<LSEP>[litteral](str){extdata}<LEND>[statement 3; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){home.dir}<LSEP>[](symbol){data.subdir}<LEND>[assign](){<-}<LSEP>[](symbol){getMtcarsdbPath}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){copy}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){db.filename}<LSEP>[litteral](str){mtcars.db}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){source.path}<LEND>[call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){getPackageDir}<LEND>[](symbol){db.filename}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){copy}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp.dir}<LEND>[call](){}<LSEP>[](symbol){tempdir}<LEND>[statement 1; call](){}<LSEP>[](symbol){file.copy}<LSEP>[](symbol){source.path}<LSEP>[](symbol){tmp.dir}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){tmp.dir}<LSEP>[](symbol){db.filename}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LSEP>[](symbol){source.path}<LEND>[](symbol){ret}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.onLoad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){libname}<LSEP>[](symbol){pkgname}<LEND>[body; block](){}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){RSQL}<LEND>[assign](){<-}<LSEP>[](symbol){rsql}<LEND>[call](){}<LSEP>[](symbol){createRSQL}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RSQLite}<LSEP>[](symbol){SQLite}<LEND>[](symbol){db.name}<LEND>[assign](){<-}<LSEP>[](symbol){where.accent}<LSEP>[litteral](str){\xC3\xA1ccent}<LEND>[assign](){<-}<LSEP>[](symbol){where.df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){where.accent}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){exists.sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; litteral](str){id_pais}<LSEP>[argument 1; litteral](str){pais}<LSEP>[](symbol){where.df}<LEND>[](symbol){exists.sql}<LEND>[call](){}<LSEP>[](symbol){re_quote}<LSEP>[](symbol){where.accent}<LEND>[call](){}<LSEP>[](symbol){re_quote}<LSEP>[](symbol){text.df}<LEND>[call](){}<LSEP>[](symbol){sql_gen_where}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){where_values.df}<LEND>[](symbol){where_values.df}<LEND>[call](){}<LSEP>[](symbol){rm_quotes}<LSEP>[argument 0; litteral](str){\xC3\xA1ccent}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pkgnet}<LEND>[assign](){<-}<LSEP>[](symbol){report2}<LEND>[call](){}<LSEP>[](symbol){CreatePackageReport}<LSEP>[argument 0; litteral](str){RSQL}<LEND>[assign](){<-}<LSEP>[](symbol){all.packages}<LEND>[call](){}<LSEP>[](symbol){available.packages}<LEND>[assign](){<-}<LSEP>[](symbol){rsql.package}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all.packages}<LEND>[argument 1; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){^RSQL$}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){all.packages}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){package_dependencies}<LSEP>[](symbol){rsql.package}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){remotes}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){remotes}<LSEP>[](symbol){package_deps}<LEND>[argument 0; litteral](str){RSQL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){db.name}<LEND>[call](){}<LSEP>[](symbol){getMtcarsdbPath}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){rsql}<LEND>[call](){}<LSEP>[](symbol){createRSQL}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RSQLite}<LSEP>[](symbol){SQLite}<LEND>[](symbol){db.name}<LEND>[assign](){<-}<LSEP>[](symbol){where_values_df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){8.000000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){select_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; litteral](str){*}<LSEP>[argument 1; litteral](str){mtcars}<LSEP>[](symbol){where_values_df}<LEND>[assign](){<-}<LSEP>[](symbol){mtcars.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){select_sql}<LEND>[](symbol){mtcars.observed}<LEND>[assign](){<-}<LSEP>[](symbol){mtcars.new}<LSEP>[](symbol){mtcars.observed}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mtcars.new}<LSEP>[](symbol){carb}<LEND>[litteral](real){9.000000}<LEND>[assign](){<-}<LSEP>[](symbol){insert_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_insert}<LEND>[argument 0; litteral](str){mtcars}<LSEP>[](symbol){mtcars.new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_insert}<LEND>[](symbol){insert_sql}<LEND>[assign](){<-}<LSEP>[](symbol){where_values_df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){9.000000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){select_sql}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){gen_select}<LEND>[argument 0; litteral](str){*}<LSEP>[argument 1; litteral](str){mtcars}<LSEP>[](symbol){where_values_df}<LEND>[assign](){<-}<LSEP>[](symbol){mtcars.observed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rsql}<LSEP>[](symbol){execute_select}<LEND>[](symbol){select_sql}<LEND>[](symbol){mtcars.observed}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggwordcloud}<LEND>[call](){}<LSEP>[](symbol){test_check}<LSEP>[argument 0; litteral](str){ggwordcloud}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){test-bugfixes}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[argument 0; litteral](str){love_words_small}<LEND>[assign](){<-}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){No issue with geom_text_wordcl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud does not c...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](logical){NA}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud_area does ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LSEP>[argument 0; litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[](symbol){lws}<LSEP>[](symbol){love_words_small}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lws}<LSEP>[](symbol){word}<LEND>[litteral](str){ }<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud does not c...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){lws}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud works with...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_silent}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words_small}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud works when...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){tmp_file}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){test-wrapper}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[argument 0; litteral](str){love_words_small}<LEND>[assign](){<-}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ggwordcloud does not crash}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggwordcloud}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){speakers}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ggwordcloud works with random....}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggwordcloud}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){speakers}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ggwordcloud works with random....}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggwordcloud}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){speakers}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ggwordcloud2 does not crash}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggwordcloud2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){word}<LSEP>[argument 1; litteral](str){speakers}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ggwordcloud2 works with random...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggwordcloud2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){word}<LSEP>[argument 1; litteral](str){speakers}<LEND>[argument 1; litteral](str){random-light}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ggwordcloud2 works with explic...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggwordcloud2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words_small}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){word}<LSEP>[argument 1; litteral](str){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){green}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){love_words_small}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){tmp_file}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){test-basic-ggwordcloud}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[argument 0; litteral](str){love_words_small}<LEND>[assign](){<-}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LEND>[call](){}<LSEP>[](symbol){png}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud does not c...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud_area does ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud works for ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_silent}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud works with...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){png}<LSEP>[](symbol){readPNG}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/hearth.png}<LSEP>[argument 1; litteral](str){ggwordcloud}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud_area works...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){png}<LSEP>[](symbol){readPNG}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/hearth.png}<LSEP>[argument 1; litteral](str){ggwordcloud}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud complains ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud complains ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud complains ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words_small}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){200.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud complains ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words_small}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){200.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){geom_text_wordcloud works with...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_is}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; litteral](str){ggplot}<LEND>[call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){tmp_file}
[](){expression}<LSEP>[litteral](str){thankyou_words}<LSEP>[litteral](str){thankyou_words_small}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){wordcloud_boxes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data_points}<LSEP>[](symbol){boxes}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){text_boxes}<LSEP>[](symbol){bigboxes}<LSEP>[](symbol){boxes_masks}<LSEP>[](symbol){boxes_mask}<LSEP>[](symbol){mask_boxes}<LSEP>[](symbol){mask_group}<LSEP>[](symbol){angle_group}<LSEP>[](symbol){max_angle_group}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LEND>[body; block](){}<LSEP>[statement 0; call](){.Call}<LSEP>[](symbol){_ggwordcloud_wordcloud_boxes}<LSEP>[](symbol){data_points}<LSEP>[](symbol){boxes}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){text_boxes}<LSEP>[](symbol){bigboxes}<LSEP>[](symbol){boxes_masks}<LSEP>[](symbol){boxes_mask}<LSEP>[](symbol){mask_boxes}<LSEP>[](symbol){mask_group}<LSEP>[](symbol){angle_group}<LSEP>[](symbol){max_angle_group}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ggwordcloud}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){words}<LSEP>[](symbol){freq}<LSEP>[](symbol){scale}<LSEP>[](symbol){min.freq}<LSEP>[](symbol){max.words}<LSEP>[](symbol){random.order}<LSEP>[](symbol){random.color}<LSEP>[](symbol){rot.per}<LSEP>[](symbol){colors}<LSEP>[](symbol){ordered.colors}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nc}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){colors}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){words_df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){words}<LSEP>[](symbol){freq}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){min.freq}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){freq}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){min.freq}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){rank}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){freq}<LEND>[argument 1; litteral](str){random}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){words_df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){words_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ord}<LSEP>[](symbol){max.words}<LEND>[](symbol){}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){ordered.colors}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){colors}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colors}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ord}<LSEP>[](symbol){max.words}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){random.order}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){sample.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){words_df}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){freq}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){words_df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){words_df}<LSEP>[](symbol){ord}<LSEP>[](symbol){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){words_df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){words_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){freq}<LEND>[](symbol){min.freq}<LEND>[](symbol){}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){normedFreq}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){freq}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){freq}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){random.color}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){ordered.colors}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){color}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colors}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){freq}<LSEP>[](symbol){min.freq}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){color}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colors}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nc}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){normedFreq}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){color}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colors}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample.int}<LSEP>[](symbol){nc}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){words_df}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){words_df}<LSEP>[](symbol){angle}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){90.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){words_df}<LEND>[](symbol){rot.per}<LEND>[statement 12; call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){words_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){words_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){freq}<LSEP>[](symbol){color}<LSEP>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](real){0.010000}<LSEP>[argument 1; litteral](real){0.020000}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_radius}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[assign](){<-}<LSEP>[](symbol){ggwordcloud2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){size}<LSEP>[](symbol){color}<LSEP>[](symbol){minRotation}<LSEP>[](symbol){maxRotation}<LSEP>[](symbol){shuffle}<LSEP>[](symbol){rotateRatio}<LSEP>[](symbol){shape}<LSEP>[](symbol){ellipticity}<LSEP>[](symbol){figPath}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){table}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){data}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dataOut}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){data}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){data}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dataOut}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dataOut}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){freq}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataOut}<LSEP>[](symbol){rot}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){minRotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){maxRotation}<LSEP>[](symbol){minRotation}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dataOut}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dataOut}<LEND>[](symbol){rotateRatio}<LEND>[argument 1; litteral](real){45.000000}<LEND>[](symbol){pi}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){shuffle}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){sample.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dataOut}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dataOut}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dataOut}<LSEP>[](symbol){ord}<LSEP>[](symbol){}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){color}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){color}<LSEP>[argument 1; litteral](str){random-dark}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataOut}<LSEP>[](symbol){color}<LEND>[call](){}<LSEP>[](symbol){random_dark}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dataOut}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){color}<LSEP>[argument 1; litteral](str){random-light}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataOut}<LSEP>[](symbol){color}<LEND>[call](){}<LSEP>[](symbol){random_light}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dataOut}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataOut}<LSEP>[](symbol){color}<LEND>[](symbol){color}<LEND>[statement 4; call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){dataOut}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){dataOut}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){name}<LSEP>[](symbol){freq}<LSEP>[](symbol){rot}<LSEP>[](symbol){color}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[](symbol){ellipticity}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){shape}<LSEP>[](symbol){figPath}<LSEP>[](symbol){...}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_identity}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_radius}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){18.000000}<LSEP>[](symbol){size}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[assign](){<-}<LSEP>[](symbol){random_hsl_color}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){hex}<LEND>[argument 0; call](){}<LSEP>[](symbol){HLS}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){360.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){70.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){30.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){random_dark}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){random_hsl_color}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[argument 1; litteral](real){50.000000}<LSEP>[](symbol){n}<LEND>[assign](){<-}<LSEP>[](symbol){random_light}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){random_hsl_color}<LSEP>[argument 0; litteral](real){50.000000}<LSEP>[argument 1; litteral](real){90.000000}<LSEP>[](symbol){n}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mapping}<LSEP>[](symbol){data}<LSEP>[](symbol){stat}<LSEP>[](symbol){position}<LSEP>[](symbol){...}<LSEP>[](symbol){parse}<LSEP>[](symbol){nudge_x}<LSEP>[](symbol){nudge_y}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){seed}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LSEP>[](symbol){mask}<LSEP>[](symbol){area_corr}<LSEP>[](symbol){area_corr_power}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){show.legend}<LSEP>[](symbol){inherit.aes}<LSEP>[](symbol){show_boxes}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){nudge_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){nudge_y}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){position}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You must specify either `posit...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){position}<LEND>[call](){}<LSEP>[](symbol){position_nudge}<LSEP>[](symbol){nudge_x}<LSEP>[](symbol){nudge_y}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){shape}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){shape}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){circle}<LSEP>[argument 1; litteral](str){cardioid}<LSEP>[argument 2; litteral](str){diamond}<LSEP>[argument 3; litteral](str){square}<LSEP>[argument 4; litteral](str){triangle-forward}<LSEP>[argument 5; litteral](str){triangle-upright}<LSEP>[argument 6; litteral](str){pentagon}<LSEP>[argument 7; litteral](str){star}<LEND>[](symbol){shape}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){shape}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){shape}<LSEP>[litteral](integer){-2147483648}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){shape}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){shape}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){shape}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){shape}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){shape}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){shape invalid. Using the defau...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){shape}<LSEP>[litteral](integer){1}<LEND>[statement 3; call](){}<LSEP>[](symbol){layer}<LSEP>[](symbol){data}<LSEP>[](symbol){mapping}<LSEP>[](symbol){stat}<LSEP>[](symbol){GeomTextWordcloud}<LSEP>[](symbol){position}<LSEP>[](symbol){show.legend}<LSEP>[](symbol){inherit.aes}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){parse}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){seed}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LSEP>[](symbol){mask}<LSEP>[](symbol){area_corr}<LSEP>[](symbol){area_corr_power}<LSEP>[](symbol){show_boxes}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mapping}<LSEP>[](symbol){data}<LSEP>[](symbol){stat}<LSEP>[](symbol){position}<LSEP>[](symbol){...}<LSEP>[](symbol){parse}<LSEP>[](symbol){nudge_x}<LSEP>[](symbol){nudge_y}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){seed}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LSEP>[](symbol){mask}<LSEP>[](symbol){area_corr}<LSEP>[](symbol){area_corr_power}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){show.legend}<LSEP>[](symbol){inherit.aes}<LSEP>[](symbol){show_boxes}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){nudge_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){nudge_y}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){position}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You must specify either `posit...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){position}<LEND>[call](){}<LSEP>[](symbol){position_nudge}<LSEP>[](symbol){nudge_x}<LSEP>[](symbol){nudge_y}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){shape}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){shape}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){circle}<LSEP>[argument 1; litteral](str){cardioid}<LSEP>[argument 2; litteral](str){diamond}<LSEP>[argument 3; litteral](str){square}<LSEP>[argument 4; litteral](str){triangle-forward}<LSEP>[argument 5; litteral](str){triangle-upright}<LSEP>[argument 6; litteral](str){pentagon}<LSEP>[argument 7; litteral](str){star}<LEND>[](symbol){shape}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){shape}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){shape}<LSEP>[litteral](integer){-2147483648}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){shape}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){shape}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){shape}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){shape}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){shape}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){shape invalid. Using the defau...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){shape}<LSEP>[litteral](integer){1}<LEND>[statement 3; call](){}<LSEP>[](symbol){layer}<LSEP>[](symbol){data}<LSEP>[](symbol){mapping}<LSEP>[](symbol){stat}<LSEP>[](symbol){GeomTextWordcloud}<LSEP>[](symbol){position}<LSEP>[](symbol){show.legend}<LSEP>[](symbol){inherit.aes}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){parse}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){seed}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LSEP>[](symbol){mask}<LSEP>[](symbol){area_corr}<LSEP>[](symbol){area_corr_power}<LSEP>[](symbol){show_boxes}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){GeomTextWordcloud}<LEND>[call](){}<LSEP>[](symbol){ggproto}<LSEP>[argument 0; litteral](str){GeomTextWordcloud}<LSEP>[](symbol){Geom}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){label}<LEND>[argument 3; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](str){black}<LSEP>[argument 3; litteral](real){3.880000}<LSEP>[argument 4; litteral](real){0.000000}<LSEP>[argument 5; litteral](real){0.500000}<LSEP>[argument 6; litteral](real){0.500000}<LSEP>[argument 7; litteral](logical){NA}<LSEP>[argument 8; litteral](str){}<LSEP>[argument 9; litteral](real){1.000000}<LSEP>[argument 10; litteral](real){1.200000}<LSEP>[argument 11; litteral](integer){1}<LSEP>[argument 12; litteral](integer){1}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){params}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){area_corr}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dev_inch}<LEND>[call](){}<LSEP>[](symbol){dev.size}<LSEP>[argument 0; litteral](str){in}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dev_pix}<LEND>[call](){}<LSEP>[](symbol){dev.size}<LSEP>[argument 0; litteral](str){px}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dev_dpi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dev_pix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dev_inch}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){size}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){size}<LEND>[litteral](real){3.880000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){newsize}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){label}<LEND>[](symbol){compute_newsize}<LSEP>[](symbol){data}<LSEP>[](symbol){dev_dpi}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){area_corr_power}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){size}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){newsize}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){angle_group}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){max_angle_group}<LEND>[litteral](integer){1}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){angle_group}<LEND>[litteral](integer){1}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){max_angle_group}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){angle_group}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){angle_group}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){angle_group}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){mask_group}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){mask_group}<LEND>[litteral](integer){1}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){mask_group}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){mask_group}<LEND>[](symbol){data}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){panel_params}<LSEP>[](symbol){coord}<LSEP>[](symbol){parse}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){seed}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LSEP>[](symbol){mask}<LSEP>[](symbol){area_corr}<LSEP>[](symbol){area_corr_power}<LSEP>[](symbol){show_boxes}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){label}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){parse}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){parse_safe}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){lab}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){coord}<LSEP>[](symbol){transform}<LEND>[](symbol){data}<LSEP>[](symbol){panel_params}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){vjust}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){vjust}<LEND>[call](){}<LSEP>[](symbol){compute_just}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){vjust}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){y}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){hjust}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){hjust}<LEND>[call](){}<LSEP>[](symbol){compute_just}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){hjust}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){limits}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){limits}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){coord}<LSEP>[](symbol){transform}<LEND>[](symbol){limits}<LSEP>[](symbol){panel_params}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){limits}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){limits}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){limits}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){limits}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){limits}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){limits}<LSEP>[](symbol){y}<LEND>[statement 9; call](){}<LSEP>[](symbol){gTree}<LSEP>[](symbol){limits}<LSEP>[](symbol){data}<LSEP>[](symbol){lab}<LSEP>[](symbol){eccentricity}<LSEP>[](symbol){rstep}<LSEP>[](symbol){tstep}<LSEP>[](symbol){perc_step}<LSEP>[](symbol){max_steps}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){seed}<LSEP>[](symbol){rm_outside}<LSEP>[](symbol){shape}<LSEP>[](symbol){mask}<LSEP>[](symbol){area_corr}<LSEP>[](symbol){area_corr_power}<LSEP>[](symbol){show_boxes}<LSEP>[argument 18; litteral](str){textwordcloudtree}<LSEP>[argument 19; litteral](str){geom_text_wordcloud}<LEND>[](symbol){draw_key_text}<LEND>[assign](){<-}<LSEP>[](symbol){makeContent.textwordcloudtree}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){valid_strings}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){not_empty}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){size}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){invalid_strings}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){not_empty}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){size}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dev_inch}<LEND>[call](){}<LSEP>[](symbol){dev.size}<LSEP>[argument 0; litteral](str){in}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dev_pix}<LEND>[call](){}<LSEP>[](symbol){dev.size}<LSEP>[argument 0; litteral](str){px}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){dev_dpi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dev_pix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dev_inch}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gw_ratio}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertWidth}<LEND>[argument 0; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){dev_dpi}<LEND>[argument 1; litteral](str){inch}<LEND>[argument 1; litteral](str){native}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gh_ratio}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){dev_dpi}<LEND>[argument 1; litteral](str){inch}<LEND>[argument 1; litteral](str){native}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){grid_size}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){grid_size}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){max_grid_size}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max_grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){grid_margin}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){grid_margin}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mask}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mask}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){boxes_masks}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mask}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mask}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mask}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mask}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mask}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){boxes_masks}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){mask}<LSEP>[](symbol){compute_mask_boxes}<LSEP>[](symbol){dev_dpi}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LSEP>[](symbol){dev_inch}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){boxes_masks}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){boxes_masks_nb}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){boxes_masks}<LSEP>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){boxes_masks_start}<LEND>[call](){}<LSEP>[](symbol){cumsum}<LSEP>[](symbol){boxes_masks_nb}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mask_boxes}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes_masks_start}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){boxes_masks_start}<LEND>[](symbol){boxes_masks_start}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){boxes_mask}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){boxes_masks_nb}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){boxes_masks_nb}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){boxes_masks}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){boxes_masks}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mask_group}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){mask_group}<LEND>[](symbol){valid_strings}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mask_group}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mask_group}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){mask_group}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mask_boxes}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warnings}<LSEP>[argument 0; litteral](str){Less masks than groups please ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mask_group}<LEND>[call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){mask_group}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mask_boxes}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){boxes_masks_nb}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mask_boxes}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){boxes_mask}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){boxes_masks}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mask_group}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](integer){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){valid_strings}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){angle_group}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){angle_group}<LEND>[](symbol){valid_strings}<LEND>[argument 1; litteral](integer){1}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){boxes}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){valid_strings}<LSEP>[](symbol){compute_text_boxes}<LSEP>[](symbol){x}<LSEP>[](symbol){dev_dpi}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){boxes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){boxes_nb}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){boxes}<LSEP>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){bigboxes}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){boxes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){box}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){box}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){box}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){box}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){box}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){boxes_start}<LEND>[call](){}<LSEP>[](symbol){cumsum}<LSEP>[](symbol){boxes_nb}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){text_boxes}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes_start}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){boxes_start}<LEND>[](symbol){boxes_start}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){boxes_text}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){boxes_nb}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){boxes_nb}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){boxes}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){boxes}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){bigboxes}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){bigboxes}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){boxes_nb}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){text_boxes}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){boxes_text}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){boxes}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){bigboxes}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){seed}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){seed}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){seed}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){points_valid_first}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){x}<LEND>[](symbol){valid_strings}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){x}<LEND>[](symbol){invalid_strings}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){y}<LEND>[](symbol){valid_strings}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){y}<LEND>[](symbol){invalid_strings}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){wordcloud}<LEND>[call](){}<LSEP>[](symbol){wordcloud_boxes}<LSEP>[](symbol){points_valid_first}<LSEP>[](symbol){boxes}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){text_boxes}<LSEP>[](symbol){bigboxes}<LSEP>[](symbol){boxes_masks}<LSEP>[](symbol){boxes_mask}<LSEP>[](symbol){mask_boxes}<LSEP>[](symbol){mask_group}<LSEP>[](symbol){angle_group}<LEND>[argument 10; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){max_angle_group}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 11; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){limits}<LEND>[](symbol){x}<LEND>[argument 12; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){limits}<LEND>[](symbol){y}<LEND>[argument 13; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){eccentricity}<LEND>[argument 14; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){rstep}<LEND>[argument 15; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){tstep}<LEND>[argument 16; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){perc_step}<LEND>[argument 17; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max_steps}<LEND>[argument 18; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){rm_outside}<LEND>[argument 19; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){shape}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){show_boxes}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){boxes_text}<LEND>[](symbol){make_boxgrob}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){boxes}<LSEP>[](symbol){wordcloud}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){grobs}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){valid_strings}<LEND>[](symbol){make_textgrob}<LSEP>[](symbol){x}<LSEP>[](symbol){valid_strings}<LSEP>[](symbol){wordcloud}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){grobs}<LEND>[litteral](str){gList}<LEND>[statement 21; call](){}<LSEP>[](symbol){setChildren}<LSEP>[](symbol){x}<LSEP>[](symbol){grobs}<LEND>[assign](){<-}<LSEP>[](symbol){compute_just}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){just}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){inward}<LEND>[call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){just}<LSEP>[argument 1; litteral](str){inward}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){just}<LSEP>[](symbol){inward}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){left}<LSEP>[argument 1; litteral](str){middle}<LSEP>[argument 2; litteral](str){right}<LEND>[argument 1; call](){}<LSEP>[](symbol){just_dir}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){inward}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outward}<LEND>[call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){just}<LSEP>[argument 1; litteral](str){outward}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){just}<LSEP>[](symbol){outward}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){right}<LSEP>[argument 1; litteral](str){middle}<LSEP>[argument 2; litteral](str){left}<LEND>[argument 1; call](){}<LSEP>[](symbol){just_dir}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){outward}<LEND>[statement 4; call](){}<LSEP>[](symbol){unname}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.000000}<LSEP>[argument 4; litteral](real){0.500000}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[](symbol){just}<LEND>[assign](){<-}<LSEP>[](symbol){just_dir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){tol}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](integer){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[](symbol){tol}<LEND>[litteral](integer){1}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[](symbol){tol}<LEND>[litteral](integer){3}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){compute_mask}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tg_inch}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LSEP>[](symbol){f_mask}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){prev_dev_id}<LEND>[call](){}<LSEP>[](symbol){dev.cur}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LSEP>[argument 0; litteral](str){_wordcloud.png}<LEND>[statement 2; call](){}<LSEP>[](symbol){png}<LSEP>[](symbol){tmp_file}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LSEP>[argument 4; litteral](str){px}<LEND>[statement 3; call](){}<LSEP>[](symbol){pushViewport}<LEND>[argument 0; call](){}<LSEP>[](symbol){viewport}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){dev_dpi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LEND>[argument 2; litteral](str){inch}<LEND>[statement 4; call](){}<LSEP>[](symbol){grid.draw}<LSEP>[](symbol){tg_inch}<LEND>[statement 5; call](){}<LSEP>[](symbol){popViewport}<LEND>[statement 6; call](){}<LSEP>[](symbol){dev.off}<LEND>[statement 7; call](){}<LSEP>[](symbol){dev.set}<LSEP>[](symbol){prev_dev_id}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tmp_png}<LEND>[call](){}<LSEP>[](symbol){readPNG}<LSEP>[](symbol){tmp_file}<LEND>[statement 9; call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){tmp_file}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){img}<LEND>[call](){}<LSEP>[](symbol){f_mask}<LSEP>[](symbol){tmp_png}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){img}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rot}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tg_inch}<LSEP>[](symbol){rot}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tg_inch}<LSEP>[](symbol){rot}<LEND>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w_inch}<LEND>[call](){}<LSEP>[](symbol){convertWidth}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobWidth}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){h_inch}<LEND>[call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobHeight}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){asc_inch}<LEND>[call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobAscent}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){desc_inch}<LEND>[call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobDescent}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){prev_dev_id}<LEND>[call](){}<LSEP>[](symbol){dev.cur}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tmp_file}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LSEP>[argument 0; litteral](str){png}<LEND>[statement 8; call](){}<LSEP>[](symbol){png}<LSEP>[](symbol){tmp_file}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LSEP>[argument 4; litteral](str){px}<LEND>[statement 9; call](){}<LSEP>[](symbol){pushViewport}<LEND>[argument 0; call](){}<LSEP>[](symbol){viewport}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_pix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dev_dpi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_pix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dev_dpi}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){dev_dpi}<LEND>[argument 3; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LEND>[argument 4; litteral](str){inch}<LSEP>[](symbol){rot}<LEND>[statement 10; call](){}<LSEP>[](symbol){grid.rect}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_pix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dev_dpi}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_pix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){dev_dpi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){asc_inch}<LSEP>[](symbol){h_inch}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){desc_inch}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){w_inch}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){asc_inch}<LSEP>[](symbol){desc_inch}<LEND>[argument 4; litteral](str){inch}<LEND>[argument 5; call](){}<LSEP>[](symbol){gpar}<LSEP>[argument 0; litteral](str){black}<LEND>[statement 11; call](){}<LSEP>[](symbol){popViewport}<LEND>[statement 12; call](){}<LSEP>[](symbol){dev.off}<LEND>[statement 13; call](){}<LSEP>[](symbol){dev.set}<LSEP>[](symbol){prev_dev_id}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){tmp_png}<LEND>[call](){}<LSEP>[](symbol){readPNG}<LSEP>[](symbol){tmp_file}<LEND>[statement 15; call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){tmp_file}<LEND>[statement 12; call](){}<LSEP>[](symbol){f_mask}<LSEP>[](symbol){tmp_png}<LEND>[assign](){<-}<LSEP>[](symbol){compute_newsize}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LSEP>[](symbol){data}<LSEP>[](symbol){dev_dpi}<LSEP>[](symbol){area_corr_power}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tg_inch}<LEND>[call](){}<LSEP>[](symbol){textGrob}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){label}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](str){inch}<LEND>[argument 4; call](){}<LSEP>[](symbol){gpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[](symbol){.pt}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 3; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[argument 1; litteral](real){1.200000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gw_inch}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertWidth}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobWidth}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){gh_inch}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobAscent}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobHeight}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobDescent}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gw_pix}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){gw_inch}<LSEP>[](symbol){dev_dpi}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gh_pix}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){gh_inch}<LSEP>[](symbol){dev_dpi}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tg_inch}<LEND>[call](){}<LSEP>[](symbol){textGrob}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){label}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_inch}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_inch}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; litteral](str){inch}<LEND>[argument 4; call](){}<LSEP>[](symbol){gpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){20.000000}<LSEP>[](symbol){.pt}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 3; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[argument 1; litteral](real){1.200000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mask}<LEND>[call](){}<LSEP>[](symbol){compute_mask}<LSEP>[](symbol){tg_inch}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){img}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){img}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){area}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){mask}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){area}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){size}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){area_corr_power}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){area}<LEND>[false branch; block](){}<LSEP>[statement 0; litteral](real){nan}<LEND>[assign](){<-}<LSEP>[](symbol){compute_mask_boxes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mask_matrix}<LSEP>[](symbol){dev_dpi}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LSEP>[](symbol){dev_inch}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mask_raster}<LEND>[call](){}<LSEP>[](symbol){rasterGrob}<LSEP>[](symbol){mask_matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){unit}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){native}<LEND>[argument 2; call](){}<LSEP>[](symbol){unit}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){native}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gw_inch}<LEND>[call](){}<LSEP>[](symbol){convertWidth}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobWidth}<LSEP>[](symbol){mask_raster}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gh_inch}<LEND>[call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobHeight}<LSEP>[](symbol){mask_raster}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){gw_native}<LEND>[call](){}<LSEP>[](symbol){convertWidth}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobWidth}<LSEP>[](symbol){mask_raster}<LEND>[argument 1; litteral](str){native}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gh_native}<LEND>[call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobHeight}<LSEP>[](symbol){mask_raster}<LEND>[argument 1; litteral](str){native}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gw_pix}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_inch}<LSEP>[](symbol){gw_native}<LEND>[](symbol){dev_dpi}<LEND>[](symbol){grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gh_pix}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_inch}<LSEP>[](symbol){gh_native}<LEND>[](symbol){dev_dpi}<LEND>[](symbol){grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mask}<LEND>[call](){}<LSEP>[](symbol){compute_mask}<LSEP>[](symbol){mask_raster}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){img}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){img}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){compute_boxes_from_mask}<LSEP>[](symbol){mask}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[argument 5; litteral](real){0.000000}<LSEP>[argument 6; litteral](real){0.000000}<LSEP>[argument 7; litteral](real){0.000000}<LEND>[assign](){<-}<LSEP>[](symbol){compute_text_boxes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LSEP>[](symbol){x}<LSEP>[](symbol){dev_dpi}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){hj}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){hjust}<LEND>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vj}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){vjust}<LEND>[](symbol){i}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tg_inch}<LEND>[call](){}<LSEP>[](symbol){textGrob}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](str){inch}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){angle}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){hj}<LSEP>[](symbol){vj}<LEND>[argument 6; call](){}<LSEP>[](symbol){gpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){size}<LEND>[](symbol){.pt}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gw_inch_}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertWidth}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobWidth}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gh_inch_}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobAscent}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobHeight}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){convertHeight}<LEND>[argument 0; call](){}<LSEP>[](symbol){grobDescent}<LSEP>[](symbol){tg_inch}<LEND>[argument 1; litteral](str){inch}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.200000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gw_inch}<LSEP>[](symbol){gw_inch_}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){gh_inch}<LSEP>[](symbol){gh_inch_}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){gw_pix}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){gw_inch}<LSEP>[](symbol){dev_dpi}<LEND>[](symbol){grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){gh_pix}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){gh_inch}<LSEP>[](symbol){dev_dpi}<LEND>[](symbol){grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){tg_inch}<LEND>[call](){}<LSEP>[](symbol){textGrob}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_inch}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_inch}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; litteral](str){inch}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){angle}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){hj}<LSEP>[](symbol){vj}<LEND>[argument 6; call](){}<LSEP>[](symbol){gpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){size}<LEND>[](symbol){.pt}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){mask}<LEND>[call](){}<LSEP>[](symbol){compute_mask}<LSEP>[](symbol){tg_inch}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){dev_dpi}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){img}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){img}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){compute_boxes_from_mask}<LSEP>[](symbol){mask}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LEND>[argument 6; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_pix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_pix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){compute_boxes_from_mask}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mask}<LSEP>[](symbol){gw_ratio}<LSEP>[](symbol){gh_ratio}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_margin}<LSEP>[](symbol){delta_w}<LSEP>[](symbol){delta_h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dim_mask}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){mask}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gw_pix}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dim_mask}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gh_pix}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dim_mask}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){max_grid_w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){max_grid_h}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){grid_size}<LEND>[](symbol){grid_size}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){seq_grid_w}<LEND>[call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){max_grid_w}<LSEP>[](symbol){grid_size}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){seq_grid_h}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max_grid_h}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){max_grid_h}<LSEP>[](symbol){grid_size}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mask_lists}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){mask_s}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask}<LEND>[argument 1; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){seq_grid_h}<LEND>[](symbol){gh_pix}<LEND>[argument 2; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){seq_grid_w}<LEND>[](symbol){gw_pix}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid_margin}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){grid_margin}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid_margin}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){grid_size}<LSEP>[](symbol){grid_margin}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mask_s}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){mask_s}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask}<LEND>[argument 1; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LEND>[](symbol){seq_grid_h}<LEND>[](symbol){gh_pix}<LEND>[argument 2; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[](symbol){seq_grid_w}<LEND>[](symbol){gw_pix}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){cur_mask}<LSEP>[](symbol){mask_s}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nrow_cur_mask}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){cur_mask}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ncol_cur_mask}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){cur_mask}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){step}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){log2}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){max_grid_size}<LSEP>[](symbol){grid_size}<LEND>[statement 14; control flow](){for}<LSEP>[](symbol){st}<LSEP>[](symbol){step}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){step}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){next_mask}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cur_mask}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nrow_cur_mask}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ncol_cur_mask}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){next_mask}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){next_mask}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cur_mask}<LEND>[argument 1; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nrow_cur_mask}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){nrow_cur_mask}<LEND>[argument 2; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq.int}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ncol_cur_mask}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){ncol_cur_mask}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mask_ind}<LEND>[call](){}<LSEP>[](symbol){which}<LSEP>[](symbol){next_mask}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mask_ind}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){ind}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mask_ind}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cur_mask}<LEND>[argument 1; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_ind}<LSEP>[](symbol){ind}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){nrow_cur_mask}<LEND>[argument 2; call](){}<LSEP>[](symbol){pmin.int}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax.int}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_ind}<LSEP>[](symbol){ind}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){ncol_cur_mask}<LEND>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mask_ind}<LEND>[call](){}<LSEP>[](symbol){which}<LSEP>[](symbol){cur_mask}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mask_ind}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mask_list}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){mask_ind}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_list}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_ind}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){grid_size}<LEND>[](symbol){delta_w}<LEND>[](symbol){gw_ratio}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_list}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_ind}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){grid_size}<LEND>[](symbol){delta_h}<LEND>[](symbol){gh_ratio}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_list}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){pmin}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_list}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){st}<LSEP>[](symbol){grid_size}<LEND>[](symbol){gw_ratio}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){gw_pix}<LSEP>[](symbol){delta_w}<LEND>[](symbol){gw_ratio}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_list}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){pmin}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mask_list}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){st}<LSEP>[](symbol){grid_size}<LEND>[](symbol){gh_ratio}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){gh_pix}<LSEP>[](symbol){delta_h}<LEND>[](symbol){gh_ratio}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mask_lists}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){mask_lists}<LSEP>[](symbol){mask_list}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){step}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cur_mask}<LSEP>[](symbol){next_mask}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nrow_cur_mask}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){cur_mask}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ncol_cur_mask}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){cur_mask}<LEND>[](symbol){mask_lists}<LEND>[assign](){<-}<LSEP>[](symbol){make_textgrob}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LSEP>[](symbol){x}<LSEP>[](symbol){valid_strings}<LSEP>[](symbol){wordcloud}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){valid_strings}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){xi}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){textGrob}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wordcloud}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){native}<LEND>[argument 2; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wordcloud}<LSEP>[](symbol){y}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){native}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){angle}<LEND>[argument 4; call](){}<LSEP>[](symbol){gpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){alpha}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){colour}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){size}<LEND>[](symbol){.pt}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){family}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){fontface}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){row}<LSEP>[](symbol){lineheight}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){hjust}<LEND>[](symbol){i}<LEND>[argument 6; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){vjust}<LEND>[](symbol){i}<LEND>[assign](){<-}<LSEP>[](symbol){make_boxgrob}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){boxes}<LSEP>[](symbol){wordcloud}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){grid.rect}<LEND>[argument 0; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wordcloud}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){native}<LEND>[argument 1; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wordcloud}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes_text}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){native}<LEND>[argument 2; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){native}<LEND>[argument 3; call](){}<LSEP>[](symbol){unit}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){boxes}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](str){native}<LEND>[argument 4; call](){}<LSEP>[](symbol){gpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){alpha}<LSEP>[argument 0; litteral](str){red}<LSEP>[argument 1; litteral](real){0.500000}
[](){expression}<LSEP>[litteral](str){love_words}<LSEP>[litteral](str){love_words_small}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){not_empty}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xs}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){xs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.expression}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xs}<LSEP>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xs}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xs}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){parse_safe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){text}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){text}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){expression}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){text}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){text}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){expr}<LEND>[call](){}<LSEP>[](symbol){parse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){text}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){out}<LSEP>[](symbol){i}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){expr}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; litteral](logical){NA}<LEND>[false branch; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){expr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){out}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.500000}<LSEP>[argument 4; litteral](str){center}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggwordcloud}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[argument 0; litteral](str){love_words_small}<LEND>[call](){}<LSEP>[](symbol){data}<LSEP>[argument 0; litteral](str){love_words}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){43.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_radius}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){40.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){love_words_small}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){90.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){n}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){60.000000}<LSEP>[argument 1; litteral](real){40.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LSEP>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[assign](){<-}<LSEP>[](symbol){love_words_small}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){45.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){n}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LSEP>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LSEP>[argument 0; litteral](real){0.350000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[control flow](){for}<LSEP>[](symbol){shape}<LEND>[range; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){circle}<LSEP>[argument 1; litteral](str){cardioid}<LSEP>[argument 2; litteral](str){diamond}<LSEP>[argument 3; litteral](str){square}<LSEP>[argument 4; litteral](str){triangle-forward}<LSEP>[argument 5; litteral](str){triangle-upright}<LSEP>[argument 6; litteral](str){pentagon}<LSEP>[argument 7; litteral](str){star}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LSEP>[](symbol){shape}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[](symbol){shape}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 2; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){sample.int}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){love_words_small}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LSEP>[](symbol){speakers}<LSEP>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){24.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_gradient}<LSEP>[argument 0; litteral](str){darkred}<LSEP>[argument 1; litteral](str){red}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){png}<LSEP>[](symbol){readPNG}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/hearth.png}<LSEP>[argument 1; litteral](str){ggwordcloud}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){18.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[assign](){<-}<LSEP>[](symbol){love_words}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){love_words}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){45.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){n}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LSEP>[](symbol){speakers}<LSEP>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){png}<LSEP>[](symbol){readPNG}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/hearth.png}<LSEP>[argument 1; litteral](str){ggwordcloud}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){16.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_color_gradient}<LSEP>[argument 0; litteral](str){darkred}<LSEP>[argument 1; litteral](str){red}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){dplyr}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){tidyr}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){love_words_small_l}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){love_words_small}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather}<LSEP>[argument 0; litteral](str){type}<LSEP>[argument 1; litteral](str){speakers}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lang}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){word}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){desc}<LSEP>[](symbol){speakers}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small_l}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_wrap}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small_l}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LSEP>[](symbol){speakers}<LSEP>[](symbol){type}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_x_discrete}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[assign](){<-}<LSEP>[](symbol){love_words_small_l}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){love_words_small_l}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){speakers}<LEND>[argument 1; call](){}<LSEP>[](symbol){group_by}<LSEP>[](symbol){lang}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){prop}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){prop}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){prop}<LEND>[call](){}<LSEP>[](symbol){set.seed}<LSEP>[argument 0; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){love_words_small_l}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){propdelta}<LEND>[argument 2; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){propdelta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){propdelta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text_wordcloud_area}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale_size_area}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){facet_wrap}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){ggwordcloud}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words}<LSEP>[](symbol){word}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){love_words}<LSEP>[](symbol){speakers}<LEND>[call](){}<LSEP>[](symbol){ggwordcloud2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){love_words}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){word}<LSEP>[argument 1; litteral](str){speakers}<LEND>[argument 1; litteral](real){1.500000}