ast
stringlengths
16
28.2M
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rwa}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LSEP>[](symbol){outcome}<LSEP>[](symbol){predictors}<LSEP>[](symbol){applysigns}<LSEP>[](symbol){plot}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){thedata}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){outcome}<LSEP>[](symbol){predictors}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){drop_na}<LEND>[](symbol){outcome}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){numVar}<LEND>[call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){thedata}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cor_matrix}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){thedata}<LSEP>[argument 1; litteral](str){pairwise.complete.obs}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){remove_all_na_cols}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){drop_na}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){matrix_data}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){cor_matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){RXX}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matrix_data}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matrix_data}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){RXY}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matrix_data}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Variables}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){cor_matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){.}<LSEP>[](symbol){outcome}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){RXX.eigen}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){RXX}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){RXX.eigen}<LSEP>[](symbol){val}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){D}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){RXX.eigen}<LSEP>[](symbol){vec}<LEND>[](symbol){delta}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){RXX.eigen}<LSEP>[](symbol){vec}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){lambdasq}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){lambda}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){lambda}<LEND>[](symbol){RXY}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){rsquare}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){beta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){RawWgt}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){lambdasq}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){beta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){import}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){RawWgt}<LSEP>[](symbol){rsquare}<LEND>[argument 1; litteral](real){100.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){sign}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate_all}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){case_when}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){.}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){+}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){.}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){-}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){.}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){0}<LEND>[argument 3; call](){}<LSEP>[](symbol){~}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){NA}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){rename}<LEND>[argument 0; litteral](str){V1}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Variables}<LSEP>[](symbol){RawWgt}<LSEP>[](symbol){import}<LSEP>[](symbol){sign}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){complete_cases}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){drop_na}<LSEP>[](symbol){thedata}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){applysigns}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Sign}<LSEP>[argument 1; litteral](str){-}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Rescaled.RelWeight}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){Rescaled.RelWeight}<LEND>[statement 20; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){Variables}<LSEP>[](symbol){rsquare}<LSEP>[](symbol){result}<LSEP>[](symbol){complete_cases}<LSEP>[](symbol){lambda}<LSEP>[](symbol){RXX}<LSEP>[](symbol){RXY}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.recalc.callrate}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; 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){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Dataset contains mo...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Locus metric CallRate does n...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Recalculating locus metric C...}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<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){glNA}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){CallRate}<LEND>[litteral](logical){TRUE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){deparse}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){asS3}<LSEP>[](symbol){x}
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){.onAttach}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lib}<LSEP>[](symbol){pkg}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){packageStartupMessage}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Loaded dtw v%s. See ?dtw for h...}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){packageDescription}<LEND>[argument 0; litteral](str){dtw}<LEND>[](symbol){Version}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){proxy}<LSEP>[](symbol){pr_DB}<LEND>[](symbol){entry_exists}<LEND>[argument 0; litteral](str){DTW}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){proxy}<LSEP>[](symbol){pr_DB}<LEND>[](symbol){set_entry}<LEND>[](symbol){dtwpairdist}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){DTW}<LSEP>[argument 1; litteral](str){dtw}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){metric}<LSEP>[argument 4; litteral](str){Dynamic Time Warping}<LSEP>[argument 5; litteral](str){Giorgino T (2009). Computing a...}<LSEP>[argument 6; litteral](str){minimum of sum(x[xw[i]]-y[yw[i...}
[](){expression}<LSEP>[litteral](str){StateExperience}<LSEP>[litteral](str){RegionExperience}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){reduce_rank_regression}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){full_rank}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](str){full}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reduce_rank}<LSEP>[](symbol){full_rank}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rank}<LSEP>[](symbol){full_rank}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reduce_rank}<LSEP>[](symbol){rank}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){rank out of bounds}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cov_x}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cov_yx}<LEND>[call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){cov_y}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){cov_xy}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){cov_yx}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sqrtm}<LEND>[call](){}<LSEP>[](symbol){sqrt_matrix}<LSEP>[](symbol){gamma_matrix}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){weighted_matrix}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){sqrtm}<LSEP>[](symbol){cov_yx}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){cov_x}<LEND>[](symbol){cov_xy}<LEND>[](symbol){sqrtm}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){eigens}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){weighted_matrix}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){eigen_values}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){eigens}<LSEP>[argument 1; litteral](str){values}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){V_t}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){eigens}<LSEP>[argument 1; litteral](str){vectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){reduce_rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){reduce_rank}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){A_t}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){V_t}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){A_t}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){y}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){B_t}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){V_t}<LEND>[](symbol){sqrtm}<LEND>[](symbol){cov_yx}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){cov_x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){C_t}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A_t}<LSEP>[](symbol){B_t}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){mu_y}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){y}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){mu_x}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){mu_t}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu_y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){C_t}<LSEP>[](symbol){mu_x}<LEND>[statement 18; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mu_t}<LSEP>[](symbol){A_t}<LSEP>[](symbol){B_t}<LSEP>[](symbol){C_t}<LSEP>[](symbol){eigen_values}<LEND>[assign](){<-}<LSEP>[](symbol){rrr_predict}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){rrr_object}<LSEP>[](symbol){x_new}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){num_obs}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x_new}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coeffs}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rrr_object}<LSEP>[argument 1; litteral](str){C}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){means}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rrr_object}<LSEP>[argument 1; litteral](str){mean}<LEND>[](symbol){num_obs}<LEND>[](symbol){num_obs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){means}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){coeffs}<LEND>[argument 1; call](){}<LSEP>[](symbol){organize}<LSEP>[](symbol){x_new}<LEND>[argument 1; call](){}<LSEP>[](symbol){as_data_frame}<LEND>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){rrr_error}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){rrr_object}<LSEP>[](symbol){x_new}<LSEP>[](symbol){y_new}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y_new}<LEND>[argument 1; call](){}<LSEP>[](symbol){rrr_predict}<LSEP>[](symbol){rrr_object}<LSEP>[](symbol){x_new}<LEND>[assign](){<-}<LSEP>[](symbol){rrr_residual}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){reduce_rank_regression}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 1; call](){}<LSEP>[](symbol){rrr_error}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){rrr_residual_plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LSEP>[](symbol){plot}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){rrr_residual}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){as_data_frame}<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){dim}<LSEP>[](symbol){residuals}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){index}<LEND>[litteral](str){index}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){bind_cols}<LSEP>[](symbol){index}<LSEP>[](symbol){residuals}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){static_plot}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){GGally}<LSEP>[](symbol){ggpairs}<LEND>[](symbol){df}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){static_plot}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){ggplot}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[](symbol){static_plot}<LEND>[false branch; block](){}<LSEP>[](symbol){residuals}<LEND>[assign](){<-}<LSEP>[](symbol){delta_coeff}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){full_rank}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coeff_full}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){reduce_rank_regression}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){full_rank}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](str){C}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){delta_coeff_norm}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){full_rank}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta_coeff_norm}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<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){coeff_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){reduce_rank_regression}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](str){C}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){delta_c}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){delta_coeff_norm}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){coeff_full}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){delta_c}<LEND>[assign](){<-}<LSEP>[](symbol){delta_error}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){full_rank}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){resid_full}<LEND>[call](){}<LSEP>[](symbol){cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){rrr_residual}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){full_rank}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){delta_resid_norm}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){full_rank}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta_resid_norm}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<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){resid_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){rrr_residual}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){delta_EE}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){delta_resid_norm}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<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){resid_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){delta_EE}<LEND>[assign](){<-}<LSEP>[](symbol){rrr_rank_trace}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){k}<LSEP>[](symbol){plot}<LSEP>[](symbol){interactive}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dC}<LEND>[call](){}<LSEP>[](symbol){delta_coeff}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dEE}<LEND>[call](){}<LSEP>[](symbol){delta_error}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){gamma_matrix}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ranks}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){data_frame}<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){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){dC}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){trace}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){ranks}<LSEP>[](symbol){dC}<LSEP>[](symbol){dEE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[](symbol){trace}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rt_plot}<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){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){trace}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){dC}<LSEP>[](symbol){dEE}<LSEP>[](symbol){ranks}<LEND>[argument 1; call](){}<LSEP>[](symbol){lims}<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){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LSEP>[argument 0; litteral](str){red}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](str){white}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){dC}<LSEP>[argument 1; litteral](str){dE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Rank Trace Plot, k = }<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){interactive}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){ggplotly}<LEND>[](symbol){rt_plot}<LEND>[false branch; block](){}<LSEP>[](symbol){rt_plot}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ntrm_correct_hessian}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){H}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){H}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){z}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){b}<LSEP>[litteral](real){0.001000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LSEP>[litteral](real){0.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){b}<LSEP>[](symbol){h}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){z}<LSEP>[](symbol){w}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){H_chol}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){H}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; litteral](NULL){NULL}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){0.000000}<LEND>[statement 8; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){H_chol}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){w}<LEND>[](symbol){b}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){z}<LSEP>[](symbol){w}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){H_chol}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){H}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){H_chol}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Hessian matrix is ill-conditioned}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[](symbol){H}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm_max_abs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){min_max}<LEND>[call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){min_max}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){min_max}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm_norm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm_solve_quadratic_equation}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LSEP>[](symbol){c}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eps}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){b}<LEND>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){discriminant}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){b}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){a}<LEND>[](symbol){c}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){t0}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){discriminant}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){discriminant}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){discriminant}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){negative discriminant when sol...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){t0}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){b}<LEND>[](symbol){t0}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){t1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){c}<LEND>[](symbol){t1}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<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>[true branch; block](){}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){a}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){c}<LEND>[](symbol){a}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){y}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){complex solutions while solvin...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm_line_search}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){f}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LSEP>[litteral](real){0.381966}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tol_0}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){eps_zero}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d}<LSEP>[litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){e}<LSEP>[litteral](real){0.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){fa}<LEND>[call](){}<LSEP>[](symbol){f}<LSEP>[](symbol){a}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){fb}<LEND>[call](){}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){y}<LSEP>[](symbol){a}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){fy}<LSEP>[](symbol){fa}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){fb}<LSEP>[](symbol){fa}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LSEP>[](symbol){b}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fy}<LSEP>[](symbol){fb}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){w}<LEND>[assign](){<-}<LSEP>[](symbol){v}<LSEP>[](symbol){b}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){fx}<LEND>[assign](){<-}<LSEP>[](symbol){fw}<LEND>[assign](){<-}<LSEP>[](symbol){fv}<LSEP>[](symbol){fb}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[argument 0; litteral](real){101.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xm}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tol_1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tol_0}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){x}<LEND>[](symbol){eps_zero}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tol_2}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){tol_1}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){xm}<LEND>[](symbol){tol_2}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){fx}<LSEP>[](symbol){fy}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fy}<LSEP>[](symbol){fx}<LEND>[statement 1; control flow](){break}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){e}<LEND>[](symbol){tol_1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){fx}<LSEP>[](symbol){fv}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){fx}<LSEP>[](symbol){fw}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<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){v}<LEND>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[](symbol){r}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){q}<LSEP>[](symbol){r}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){q}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){e_tmp}<LSEP>[](symbol){e}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){e}<LSEP>[](symbol){d}<LEND>[statement 8; 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){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[](symbol){q}<LEND>[](symbol){e_tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){a}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){b}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){e}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){x}<LSEP>[](symbol){xm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){a}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){b}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[](symbol){e}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){p}<LSEP>[](symbol){q}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){x}<LSEP>[](symbol){d}<LEND>[statement 2; 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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){u}<LSEP>[](symbol){a}<LEND>[](symbol){tol_2}<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){b}<LSEP>[](symbol){u}<LEND>[](symbol){tol_2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){xm}<LSEP>[](symbol){x}<LEND>[](symbol){tol_1}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){e}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){x}<LSEP>[](symbol){xm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){a}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){b}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[](symbol){e}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){u}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){d}<LEND>[](symbol){tol_1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){x}<LSEP>[](symbol){d}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){d}<LEND>[](symbol){tol_1}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){fu}<LEND>[call](){}<LSEP>[](symbol){f}<LSEP>[](symbol){u}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){fu}<LSEP>[](symbol){fx}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){u}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){b}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){v}<LSEP>[](symbol){w}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x}<LSEP>[](symbol){u}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fv}<LSEP>[](symbol){fw}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){fw}<LSEP>[](symbol){fx}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){fx}<LSEP>[](symbol){fu}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){u}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<LSEP>[](symbol){u}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){b}<LSEP>[](symbol){u}<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){fu}<LSEP>[](symbol){fw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){w}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LSEP>[](symbol){u}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fv}<LSEP>[](symbol){fw}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fw}<LSEP>[](symbol){fu}<LEND>[false branch; 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){<=}<LSEP>[](symbol){fu}<LSEP>[](symbol){fv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){v}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){v}<LSEP>[](symbol){w}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LSEP>[](symbol){u}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fv}<LSEP>[](symbol){fu}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){101.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){line search not converged}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[](symbol){y}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.dtw}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pt}<LEND>[call](){}<LSEP>[](symbol){pmatch}<LSEP>[](symbol){type}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alignment}<LSEP>[argument 1; litteral](str){twoway}<LSEP>[argument 2; litteral](str){threeway}<LSEP>[argument 3; litteral](str){density}<LEND>[statement 1; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){pt}<LEND>[argument 1; call](){}<LSEP>[](symbol){dtwPlotAlignment}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[argument 2; call](){}<LSEP>[](symbol){dtwPlotTwoWay}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[argument 3; call](){}<LSEP>[](symbol){dtwPlotThreeWay}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){dtwPlotDensity}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){dtwPlot}<LSEP>[](symbol){plot.dtw}<LEND>[assign](){<-}<LSEP>[](symbol){dtwPlotAlignment}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){plot.type}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){N}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){M}<LEND>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){plot.type}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){dtwPlotTwoWay}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LSEP>[](symbol){xts}<LSEP>[](symbol){yts}<LSEP>[](symbol){offset}<LSEP>[](symbol){ts.type}<LSEP>[](symbol){pch}<LSEP>[](symbol){match.indices}<LSEP>[](symbol){match.col}<LSEP>[](symbol){match.lty}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){yts}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xts}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){query}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){yts}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){reference}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){yts}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Original timeseries are required}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ytso}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){yts}<LSEP>[](symbol){offset}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){maxlen}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ytso}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xts}<LEND>[](symbol){maxlen}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ytso}<LEND>[](symbol){maxlen}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){def.par}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){offset}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.100000}<LEND>[statement 8; call](){}<LSEP>[](symbol){matplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){xts}<LSEP>[](symbol){ytso}<LEND>[](symbol){ts.type}<LSEP>[](symbol){pch}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){...}<LEND>[statement 9; call](){}<LSEP>[](symbol){box}<LEND>[statement 10; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 11; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pretty}<LSEP>[](symbol){xts}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){offset}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rightTicks}<LEND>[call](){}<LSEP>[](symbol){pretty}<LSEP>[](symbol){yts}<LEND>[statement 1; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rightTicks}<LSEP>[](symbol){offset}<LEND>[](symbol){rightTicks}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){match.indices}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ml}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ml}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){match.indices}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){match.indices}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LSEP>[](symbol){match.indices}<LEND>[statement 14; call](){}<LSEP>[](symbol){segments}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[](symbol){idx}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ytso}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[](symbol){idx}<LEND>[](symbol){match.col}<LSEP>[](symbol){match.lty}<LEND>[statement 15; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){def.par}<LEND>[assign](){<-}<LSEP>[](symbol){dtwPlotThreeWay}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LSEP>[](symbol){xts}<LSEP>[](symbol){yts}<LSEP>[](symbol){type.align}<LSEP>[](symbol){type.ts}<LSEP>[](symbol){match.indices}<LSEP>[](symbol){margin}<LSEP>[](symbol){inner.margin}<LSEP>[](symbol){title.margin}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){main}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){yts}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xts}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){query}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){yts}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){reference}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){yts}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Original timeseries are required}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xts}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){xts}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){yts}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){yts}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){xts}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){yts}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Only single-variate timeseries...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){def.par}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 6; call](){}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){imar}<LSEP>[](symbol){inner.margin}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){bmar}<LSEP>[](symbol){margin}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){lmar}<LSEP>[](symbol){margin}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){tmar}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){margin}<LSEP>[](symbol){title.margin}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){rmar}<LSEP>[](symbol){margin}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){mlab}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){margin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){mtex}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){margin}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xts}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){yts}<LEND>[statement 16; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){imar}<LSEP>[](symbol){imar}<LSEP>[](symbol){tmar}<LSEP>[](symbol){rmar}<LEND>[statement 17; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[](symbol){type.align}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nn}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){mm}<LEND>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){main}<LSEP>[](symbol){...}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){match.indices}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){match.indices}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){match.indices}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){match.indices}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LSEP>[](symbol){match.indices}<LEND>[statement 1; call](){}<LSEP>[](symbol){segments}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){idx}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){idx}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[](symbol){idx}<LEND>[argument 4; litteral](str){grey60}<LSEP>[argument 5; litteral](real){3.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){segments}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[](symbol){idx}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[](symbol){idx}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[](symbol){idx}<LEND>[argument 4; litteral](str){grey60}<LSEP>[argument 5; litteral](real){3.000000}<LEND>[statement 20; call](){}<LSEP>[](symbol){box}<LEND>[statement 21; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){bmar}<LSEP>[](symbol){imar}<LSEP>[](symbol){imar}<LSEP>[](symbol){rmar}<LEND>[statement 22; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nn}<LEND>[](symbol){type.ts}<LSEP>[](symbol){xlab}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){mlab}<LSEP>[](symbol){mtex}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 4; litteral](logical){FALSE}<LSEP>[](symbol){}<LEND>[statement 23; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 24; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[statement 25; call](){}<LSEP>[](symbol){box}<LEND>[statement 26; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){imar}<LSEP>[](symbol){lmar}<LSEP>[](symbol){tmar}<LSEP>[](symbol){imar}<LEND>[statement 27; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){mm}<LEND>[](symbol){yts}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){yts}<LEND>[](symbol){type.ts}<LSEP>[](symbol){ylab}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){mlab}<LSEP>[](symbol){mtex}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){}<LEND>[statement 28; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[statement 29; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[statement 30; call](){}<LSEP>[](symbol){box}<LEND>[statement 31; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){def.par}<LEND>[assign](){<-}<LSEP>[](symbol){dtwPlotDensity}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LSEP>[](symbol){normalize}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cm}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){costMatrix}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cm}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){dtwPlotDensity requires dtw in...}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){normalize}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){norm}<LEND>[call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){stepPattern}<LEND>[argument 1; litteral](str){norm}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){norm}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No normalization known for ste...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){norm}<LSEP>[argument 1; litteral](str){N}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cm}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){cm}<LEND>[argument 1; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){cm}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){norm}<LSEP>[argument 1; litteral](str){N+M}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cm}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){cm}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){cm}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){cm}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){norm}<LSEP>[argument 1; litteral](str){M}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cm}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){cm}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){cm}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xd}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){cm}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){yd}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){cm}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){image}<LSEP>[](symbol){cm}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){grDevices}<LSEP>[](symbol){terrain.colors}<LEND>[argument 0; litteral](real){100.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){xd}<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){yd}<LEND>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){contour}<LSEP>[](symbol){cm}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){xd}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){yd}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 7; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[argument 2; litteral](str){blue}<LSEP>[argument 3; litteral](real){2.000000}
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){setClassUnion}<LSEP>[argument 0; litteral](str){atomic}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){logical}<LSEP>[argument 1; litteral](str){integer}<LSEP>[argument 2; litteral](str){numeric}<LSEP>[argument 3; litteral](str){complex}<LSEP>[argument 4; litteral](str){character}<LSEP>[argument 5; litteral](str){raw}<LEND>[call](){}<LSEP>[](symbol){setLoadAction}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ns}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){parse}<LSEP>[argument 0; litteral](str){library('methods')}<LEND>[](symbol){ns}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.tree.nj}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LSEP>[](symbol){outgroup}<LSEP>[](symbol){labelsize}<LSEP>[](symbol){treefile}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Converting to a matrix of fr...}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){tapply}<LEND>[argument 3; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){e}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Computing Euclidean distances\n}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){dist}<LSEP>[](symbol){t}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](str){ }<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tree}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ape}<LSEP>[](symbol){nj}<LEND>[](symbol){d}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){outgroup}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outgroup}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_pad}<LEND>[](symbol){outgroup}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tree}<LSEP>[](symbol){tip.label}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){right}<LEND>[argument 3; litteral](str){ }<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){outgroup}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){outgroup}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tree}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ape}<LSEP>[](symbol){root}<LEND>[](symbol){tree}<LSEP>[](symbol){outgroup}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[argument 3; litteral](str){m}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ape}<LSEP>[](symbol){plot.phylo}<LEND>[](symbol){tree}<LSEP>[](symbol){type}<LSEP>[](symbol){labelsize}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[argument 3; litteral](str){m}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ape}<LSEP>[](symbol){plot.phylo}<LEND>[](symbol){tree}<LSEP>[](symbol){type}<LSEP>[](symbol){labelsize}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){treefile}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Writing the tree topology to}<LSEP>[](symbol){treefile}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){write.tree}<LSEP>[](symbol){tree}<LSEP>[](symbol){treefile}<LEND>[statement 16; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tree}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){as.folder.data.frame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){name.x}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){groups}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){'}<LSEP>[](symbol){groups}<LSEP>[argument 2; litteral](str){' is not a column name of }<LSEP>[](symbol){name.x}<LSEP>[argument 4; litteral](str){.}<LSEP>[argument 5; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jg}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[](symbol){groups}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){jg}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LSEP>[](symbol){g}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){name.x}<LSEP>[argument 1; litteral](str){[, '}<LSEP>[](symbol){groups}<LSEP>[argument 3; litteral](str){']}<LSEP>[argument 4; litteral](str){ is not a factor.}<LSEP>[argument 5; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){glev}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){g}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){l}<LSEP>[](symbol){glev}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fold}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){g}<LSEP>[](symbol){l}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){jg}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[](symbol){glev}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){fold}<LEND>[litteral](str){folder}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](str){same.rows}<LEND>[litteral](logical){FALSE}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fold}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){distl2dnormpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mean1}<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){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one variance is zero}<LEND>[false 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){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the sample variances is...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n2}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w12}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<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){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){w12}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n1}<LSEP>[](symbol){n2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){log.lik}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mu}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sigma2}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tau}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){rho}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho}<LEND>[argument 1; call](){}<LSEP>[](symbol){upper.tri}<LSEP>[](symbol){rho}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){rho}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){rho}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){rho}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){rho}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){time.comb}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lc.comb}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){var.lc.comb}<LEND>[call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){leng.time}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){time.comb}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Sigma.star}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rho}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){sigma2}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){sigma2}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){temp}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau}<LSEP>[](symbol){j}<LEND>[statement 9; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){temp}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){mu.i}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){leng.time}<LSEP>[](symbol){k}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){mu.star.i}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){leng.time}<LSEP>[](symbol){k}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[](symbol){mu}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){delta.t}<LEND>[call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){time.comb}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){a.i}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){delta.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){tau}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){loglik}<LSEP>[litteral](real){0.000000}<LEND>[statement 16; control flow](){for}<LSEP>[](symbol){t}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){leng.time}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma.star}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[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}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){temp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){q}<LEND>[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){lc.comb}<LSEP>[](symbol){t}<LSEP>[](symbol){}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){lc.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lc.comb}<LSEP>[](symbol){t}<LSEP>[](symbol){q}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){var.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var.lc.comb}<LSEP>[](symbol){t}<LSEP>[](symbol){q}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){q}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Qt}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){q}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){var.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){invQt}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){Qt}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma.star}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<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){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){}<LSEP>[](symbol){q}<LEND>[](symbol){invQt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){q}<LSEP>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Qt}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){q}<LSEP>[](symbol){q}<LEND>[](symbol){var.t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){invQt}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){Qt}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma.star}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<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){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){q}<LSEP>[](symbol){}<LEND>[](symbol){invQt}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.star.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[](symbol){mu}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){q}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.star.i}<LSEP>[](symbol){t}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){}<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){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){}<LSEP>[](symbol){q}<LEND>[](symbol){invQt}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lc.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){q}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.star.i}<LSEP>[](symbol){t}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){}<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){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lc.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){q}<LEND>[](symbol){invQt}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){q}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){loglik}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){loglik}<LEND>[argument 1; call](){}<LSEP>[](symbol){dmvnorm}<LSEP>[](symbol){lc.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){q}<LEND>[](symbol){Qt}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){loglik}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){loglik}<LEND>[argument 1; call](){}<LSEP>[](symbol){dnorm}<LSEP>[](symbol){lc.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LSEP>[](symbol){q}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){Qt}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 17; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){loglik}<LEND>[assign](){<-}<LSEP>[](symbol){bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){theta}<LSEP>[](symbol){n.warm}<LSEP>[](symbol){n.sample}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){log.sigma2.prop.scale}<LSEP>[](symbol){log.tau.prop.scale}<LSEP>[](symbol){mu.prior.range}<LSEP>[](symbol){tau.prior.a}<LSEP>[](symbol){tau.prior.b}<LSEP>[](symbol){sigma.prior.a}<LSEP>[](symbol){sigma.prior.b}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.total}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n.sample}<LSEP>[](symbol){n.warm}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta.t}<LSEP>[](symbol){theta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mu.accept}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sigma2.accept}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tau.accept}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){rho.accept}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mu.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){sigma2.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tau.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){rho.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.total}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){inv.cdf}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prior.range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prior.range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){mu.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu.p}<LEND>[call](){}<LSEP>[](symbol){qnorm}<LSEP>[](symbol){inv.cdf}<LSEP>[](symbol){mu.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[](symbol){mu.p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){mu.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){mu.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[](symbol){mu.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.accept}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.out}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[](symbol){scale.adj}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sigma2.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sigma2.p}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.sigma2.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){j}<LEND>[](symbol){sigma2.p}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){l.metrop}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){sigma.prior.b}<LSEP>[](symbol){sigma2.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sigma.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){sigma.prior.b}<LSEP>[](symbol){sigma2.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sigma.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.t}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){j}<LEND>[](symbol){sigma2.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.accept}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.out}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){j}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.sigma2.prop.scale}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.sigma2.prop.scale}<LSEP>[](symbol){j}<LEND>[](symbol){scale.adj}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tau.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tau.p}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.tau.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 3; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){j}<LEND>[](symbol){tau.p}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){l.metrop}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){tau.prior.b}<LSEP>[](symbol){tau.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tau.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){tau.prior.b}<LSEP>[](symbol){tau.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tau.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.t}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){j}<LEND>[](symbol){tau.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.accept}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.out}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){j}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.tau.prop.scale}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){log.tau.prop.scale}<LSEP>[](symbol){j}<LEND>[](symbol){scale.adj}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){j}<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){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rho.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){inv.cdf}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){rho.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){pnorm}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){rho.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rho.p}<LEND>[call](){}<LSEP>[](symbol){qnorm}<LSEP>[](symbol){inv.cdf}<LSEP>[](symbol){rho.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){j}<LEND>[](symbol){rho.p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<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}<LSEP>[](symbol){rho.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){rho.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<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}<LSEP>[](symbol){rho.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){rho.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){j}<LEND>[](symbol){rho.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.accept}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.out}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){j}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.prop.scale}<LSEP>[](symbol){j}<LEND>[](symbol){scale.adj}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){mu.acct}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){mu.accept}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){sigma2.acct}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){sigma2.accept}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){tau.acct}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){tau.accept}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){rho.acct}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){rho.accept}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[](symbol){}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[](symbol){}<LEND>[](symbol){mu.acct}<LSEP>[](symbol){sigma2.acct}<LSEP>[](symbol){tau.acct}<LSEP>[](symbol){rho.acct}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){log.lik.single}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mu}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sigma2}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tau}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){time.comb}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){lc.comb}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){var.lc.comb}<LEND>[call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){leng.time}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){time.comb}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){Sigma.star}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sigma2}<LSEP>[](symbol){tau}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){mu.i}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){leng.time}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){mu.star.i}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){leng.time}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){delta.t}<LEND>[call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){time.comb}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){a.i}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){delta.t}<LEND>[](symbol){tau}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){loglik}<LSEP>[litteral](real){0.000000}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){t}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){leng.time}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma.star}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[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}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<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){delta.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tau}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){lc.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lc.comb}<LSEP>[](symbol){t}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){var.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var.lc.comb}<LSEP>[](symbol){t}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Qt}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){var.t}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){invQt}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){Qt}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma.star}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[](symbol){invQt}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.star.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.star.i}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lc.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LEND>[](symbol){invQt}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){loglik}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){loglik}<LEND>[argument 1; call](){}<LSEP>[](symbol){dnorm}<LSEP>[](symbol){lc.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.i}<LSEP>[](symbol){t}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){Qt}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 18; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){loglik}<LEND>[assign](){<-}<LSEP>[](symbol){bayes.single}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){theta}<LSEP>[](symbol){n.warm}<LSEP>[](symbol){n.sample}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){log.sigma2.prop.scale}<LSEP>[](symbol){log.tau.prop.scale}<LSEP>[](symbol){mu.prior.range}<LSEP>[](symbol){tau.prior.a}<LSEP>[](symbol){tau.prior.b}<LSEP>[](symbol){sigma.prior.a}<LSEP>[](symbol){sigma.prior.b}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.total}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){n.sample}<LSEP>[](symbol){n.warm}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta.t}<LSEP>[](symbol){theta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mu.accept}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sigma2.accept}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tau.accept}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n.total}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mu.out}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LSEP>[](symbol){k}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){sigma2.out}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tau.out}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n.total}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.total}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){inv.cdf}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prior.range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prior.range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){mu.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu.p}<LEND>[call](){}<LSEP>[](symbol){qnorm}<LSEP>[](symbol){inv.cdf}<LSEP>[](symbol){mu.t}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[](symbol){mu.p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){mu.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){mu.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<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){mu.prior.range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[](symbol){mu.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.accept}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.out}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){j}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.prop.scale}<LSEP>[](symbol){j}<LEND>[](symbol){scale.adj}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sigma2.t}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sigma2.p}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.t}<LEND>[](symbol){log.sigma2.prop.scale}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){sigma2.p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){l.metrop}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){sigma.prior.b}<LSEP>[](symbol){sigma2.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sigma.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){sigma.prior.b}<LSEP>[](symbol){sigma2.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sigma.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.t}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){sigma2.t}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){sigma2.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.accept}<LSEP>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.out}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){log.sigma2.prop.scale}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){log.sigma2.prop.scale}<LSEP>[](symbol){scale.adj}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tau.t}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tau.p}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.t}<LEND>[](symbol){log.tau.prop.scale}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){theta.p}<LSEP>[](symbol){theta.t}<LEND>[statement 14; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.p}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){tau.p}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LSEP>[](symbol){theta.t}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){l.metrop}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){l.metrop}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){tau.prior.b}<LSEP>[](symbol){tau.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tau.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){tau.prior.b}<LSEP>[](symbol){tau.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tau.prior.a}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.t}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){l.hastings}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.p}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){tau.t}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){l.metrop}<LSEP>[](symbol){l.hastings}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){rexp}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){tau.p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.accept}<LSEP>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.out}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){theta.t}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[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){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.accept}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){99.000000}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){0.350000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scale.adj}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.100000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){log.tau.prop.scale}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){log.tau.prop.scale}<LSEP>[](symbol){scale.adj}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){mu.acct}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){mu.accept}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){sigma2.acct}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){sigma2.accept}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tau.acct}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){tau.accept}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mu.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sigma2.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau.out}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.warm}<LEND>[](symbol){mu.acct}<LSEP>[](symbol){sigma2.acct}<LSEP>[](symbol){tau.acct}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){drw}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data1}<LSEP>[](symbol){data2}<LSEP>[](symbol){data3}<LSEP>[](symbol){data4}<LSEP>[](symbol){data5}<LSEP>[](symbol){data6}<LSEP>[](symbol){data7}<LSEP>[](symbol){data8}<LSEP>[](symbol){data9}<LSEP>[](symbol){data10}<LSEP>[](symbol){n.datasets}<LSEP>[](symbol){method}<LSEP>[](symbol){bayes.n.burn}<LSEP>[](symbol){bayes.n.sample}<LSEP>[](symbol){mu.UNIFprior.range}<LSEP>[](symbol){tau.IGprior.shape}<LSEP>[](symbol){tau.IGprior.scale}<LSEP>[](symbol){sigma2.IGprior.shape}<LSEP>[](symbol){sigma2.IGprior.scale}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Starting at: }<LEND>[argument 1; call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LSEP>[](symbol){n.datasets}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n.rho}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){log.lik.single.optim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){th}<LSEP>[](symbol){data}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sigma2}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tau}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){log.lik.single}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mu}<LSEP>[](symbol){sigma2}<LSEP>[](symbol){tau}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){initial}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data1}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data1}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){log}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){opt.temp}<LEND>[call](){}<LSEP>[](symbol){optim}<LSEP>[](symbol){initial}<LSEP>[](symbol){log.lik.single.optim}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){Nelder-Mead}<LSEP>[](symbol){data1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){initial.mle}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){temp}<LSEP>[](symbol){initial.mle}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LSEP>[](symbol){temp}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){sigma}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){bayes}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){bayes.single}<LSEP>[](symbol){data1}<LSEP>[](symbol){initial.mle}<LSEP>[](symbol){bayes.n.burn}<LSEP>[](symbol){bayes.n.sample}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){1.000000}<LEND>[argument 7; assign](){<-}<LSEP>[](symbol){mu.prior.range}<LSEP>[](symbol){mu.UNIFprior.range}<LEND>[](symbol){tau.IGprior.shape}<LSEP>[](symbol){tau.IGprior.scale}<LSEP>[](symbol){sigma2.IGprior.shape}<LSEP>[](symbol){sigma2.IGprior.scale}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[](symbol){data1}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){7.000000}<LEND>[litteral](str){data.comb}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){k}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){parse}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){data.temp <- data}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data.temp}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data.temp}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data.temp}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data.temp}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){V1}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data.temp}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){V1}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[](symbol){i}<LEND>[](symbol){data.temp}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){data.comb}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){data}<LSEP>[](symbol){dat}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){data.comb}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data.comb}<LSEP>[](symbol){data}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data.comb}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){data.comb}<LSEP>[](symbol){data}<LSEP>[argument 2; litteral](str){V1}<LSEP>[argument 3; litteral](str){V1}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){log.lik.optim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){th}<LSEP>[](symbol){k}<LSEP>[](symbol){data}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.rho}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sigma2}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tau}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<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){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){rho}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<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){3.000000}<LSEP>[](symbol){k}<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){*}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){k}<LEND>[](symbol){n.rho}<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){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){th}<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){3.000000}<LSEP>[](symbol){k}<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){*}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){k}<LEND>[](symbol){n.rho}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){log.lik}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mu}<LSEP>[](symbol){sigma2}<LSEP>[](symbol){tau}<LSEP>[](symbol){rho}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){initial.temp}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data.comb}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data.comb}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){100.000000}<LSEP>[](symbol){k}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){opt.temp}<LEND>[call](){}<LSEP>[](symbol){optim}<LSEP>[](symbol){initial.temp}<LSEP>[](symbol){log.lik.optim}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){Nelder-Mead}<LSEP>[](symbol){k}<LSEP>[](symbol){data.comb}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){initial.mle}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<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){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){k}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.numeric}<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}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<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){3.000000}<LSEP>[](symbol){k}<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){*}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){k}<LEND>[](symbol){n.rho}<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){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt.temp}<LSEP>[](symbol){par}<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){3.000000}<LSEP>[](symbol){k}<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){*}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){k}<LEND>[](symbol){n.rho}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){temp}<LSEP>[](symbol){initial.mle}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){res}<LSEP>[](symbol){temp}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){sigma}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){bayes}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){bayes}<LSEP>[](symbol){data.comb}<LSEP>[](symbol){initial.mle}<LSEP>[](symbol){bayes.n.burn}<LSEP>[](symbol){bayes.n.sample}<LEND>[argument 4; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[](symbol){k}<LEND>[argument 5; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[](symbol){k}<LEND>[argument 6; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 7; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){n.rho}<LEND>[argument 8; assign](){<-}<LSEP>[](symbol){mu.prior.range}<LSEP>[](symbol){mu.UNIFprior.range}<LEND>[](symbol){tau.IGprior.shape}<LSEP>[](symbol){tau.IGprior.scale}<LSEP>[](symbol){sigma2.IGprior.shape}<LSEP>[](symbol){sigma2.IGprior.scale}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[](symbol){data.comb}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){9.000000}<LEND>[litteral](str){data.comb}<LEND>[statement 4; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Ending at: }<LEND>[argument 1; call](){}<LSEP>[](symbol){Sys.time}<LEND>[](symbol){res}<LEND>[assign](){<-}<LSEP>[](symbol){drw.sim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){time}<LSEP>[](symbol){n.datasets}<LSEP>[](symbol){measure.error.SD}<LSEP>[](symbol){mu}<LSEP>[](symbol){sigma}<LSEP>[](symbol){tau}<LSEP>[](symbol){rho}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LSEP>[](symbol){n.datasets}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){time}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){measure.error.SD}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){measure.error.SD}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){delta.t}<LEND>[call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){time}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){a.i}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){delta.t}<LEND>[](symbol){tau}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){mu}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){tau}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tau}<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){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){n}<LSEP>[](symbol){X}<LSEP>[](symbol){measure.error.SD}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){measure.error.SD}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){measure.error.SD}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rho.mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){upper.tri}<LSEP>[](symbol){rho.mat}<LEND>[](symbol){rho}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rho.mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){rho.mat}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){rho.mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){rho.mat}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){rho.mat}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){The resulting correlation matr...}<LEND>[statement 1; call](){}<LSEP>[](symbol){quit}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){delta.t}<LEND>[call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){time}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){a.i}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){delta.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){tau}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rho.mat}<LSEP>[](symbol){sigma}<LEND>[](symbol){sigma}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){temp}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tau}<LSEP>[](symbol){j}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){temp}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){M}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mu}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){M}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){M}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a.i}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[](symbol){mu}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[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}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){temp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){rmvnorm}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){M}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Q}<LSEP>[](symbol){i}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[](symbol){X}<LSEP>[](symbol){measure.error.SD}<LEND>[](symbol){n}<LSEP>[](symbol){k}<LEND>[](symbol){x}
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){globalVariables}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){.}<LSEP>[argument 1; litteral](str){Sign}<LSEP>[argument 2; litteral](str){Rescaled.RelWeight}<LSEP>[argument 3; litteral](str){Variables}<LSEP>[argument 4; litteral](str){Sign.Rescaled.RelWeight}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dirDWD}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dir}<LSEP>[](symbol){quiet}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){[/|\\]+$}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){dir}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){no directory is created, getwd...}<LEND>[argument 2; call](){}<LSEP>[](symbol){getwd}<LEND>[argument 3; litteral](str){'}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){getwd}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){dir}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){creating directory '}<LEND>[argument 2; call](){}<LSEP>[](symbol){normalizePath}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 3; litteral](str){'}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){adding to directory '}<LEND>[argument 2; call](){}<LSEP>[](symbol){normalizePath}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 3; litteral](str){'}<LEND>[statement 4; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){dir}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.tzupdater.globals}<LEND>[call](){}<LSEP>[](symbol){new.env}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[litteral](logical){NA}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){IANA_website}<LEND>[litteral](str){https://www.iana.org/time-zones}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){download_base_URL}<LEND>[litteral](str){https://data.iana.org/time-zon...}<LEND>[assign](){<-}<LSEP>[](symbol){.get_active_tz_db}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){OlsonNames}<LEND>[argument 1; litteral](str){Version}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){-----}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){OlsonNames}<LEND>[argument 1; litteral](str){Version}<LEND>[assign](){<-}<LSEP>[](symbol){.activate_tz}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tz_path}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){Sys.setenv}<LSEP>[](symbol){tz_path}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Active tz db:}<LEND>[argument 1; call](){}<LSEP>[](symbol){.get_active_tz_db}<LEND>[assign](){<-}<LSEP>[](symbol){.iana_not_reachable}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){==============================...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){IANA website might be unreacha...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){If it still doesn't work later...}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){==============================...}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){source}<LSEP>[argument 0; litteral](str){./R/hidden.R}<LEND>[assign](){<-}<LSEP>[](symbol){install_tz}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tgt_version}<LSEP>[](symbol){zic_path}<LSEP>[](symbol){target_folder}<LSEP>[](symbol){show_zic_log}<LSEP>[](symbol){err_stop}<LSEP>[](symbol){activate_tz}<LSEP>[](symbol){verbose}<LSEP>[](symbol){fail_if_zic_missing}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){old_path}<LEND>[call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){PATH}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){zic_found}<LSEP>[litteral](logical){FALSE}<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){zic_path}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Platform}<LSEP>[](symbol){OS.type}<LEND>[argument 1; litteral](str){windows}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.exists}<LSEP>[argument 0; litteral](str){C:\\Cygwin\\usr\\sbin}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zic_path}<LSEP>[litteral](str){C:\\Cygwin\\usr\\sbin}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){zic_path}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){Sys.setenv}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){old_path}<LSEP>[](symbol){zic_path}<LSEP>[argument 2; litteral](str){;}<LEND>[statement 4; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){system2}<LSEP>[argument 0; litteral](str){zic}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){zic_found}<LSEP>[litteral](logical){TRUE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){err}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){zic not found on your system!}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Platform}<LSEP>[](symbol){OS.type}<LEND>[argument 1; litteral](str){windows}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Please install Cygwin from htt...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Please install Linux package t...}<LEND>[statement 2; call](){}<LSEP>[](symbol){Sys.setenv}<LSEP>[](symbol){old_path}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){fail_if_zic_missing}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Installation stopped!}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){tgt_version}<LSEP>[argument 1; litteral](str){cannot be compiled because zic...}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){e}<LSEP>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unexpected error when running ...}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){zic_found}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){target_folder}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){target_tar_file}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){target_folder}<LSEP>[argument 1; litteral](str){/tzdata}<LSEP>[](symbol){tgt_version}<LSEP>[argument 3; litteral](str){.tar.gz}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){target_untar}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){target_folder}<LSEP>[argument 1; litteral](str){/}<LSEP>[](symbol){tgt_version}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){target_compiled_version}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){target_untar}<LSEP>[argument 1; litteral](str){/compiled}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){iana_files_ok}<LSEP>[litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){target_tar_file}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tz_url}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){download_base_URL}<LEND>[argument 1; litteral](str){/tzdata}<LSEP>[](symbol){tgt_version}<LSEP>[argument 3; litteral](str){.tar.gz}<LEND>[statement 1; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){download.file}<LEND>[](symbol){tz_url}<LSEP>[](symbol){target_tar_file}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){Sys.setenv}<LSEP>[](symbol){old_path}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Download }<LSEP>[](symbol){tgt_version}<LSEP>[argument 2; litteral](str){ at }<LSEP>[](symbol){tz_url}<LSEP>[argument 4; litteral](str){ failed!}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iana_files_ok}<LSEP>[litteral](logical){TRUE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){err}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iana_files_ok}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){Sys.setenv}<LSEP>[](symbol){old_path}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){404}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){err}<LSEP>[](symbol){message}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Cannot fetch requested file (4...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){last_tz}<LEND>[call](){}<LSEP>[](symbol){get_last_published_tz}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){last_tz}<LSEP>[](symbol){tgt_version}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){tgt_version}<LSEP>[argument 1; litteral](str){is not available!}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Couldn't resolve host name}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){err}<LSEP>[](symbol){message}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){IANA website is unreachable!}<LEND>[statement 1; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){err}<LSEP>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Cannot download }<LSEP>[](symbol){tz_url}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){err}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iana_files_ok}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){err}<LSEP>[](symbol){message}<LEND>[statement 2; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){A critical issue occured, prev...}<LEND>[argument 3; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){target_tar_file}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){iana_files_ok}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){unlink}<LSEP>[](symbol){target_tar_file}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){+ Unexpected warning when remo...}<LSEP>[](symbol){target_tar_file}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){+ Unexpected error when removing}<LSEP>[](symbol){target_tar_file}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iana_files_ok}<LSEP>[litteral](logical){TRUE}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){iana_files_ok}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){untar}<LEND>[](symbol){target_tar_file}<LSEP>[](symbol){target_untar}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){compilation_done}<LSEP>[litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){compilated_zones}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){zone}<LEND>[range; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){etcetera}<LSEP>[argument 1; litteral](str){southamerica}<LSEP>[argument 2; litteral](str){northamerica}<LSEP>[argument 3; litteral](str){europe}<LSEP>[argument 4; litteral](str){africa}<LSEP>[argument 5; litteral](str){antarctica}<LSEP>[argument 6; litteral](str){asia}<LSEP>[argument 7; litteral](str){australasia}<LSEP>[argument 8; litteral](str){backward}<LSEP>[argument 9; litteral](str){pacificnew}<LSEP>[argument 10; litteral](str){systemv}<LSEP>[argument 11; litteral](str){factory}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Compile}<LSEP>[](symbol){zone}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){file.exists}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){target_untar}<LSEP>[argument 1; litteral](str){/}<LSEP>[](symbol){zone}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zic_out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){zic_err}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 2; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zic_out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){system2}<LSEP>[argument 0; litteral](str){zic}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){-d }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){target_compiled_version}<LSEP>[argument 1; litteral](str){ }<LSEP>[](symbol){target_untar}<LSEP>[argument 3; litteral](str){/}<LSEP>[](symbol){zone}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){zic_err}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){zic_out}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){warning: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){zic_out}<LSEP>[](symbol){msg}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zic_err}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){w}<LSEP>[](symbol){message}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zic_err}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){e}<LSEP>[](symbol){message}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zic_out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){show_zic_log}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){zic_out}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){err_stop}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zic_err}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){zic_err}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){compilation_done}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){Sys.setenv}<LSEP>[](symbol){old_path}<LEND>[statement 3; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){zic command didn't work as exp...}<LEND>[statement 4; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[statement 5; control flow](){break}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){compilated_zones}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){compilated_zones}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false 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){%in%}<LSEP>[](symbol){zone}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){backward}<LSEP>[argument 1; litteral](str){pacificnew}<LSEP>[argument 2; litteral](str){systemv}<LSEP>[argument 3; litteral](str){factory}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ Expected }<LSEP>[](symbol){zone}<LSEP>[argument 2; litteral](str){ was not in }<LSEP>[](symbol){tgt_version}<LSEP>[argument 4; litteral](str){!}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){compilation_done}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){compilated_zones}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){tgt_version}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){target_compiled_version}<LSEP>[argument 1; litteral](str){/+VERSION}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){IANA Time Zone Database}<LSEP>[](symbol){tgt_version}<LSEP>[argument 2; litteral](str){installed in}<LEND>[argument 3; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\./}<LEND>[argument 1; call](){}<LSEP>[](symbol){getwd}<LEND>[](symbol){target_compiled_version}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){activate_tz}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.activate_tz}<LSEP>[](symbol){target_compiled_version}<LSEP>[](symbol){verbose}<LEND>[statement 3; call](){}<LSEP>[](symbol){Sys.setenv}<LSEP>[](symbol){old_path}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Cannot install tz}<LSEP>[](symbol){tgt_version}<LSEP>[argument 2; litteral](str){!}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){w}<LSEP>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unexpected warning when instal...}<LEND>[statement 2; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){e}<LSEP>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unexpected error when installi...}<LEND>[statement 2; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[assign](){<-}<LSEP>[](symbol){get_active_tz_db}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){.get_active_tz_db}<LEND>[assign](){<-}<LSEP>[](symbol){get_last_published_tz}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){OlsonDb.lastver}<LEND>[call](){}<LSEP>[](symbol){readLines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){IANA_website}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){OlsonDb.lastver}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){</span}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){OlsonDb.lastver}<LEND>[argument 1; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){<span id="version">}<LSEP>[](symbol){OlsonDb.lastver}<LEND>[argument 1; litteral](str){>}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){anno}<LEND>[call](){}<LSEP>[](symbol){try}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){substring}<LSEP>[](symbol){OlsonDb.lastver}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){anno}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Cannot retrieve latest tz data...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[litteral](str){Unknown}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[](symbol){OlsonDb.lastver}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){warnmsg}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){warnmsg}<LSEP>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Warning when retrieving the na...}<LEND>[statement 2; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[litteral](str){Unknown}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){err}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){err}<LSEP>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Error when retrieving the name...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[litteral](str){Unknown}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){w}<LSEP>[](symbol){message}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[litteral](str){Unknown}<LEND>[statement 2; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unexpected warning when fetchi...}<LEND>[statement 3; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){e}<LSEP>[](symbol){message}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[litteral](str){Unknown}<LEND>[statement 2; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unexpected error when fetching...}<LEND>[statement 3; call](){}<LSEP>[](symbol){.iana_not_reachable}<LEND>[argument 3; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.tzupdater.globals}<LSEP>[](symbol){last_tz_db}<LEND>[assign](){<-}<LSEP>[](symbol){install_last_tz}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){zic_path}<LSEP>[](symbol){target_folder}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lastver}<LEND>[call](){}<LSEP>[](symbol){get_last_published_tz}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){lastver}<LSEP>[argument 1; litteral](str){Unknown}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Please fetch the name of the l...}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_active_tz_db}<LEND>[false 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){lastver}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_active_tz_db}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Local tz database }<LEND>[argument 1; call](){}<LSEP>[](symbol){get_active_tz_db}<LEND>[argument 2; litteral](str){ outdated. Will install }<LSEP>[](symbol){lastver}<LSEP>[argument 4; litteral](str){ now.}<LEND>[statement 1; call](){}<LSEP>[](symbol){install_tz}<LSEP>[](symbol){lastver}<LSEP>[](symbol){zic_path}<LSEP>[](symbol){target_folder}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[](symbol){verbose}<LEND>[false branch; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Local tz database }<LEND>[argument 1; call](){}<LSEP>[](symbol){get_active_tz_db}<LEND>[argument 2; litteral](str){ is up to date.}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ppBS_srs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){method}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Gross}<LSEP>[argument 1; litteral](str){Booth}<LSEP>[argument 2; litteral](str){ChaoLo85}<LSEP>[argument 3; litteral](str){ChaoLo94}<LSEP>[argument 4; litteral](str){BickelFreedman}<LSEP>[argument 5; litteral](str){Sitter}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Gross}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is_wholenumber}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Gross method can be used only ...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tol}<LEND>[call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; litteral](real){0.500000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){N}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[argument 2; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[](symbol){tol}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[](symbol){tol}<LEND>[argument 4; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[](symbol){tol}<LEND>[argument 5; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[](symbol){tol}<LEND>[argument 6; call](){}<LSEP>[](symbol){floor}<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){N}<LSEP>[](symbol){n}<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){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[](symbol){n}<LEND>[](symbol){tol}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Uf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){y}<LSEP>[](symbol){k}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Vb}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){D}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){D}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Uc}<LEND>[call](){}<LSEP>[](symbol){select_Uc}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LSEP>[](symbol){method}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){U}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){Uf}<LSEP>[](symbol){Uc}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){Uc}<LEND>[argument 1; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Sitter}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tot}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){B}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sb}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){U}<LEND>[](symbol){n1}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tot}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){sb}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Vb}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){tot}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Vb}<LEND>[assign](){<-}<LSEP>[](symbol){ppBS_ups}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){method}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){x}<LSEP>[](symbol){s}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Holmberg}<LSEP>[argument 1; litteral](str){Chauvet}<LSEP>[argument 2; litteral](str){HotDeck}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){HotDeck}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){D}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){U}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){s}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){s}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xi}<LEND>[body; call](){}<LSEP>[](symbol){which.min}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){xi}<LSEP>[](symbol){xs}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){U}<LSEP>[](symbol){s}<LEND>[](symbol){y}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){j}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){xb}<LSEP>[](symbol){x}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xb}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xs}<LSEP>[](symbol){j}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){pkb}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){inclusionprobabilities}<LEND>[](symbol){xb}<LSEP>[](symbol){n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pik}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rint}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){r}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rp}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r}<LSEP>[](symbol){rint}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Uf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){y}<LSEP>[](symbol){rint}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Vb}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){D}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){D}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tot}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){B}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Holmberg}<LSEP>[argument 1; litteral](str){Chauvet}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Uc}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPpoisson}<LEND>[](symbol){rp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){U}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){Uf}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){Uc}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pkb}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){pik}<LSEP>[](symbol){rint}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pik}<LSEP>[](symbol){Uc}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Holmberg}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pkb}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){inclusionprobabilities}<LEND>[](symbol){pkb}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sb}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){pkb}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tot}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){HTestimator}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){U}<LSEP>[](symbol){sb}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pkb}<LSEP>[](symbol){sb}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Vb}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){tot}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Vb}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){generalised}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ys}<LSEP>[](symbol){pks}<LSEP>[](symbol){B}<LSEP>[](symbol){distribution}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distribution}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distribution}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ys}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ht}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){B}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pks}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distribution}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pks}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pks}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<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){exp}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pks}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pks}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[](symbol){q}<LEND>[](symbol){q}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ws}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LSEP>[](symbol){w}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ht}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ys}<LSEP>[](symbol){ws}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){HT}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){HTestimator}<LEND>[](symbol){ys}<LSEP>[](symbol){pks}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ht}<LSEP>[](symbol){HT}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){B}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){bootstrap_weights}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ys}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){method}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ys}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){N}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){RaoWuYue}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){smplFUN}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){srswr}<LEND>[](symbol){nn}<LSEP>[](symbol){N}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){den}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ChipperfieldPreston}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){smplFUN}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){srswor}<LEND>[](symbol){nn}<LSEP>[](symbol){N}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){den}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[](symbol){nn}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tot}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){B}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){smplFUN}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nn}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[](symbol){den}<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){n}<LSEP>[](symbol){m}<LEND>[](symbol){nn}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ws}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LSEP>[](symbol){w}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tot}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ws}<LSEP>[](symbol){ys}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Tot}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){ys}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; 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){tot}<LSEP>[](symbol){Tot}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){B}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is_wholenumber}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){tol}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){x}<LEND>[](symbol){tol}<LEND>[assign](){<-}<LSEP>[](symbol){select_Uc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LSEP>[](symbol){method}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Gross}<LSEP>[argument 1; litteral](str){Booth}<LSEP>[argument 2; litteral](str){ChaoLo85}<LSEP>[argument 3; litteral](str){ChaoLo94}<LSEP>[argument 4; litteral](str){BickelFreedman}<LSEP>[argument 5; litteral](str){Sitter}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){arguments}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){y}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){n}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){N}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){arguments}<LSEP>[](symbol){k}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tol}<LEND>[call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; litteral](real){0.500000}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Gross}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Booth}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){srswor}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[](symbol){n}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){s}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ChaoLo94}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){srswr}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[](symbol){n}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){s}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ChaoLo85}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){G}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){return}<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>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){x}<LEND>[](symbol){x}<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){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){G}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){G}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){G}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){G}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){y}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){BickelFreedman}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){q}<LEND>[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){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[](symbol){n}<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){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){y}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Sitter}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){N}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a1}<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){n}<LSEP>[](symbol){k}<LEND>[](symbol){n}<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){*}<LSEP>[](symbol){n}<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){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){k}<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){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){q}<LEND>[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){1.000000}<LSEP>[](symbol){f}<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){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){a2}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){a1}<LSEP>[](symbol){a2}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){y}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){AntalTille2011_ups}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ys}<LSEP>[](symbol){pks}<LSEP>[](symbol){B}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){approx_method}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){approx_method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){approx_method}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ys}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){approx_method}<LSEP>[argument 1; litteral](str){Hajek}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pks}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Dkk}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ck}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){ck}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){ck}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){approx_method}<LSEP>[argument 1; litteral](str){DevilleTille}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Dkk}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pks}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){Dkk}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){phi}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){case}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[](symbol){n1}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ht}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){B}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){case}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){define_phi}<LSEP>[](symbol){phi}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){phi}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind_not_S}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){S}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){oos}<LEND>[call](){}<LSEP>[](symbol){one_one}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind_not_S}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind_not_S}<LEND>[](symbol){oos}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ht}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){S}<LSEP>[](symbol){ys}<LEND>[](symbol){pks}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){inclusionprobabilities}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){phi}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){case}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){u}<LSEP>[](symbol){q}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){psi}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){oos}<LEND>[call](){}<LSEP>[](symbol){one_one}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind_not_S}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){S}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind_not_S}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind_not_S}<LEND>[](symbol){oos}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ht}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){S}<LSEP>[](symbol){ys}<LEND>[](symbol){pks}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){ht}<LEND>[assign](){<-}<LSEP>[](symbol){define_phi}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){phi}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){np}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){phi}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is_wholenumber}<LSEP>[](symbol){np}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){phi}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){np}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){m1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){phi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ur}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){u}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){phi1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m1}<LSEP>[](symbol){np}<LEND>[](symbol){ur}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){phi2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m2}<LSEP>[](symbol){np}<LEND>[](symbol){ur}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m1}<LSEP>[](symbol){np}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){out}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){phi1}<LSEP>[](symbol){phi2}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){one_one}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n}<LSEP>[](symbol){method}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){doubled-half}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){doubled_half}<LSEP>[](symbol){n}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){over-replacement}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind}<LEND>[litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<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){sqrt}<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>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alpha}<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){m}<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){m}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<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){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alpha}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sB}<LEND>[call](){}<LSEP>[](symbol){over_replacement}<LSEP>[](symbol){n}<LSEP>[](symbol){nt}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sA}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){rmultinom}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[](symbol){nt}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[](symbol){n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sA}<LSEP>[](symbol){sB}<LEND>[false branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Incorrect choice of method.}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){S}<LEND>[assign](){<-}<LSEP>[](symbol){doubled_half}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){sample size must be > 1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LSEP>[](symbol){n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind}<LEND>[litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind}<LEND>[litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){u}<LSEP>[argument 1; litteral](real){0.250000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind2}<LEND>[call](){}<LSEP>[](symbol){sample}<LSEP>[](symbol){ind}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind2}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){S}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){ind2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){S}<LEND>[assign](){<-}<LSEP>[](symbol){over_replacement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Population and sample size mus...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sumS}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nk}<LSEP>[](symbol){n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){integer}<LSEP>[](symbol){N}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){N}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nk}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){choose}<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){N}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nk}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nk}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){choose}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[](symbol){k}<LEND>[](symbol){nk}<LEND>[](symbol){nk}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Sk}<LEND>[call](){}<LSEP>[](symbol){sample}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sumS}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){sumS}<LSEP>[](symbol){Sk}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nk}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[](symbol){sumS}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){k}<LEND>[](symbol){Sk}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){S}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){directBS_srs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){method}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Efron}<LSEP>[argument 1; litteral](str){McCarthySnowden}<LSEP>[argument 2; litteral](str){RaoWu}<LSEP>[argument 3; litteral](str){Sitter}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){N}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Efron}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){CC}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nn}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k}<LSEP>[](symbol){n}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){McCarthySnowden}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){CC}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nn}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; 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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){RaoWu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){CC}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nn}<LSEP>[litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){Sitter}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){CC}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ff}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){nn}<LSEP>[](symbol){n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nn}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is_wholenumber}<LSEP>[](symbol){k}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){k}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){kf}<LEND>[call](){}<LSEP>[](symbol){floor}<LSEP>[](symbol){k}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){kc}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){kf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){q}<LEND>[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){1.000000}<LSEP>[](symbol){kf}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){kf}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){kc}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){rbinom}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nn}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[](symbol){u}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[](symbol){nn}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){ym}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){y}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){y1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ym}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){CC}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ym}<LSEP>[](symbol){y}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tot}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){B}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){b}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){B}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){k}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){sample}<LSEP>[](symbol){y1}<LSEP>[](symbol){nn}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tot}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[](symbol){n1}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){s}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){tot}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){bootstrapFP}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){method}<LSEP>[](symbol){design}<LSEP>[](symbol){x}<LSEP>[](symbol){s}<LSEP>[](symbol){distribution}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ppGross}<LSEP>[argument 1; litteral](str){ppBooth}<LSEP>[argument 2; litteral](str){ppChaoLo85}<LSEP>[argument 3; litteral](str){ppChaoLo94}<LSEP>[argument 4; litteral](str){ppBickelFreedman}<LSEP>[argument 5; litteral](str){ppSitter}<LSEP>[argument 6; litteral](str){ppHolmberg}<LSEP>[argument 7; litteral](str){ppChauvet}<LSEP>[argument 8; litteral](str){ppHotDeck}<LSEP>[argument 9; litteral](str){dEfron}<LSEP>[argument 10; litteral](str){dMcCarthySnowden}<LSEP>[argument 11; litteral](str){dRaoWu}<LSEP>[argument 12; litteral](str){dSitter}<LSEP>[argument 13; litteral](str){dAntalTille_UPS}<LSEP>[argument 14; litteral](str){wRaoWuYue}<LSEP>[argument 15; litteral](str){wChipperfieldPreston}<LSEP>[argument 16; litteral](str){wGeneralised}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ppHolmberg}<LSEP>[argument 1; litteral](str){ppChauvet}<LSEP>[argument 2; litteral](str){ppHotDeck}<LSEP>[argument 3; litteral](str){dAntalTille_UPS}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){design}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ppChauvet}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){design}<LSEP>[litteral](str){poisson}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){design}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ppChauvet}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){design}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){design}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){brewer}<LSEP>[argument 1; litteral](str){tille}<LSEP>[argument 2; litteral](str){maxEntropy}<LSEP>[argument 3; litteral](str){randomSystematic}<LSEP>[argument 4; litteral](str){sampford}<LSEP>[argument 5; litteral](str){poisson}<LSEP>[argument 6; litteral](str){systematic}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ppChauvet}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){design}<LSEP>[argument 1; litteral](str){poisson}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){design}<LSEP>[litteral](str){poisson}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Sampling design set to 'Poisso...}<LSEP>[argument 1; litteral](str){a different design, please cho...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){smplFUN}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){design}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPbrewer}<LEND>[argument 2; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPtille}<LEND>[argument 3; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPmaxentropy}<LEND>[argument 4; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPrandomsystematic}<LEND>[argument 5; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPsampford}<LEND>[argument 6; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPsystematic}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pik}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ss}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){ss}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sampling}<LSEP>[](symbol){UPpoisson}<LEND>[](symbol){pik}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ss}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){s}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){s}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.function}<LSEP>[](symbol){design}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){design}<LEND>[false branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Argument design is not well-sp...}<LSEP>[argument 1; litteral](str){one of the available sampling ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){wGeneralised}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distribution}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distribution}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){uniform}<LSEP>[argument 1; litteral](str){normal}<LSEP>[argument 2; litteral](str){exponential}<LSEP>[argument 3; litteral](str){lognormal}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){lp}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pik}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){pik}<LEND>[argument 1; litteral](str){numeric}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The argument 'pik' should be a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){lp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ppGross}<LSEP>[argument 1; litteral](str){ppBooth}<LSEP>[argument 2; litteral](str){ppChaoLo85}<LSEP>[argument 3; litteral](str){ppChaoLo94}<LSEP>[argument 4; litteral](str){ppBickelFreedman}<LSEP>[argument 5; litteral](str){ppSitter}<LSEP>[argument 6; litteral](str){dEfron}<LSEP>[argument 7; litteral](str){dMcCarthySnowden}<LSEP>[argument 8; litteral](str){dRaoWu}<LSEP>[argument 9; litteral](str){dSitter}<LSEP>[argument 10; litteral](str){wRaoWuYue}<LSEP>[argument 11; litteral](str){wChipperfieldPreston}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The 'pik' vector is too short!}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){pik}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pik}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Some 'pik' values are outside ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){pik}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){nan}<LSEP>[argument 2; litteral](real){inf}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The 'pik' vector contains inva...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The argument 'y' should be a n...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The 'y' vector is too short!}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){nan}<LSEP>[argument 2; litteral](real){inf}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The 'y' vector contains invali...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Some 'y' values are negative, ...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){ppHotDeck}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){s}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Arguments 'x' and 's' are requ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){s}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Arguments 's' and 'x' should h...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){s}<LEND>[](symbol){n}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Arguments 'x' and 's' should h...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Argument 'x' should be a numer...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.logical}<LSEP>[](symbol){s}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Argument 's' should be a logic...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){s}<LEND>[](symbol){n}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The number of TRUE values in t...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ppGross}<LSEP>[argument 1; litteral](str){ppBooth}<LSEP>[argument 2; litteral](str){ppChaoLo85}<LSEP>[argument 3; litteral](str){ppChaoLo94}<LSEP>[argument 4; litteral](str){ppBickelFreedman}<LSEP>[argument 5; litteral](str){ppSitter}<LSEP>[argument 6; litteral](str){dEfron}<LSEP>[argument 7; litteral](str){dMcCarthySnowden}<LSEP>[argument 8; litteral](str){dRaoWu}<LSEP>[argument 9; litteral](str){dSitter}<LSEP>[argument 10; litteral](str){wRaoWuYue}<LSEP>[argument 11; litteral](str){wChipperfieldPreston}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){pik}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){pik values should be all equal!}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pik}<LEND>[](symbol){n}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){ppBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){Gross}<LEND>[argument 2; call](){}<LSEP>[](symbol){ppBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){Booth}<LEND>[argument 3; call](){}<LSEP>[](symbol){ppBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){ChaoLo85}<LEND>[argument 4; call](){}<LSEP>[](symbol){ppBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){ChaoLo94}<LEND>[argument 5; call](){}<LSEP>[](symbol){ppBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){BickelFreedman}<LEND>[argument 6; call](){}<LSEP>[](symbol){ppBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){Sitter}<LEND>[argument 7; call](){}<LSEP>[](symbol){ppBS_ups}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){Holmberg}<LSEP>[](symbol){smplFUN}<LEND>[argument 8; call](){}<LSEP>[](symbol){ppBS_ups}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){Chauvet}<LSEP>[](symbol){smplFUN}<LEND>[argument 9; call](){}<LSEP>[](symbol){ppBS_ups}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[argument 4; litteral](str){HotDeck}<LSEP>[](symbol){smplFUN}<LSEP>[](symbol){x}<LSEP>[](symbol){s}<LEND>[argument 10; call](){}<LSEP>[](symbol){directBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[argument 3; litteral](str){Efron}<LEND>[argument 11; call](){}<LSEP>[](symbol){directBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[argument 3; litteral](str){McCarthySnowden}<LEND>[argument 12; call](){}<LSEP>[](symbol){directBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[argument 3; litteral](str){RaoWu}<LEND>[argument 13; call](){}<LSEP>[](symbol){directBS_srs}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[argument 3; litteral](str){Sitter}<LEND>[argument 14; call](){}<LSEP>[](symbol){AntalTille2011_ups}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){smplFUN}<LSEP>[argument 4; litteral](str){Hajek}<LEND>[argument 15; call](){}<LSEP>[](symbol){bootstrap_weights}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[argument 3; litteral](str){RaoWuYue}<LEND>[argument 16; call](){}<LSEP>[](symbol){bootstrap_weights}<LSEP>[](symbol){y}<LSEP>[](symbol){N}<LSEP>[](symbol){B}<LSEP>[argument 3; litteral](str){ChipperfieldPreston}<LEND>[argument 17; call](){}<LSEP>[](symbol){generalised}<LSEP>[](symbol){y}<LSEP>[](symbol){pik}<LSEP>[](symbol){B}<LSEP>[](symbol){distribution}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.onAttach}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lib}<LSEP>[](symbol){pkg}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){meta}<LEND>[call](){}<LSEP>[](symbol){packageDescription}<LSEP>[argument 0; litteral](str){mvmeta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){attachmsg}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){This is mvmeta }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){meta}<LSEP>[](symbol){Version}<LEND>[argument 2; litteral](str){. For an overview type: help('...}<LSEP>[argument 3; litteral](str){}<LEND>[statement 2; call](){}<LSEP>[](symbol){packageStartupMessage}<LSEP>[](symbol){attachmsg}<LSEP>[argument 1; litteral](NULL){NULL}<LSEP>[argument 2; litteral](logical){TRUE}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){na.exclude.data.frame.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){omit}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){omit2}<LSEP>[litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){model.response}<LSEP>[](symbol){object}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){object}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.atomic}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){next}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](integer){2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){omit}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){omit}<LSEP>[](symbol){x}<LEND>[false branch; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](integer){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](integer){2}<LEND>[body; assign](){<-}<LSEP>[](symbol){omit}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){omit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){ii}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](integer){2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){omit2}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){omit2}<LSEP>[](symbol){y}<LEND>[false branch; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](integer){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](integer){2}<LEND>[body; assign](){<-}<LSEP>[](symbol){omit2}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){omit2}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){}<LSEP>[](symbol){ii}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){omit}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){omit}<LSEP>[](symbol){omit2}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){omit}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){omit}<LSEP>[argument 1; litteral](integer){0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){omit}<LEND>[](symbol){omit}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](str){row.names}<LEND>[](symbol){omit}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](str){class}<LEND>[litteral](str){exclude}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xx}<LSEP>[argument 1; litteral](str){na.action}<LEND>[](symbol){temp}<LEND>[](symbol){xx}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){na.omit.data.frame.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){omit}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){omit2}<LSEP>[litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){model.response}<LSEP>[](symbol){object}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){object}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.atomic}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){next}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](integer){2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){omit}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){omit}<LSEP>[](symbol){x}<LEND>[false branch; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](integer){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](integer){2}<LEND>[body; assign](){<-}<LSEP>[](symbol){omit}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){omit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){ii}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](integer){2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){omit2}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){omit2}<LSEP>[](symbol){y}<LEND>[false branch; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](integer){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](integer){2}<LEND>[body; assign](){<-}<LSEP>[](symbol){omit2}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){omit2}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){}<LSEP>[](symbol){ii}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){omit}<LEND>[call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){omit}<LSEP>[](symbol){omit2}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){omit}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){omit}<LSEP>[argument 1; litteral](integer){0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){omit}<LEND>[](symbol){omit}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](str){row.names}<LEND>[](symbol){omit}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](str){class}<LEND>[litteral](str){omit}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xx}<LSEP>[argument 1; litteral](str){na.action}<LEND>[](symbol){temp}<LEND>[](symbol){xx}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.qtest.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){signif}<LEND>[call](){}<LSEP>[](symbol){symnum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pvalue}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.001000}<LSEP>[argument 2; litteral](real){0.010000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.100000}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){***}<LSEP>[argument 1; litteral](str){**}<LSEP>[argument 2; litteral](str){*}<LSEP>[argument 3; litteral](str){.}<LSEP>[argument 4; litteral](str){ }<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Q}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pvalue}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pvalue}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){pvalue}<LSEP>[](symbol){signif}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){table}<LEND>[argument 1; litteral](real){4.000000}<LEND>[litteral](str){}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; litteral](str){Uni}<LSEP>[false branch; litteral](str){Multi}<LEND>[argument 1; litteral](str){variate }<LSEP>[argument 2; litteral](str){Cochran Q-test for }<LEND>[argument 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){residual}<LEND>[true branch; litteral](str){residual }<LEND>[argument 4; litteral](str){heterogeneity}<LSEP>[argument 5; litteral](str){\n}<LSEP>[argument 6; litteral](str){}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nOverall test:}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Q = }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){ (df = }<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 4; litteral](str){), p-value = }<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pvalue}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 6; litteral](str){\n}<LSEP>[argument 7; litteral](str){}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nTests on single outcome para...}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){---\nSignif. codes: }<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){signif}<LSEP>[argument 1; litteral](str){legend}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){sumlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){list}<LEND>[body; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){res}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){list}<LSEP>[](symbol){i}<LEND>[](symbol){res}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Call: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){\n}<LEND>[argument 2; litteral](str){\n\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fixed-effects coefficients:}<LSEP>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coefficients}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){m}<LEND>[argument 1; litteral](str){ studies, }<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){nall}<LEND>[argument 3; litteral](str){ observations, }<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){fixed}<LEND>[argument 5; litteral](str){ fixed and }<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){random}<LEND>[argument 7; litteral](str){ random-effects parameters}<LSEP>[argument 8; litteral](str){\n}<LSEP>[argument 9; litteral](str){}<LEND>[statement 6; control flow](){if}<LSEP>[condition; assign](){<-}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){na.action}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ (}<LSEP>[](symbol){na}<LSEP>[argument 2; litteral](str){ stud}<LEND>[argument 3; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){na}<LSEP>[argument 1; litteral](integer){1}<LEND>[argument 1; litteral](str){ies}<LSEP>[argument 2; litteral](str){y}<LEND>[argument 4; litteral](str){ removed due to missingness}<LSEP>[argument 5; litteral](str){)\n}<LSEP>[argument 6; litteral](str){}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mm}<LSEP>[argument 1; litteral](str){vc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){logLik}<LEND>[argument 1; call](){}<LSEP>[](symbol){AIC}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){BIC}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){logLik}<LSEP>[argument 1; litteral](str){AIC}<LSEP>[argument 2; litteral](str){BIC}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){formatC}<LSEP>[](symbol){table}<LSEP>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){iter.igls}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Psi}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){npar}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){indMat}<LEND>[call](){}<LSEP>[](symbol){xpndMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){npar}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){eSigmalist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){Sigmalist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Sigma}<LEND>[body; call](){}<LSEP>[](symbol){%x%}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){Sigma}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){flist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){S}<LSEP>[](symbol){X}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){S}<LEND>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){Xlist}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Zlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){nalist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indMat}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){npar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){z}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){cbind}<LSEP>[](symbol){Z}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){eUlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){eSigmalist}<LSEP>[](symbol){chol}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){inveUlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){eUlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){U}<LEND>[body; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){U}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){invteUZlist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){inveU}<LSEP>[](symbol){Z}<LEND>[body; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){inveU}<LSEP>[](symbol){Z}<LEND>[](symbol){inveUlist}<LSEP>[](symbol){Zlist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){invteUflist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){inveU}<LSEP>[](symbol){f}<LEND>[body; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){inveU}<LSEP>[](symbol){f}<LEND>[](symbol){inveUlist}<LSEP>[](symbol){flist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){invteUZ}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){invteUZlist}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){invteUf}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){invteUflist}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.solve}<LSEP>[](symbol){invteUZ}<LSEP>[](symbol){invteUf}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){xpndMat}<LSEP>[](symbol){theta}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){eig}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){Psi}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[statement 16; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){vectors}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){summary.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){ci.level}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ci.level}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){ci.level}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ci.level' must be within 0 and 1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dim}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){coef}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){coef.se}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){vcov}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zval}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){coef}<LSEP>[](symbol){coef.se}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){zvalci}<LEND>[call](){}<LSEP>[](symbol){qnorm}<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}<LSEP>[](symbol){ci.level}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){pvalue}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<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){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){zval}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){ci.lb}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){zvalci}<LSEP>[](symbol){coef.se}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ci.ub}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){zvalci}<LSEP>[](symbol){coef.se}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){cilab}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){signif}<LSEP>[](symbol){ci.level}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; litteral](str){%ci.}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lb}<LSEP>[argument 1; litteral](str){ub}<LEND>[argument 3; litteral](str){}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){tabfixed}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){coef}<LSEP>[](symbol){coef.se}<LSEP>[](symbol){zval}<LSEP>[](symbol){pvalue}<LSEP>[](symbol){ci.lb}<LSEP>[](symbol){ci.ub}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){tabfixed}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){vcov}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lab}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Estimate}<LSEP>[argument 1; litteral](str){Std. Error}<LSEP>[argument 2; litteral](str){z}<LSEP>[argument 3; litteral](str){Pr(>|z|)}<LSEP>[](symbol){cilab}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){corFixed}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){outer}<LSEP>[](symbol){coef.se}<LSEP>[](symbol){coef.se}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){corRandom}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){fixed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ran.sd}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){Psi}<LEND>[statement 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){outer}<LSEP>[](symbol){ran.sd}<LSEP>[](symbol){ran.sd}<LEND>[false branch; litteral](NULL){NULL}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){qstat}<LEND>[call](){}<LSEP>[](symbol){unclass}<LEND>[argument 0; call](){}<LSEP>[](symbol){qtest}<LSEP>[](symbol){object}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){keep}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){vcov}<LSEP>[argument 1; litteral](str){Psi}<LSEP>[argument 2; litteral](str){bscov}<LSEP>[argument 3; litteral](str){df.res}<LSEP>[argument 4; litteral](str){rank}<LSEP>[argument 5; litteral](str){logLik}<LSEP>[argument 6; litteral](str){converged}<LSEP>[argument 7; litteral](str){niter}<LSEP>[argument 8; litteral](str){negeigen}<LSEP>[argument 9; litteral](str){method}<LSEP>[argument 10; litteral](str){dim}<LSEP>[argument 11; litteral](str){df}<LSEP>[argument 12; litteral](str){lab}<LSEP>[argument 13; litteral](str){na.action}<LSEP>[argument 14; litteral](str){call}<LSEP>[argument 15; litteral](str){terms}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){object}<LEND>[argument 2; litteral](integer){0}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){tabfixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){object}<LSEP>[](symbol){keep}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){AIC}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){BIC}<LSEP>[](symbol){object}<LEND>[](symbol){corFixed}<LSEP>[](symbol){corRandom}<LSEP>[](symbol){qstat}<LSEP>[](symbol){ci.level}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){out}<LEND>[litteral](str){summary.mvmeta}<LEND>[](symbol){out}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mlprof.fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){ctrl}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){par2Psi}<LSEP>[](symbol){par}<LSEP>[](symbol){k}<LSEP>[](symbol){bscov}<LSEP>[](symbol){ctrl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pconst}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pres}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pdet}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){Ulist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){U}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){U}<LEND>[statement 5; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pconst}<LSEP>[](symbol){pdet}<LEND>[](symbol){pres}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.control}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){optim}<LSEP>[](symbol){showiter}<LSEP>[](symbol){maxiter}<LSEP>[](symbol){initPsi}<LSEP>[](symbol){Psifix}<LSEP>[](symbol){Psicor}<LSEP>[](symbol){Scor}<LSEP>[](symbol){inputna}<LSEP>[](symbol){inputvar}<LSEP>[](symbol){igls.iter}<LSEP>[](symbol){hessian}<LSEP>[](symbol){vc.adj}<LSEP>[](symbol){reltol}<LSEP>[](symbol){set.negeigen}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){optim}<LEND>[call](){}<LSEP>[](symbol){modifyList}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){maxiter}<LSEP>[](symbol){reltol}<LEND>[](symbol){optim}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){showiter}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){optim}<LSEP>[](symbol){trace}<LEND>[litteral](real){6.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){optim}<LSEP>[](symbol){REPORT}<LEND>[litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){igls.iter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'igls.iter' in the control lis...}<LEND>[statement 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){optim}<LSEP>[](symbol){showiter}<LSEP>[](symbol){maxiter}<LSEP>[](symbol){hessian}<LSEP>[](symbol){initPsi}<LSEP>[](symbol){Psifix}<LSEP>[](symbol){Psicor}<LSEP>[](symbol){Scor}<LSEP>[](symbol){inputna}<LSEP>[](symbol){inputvar}<LSEP>[](symbol){igls.iter}<LSEP>[](symbol){vc.adj}<LSEP>[](symbol){reltol}<LSEP>[](symbol){set.negeigen}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){checkPD}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mat}<LSEP>[](symbol){k}<LSEP>[](symbol){label}<LEND>[body; 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){dim}<LSEP>[](symbol){mat}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){wrong dimensions for '}<LSEP>[](symbol){label}<LSEP>[argument 2; litteral](str){'}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){eig}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){mat}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){values for '}<LSEP>[](symbol){label}<LSEP>[argument 2; litteral](str){' do not produce a positive-de...}<LSEP>[argument 3; litteral](str){}<LEND>[](symbol){mat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){formula}<LSEP>[](symbol){S}<LSEP>[](symbol){data}<LSEP>[](symbol){subset}<LSEP>[](symbol){method}<LSEP>[](symbol){bscov}<LSEP>[](symbol){model}<LSEP>[](symbol){contrasts}<LSEP>[](symbol){offset}<LSEP>[](symbol){na.action}<LSEP>[](symbol){control}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){call}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mcall}<LEND>[call](){}<LSEP>[](symbol){match.call}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mn}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){formula}<LSEP>[argument 1; litteral](str){data}<LSEP>[argument 2; litteral](str){subset}<LSEP>[argument 3; litteral](str){weights}<LSEP>[argument 4; litteral](str){na.action}<LSEP>[argument 5; litteral](str){offset}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){mcall}<LEND>[argument 2; litteral](integer){0}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mcall}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mcall}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](integer){1}<LSEP>[](symbol){mn}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mcall}<LSEP>[](symbol){drop.unused.levels}<LEND>[litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mcall}<LSEP>[argument 1; litteral](integer){1}<LEND>[call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){model.frame}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){data}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LEND>[argument 0; call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){formula}<LEND>[](symbol){data}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){formula}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){formula}<LEND>[argument 1; litteral](integer){499}<LEND>[argument 1; litteral](str){~ 1}<LEND>[argument 1; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){environment}<LSEP>[](symbol){formula}<LEND>[call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){call}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mcall}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){formula}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){data}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){environment}<LSEP>[](symbol){formula}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mcall}<LSEP>[](symbol){na.action}<LEND>[litteral](str){na.pass}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){mcall}<LEND>[argument 1; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){data.frame.mvmeta}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){mf}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){na.action}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){na.action}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){na.action}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){na.action}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){na.action}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mf}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){model.frame}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){mf}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.empty.model}<LSEP>[](symbol){mf}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){empty model not allowed}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){fixed}<LSEP>[argument 1; litteral](str){ml}<LSEP>[argument 2; litteral](str){reml}<LSEP>[argument 3; litteral](str){mm}<LSEP>[argument 4; litteral](str){vc}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){bscov}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){bscov}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){unstr}<LSEP>[argument 1; litteral](str){diag}<LSEP>[argument 2; litteral](str){id}<LSEP>[argument 3; litteral](str){cs}<LSEP>[argument 4; litteral](str){hcs}<LSEP>[argument 5; litteral](str){ar1}<LSEP>[argument 6; litteral](str){prop}<LSEP>[argument 7; litteral](str){cor}<LSEP>[argument 8; litteral](str){fixed}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){bscov}<LSEP>[argument 1; litteral](str){unstr}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ml}<LSEP>[argument 1; litteral](str){reml}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){structured Psi only available ...}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){terms}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){terms}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.response}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){numeric}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){terms}<LSEP>[](symbol){mf}<LSEP>[](symbol){contrasts}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){offset}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.offset}<LSEP>[](symbol){mf}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){offset}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){offset}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){number of offsets should equal...}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){S}<LEND>[](symbol){data}<LEND>[argument 2; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){mkS}<LSEP>[](symbol){S}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){na.action}<LEND>[argument 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){subset}<LEND>[true branch; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){subset}<LEND>[](symbol){data}<LEND>[argument 2; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](integer){2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){less than 2 valid studies afte...}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){mvmeta.fit}<LSEP>[](symbol){X}<LSEP>[](symbol){y}<LSEP>[](symbol){S}<LSEP>[](symbol){offset}<LSEP>[](symbol){method}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){model}<LEND>[control flow](){if}<LSEP>[](symbol){model}<LSEP>[](symbol){mf}<LSEP>[false branch; litteral](NULL){NULL}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){S}<LEND>[](symbol){S}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){na.action}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){na.action}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){call}<LEND>[](symbol){call}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){formula}<LEND>[](symbol){formula}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){terms}<LEND>[](symbol){terms}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){contrasts}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](str){contrasts}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){xlevels}<LEND>[call](){}<LSEP>[](symbol){.getXlevels}<LSEP>[](symbol){terms}<LSEP>[](symbol){mf}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){fit}<LEND>[litteral](str){mvmeta}<LEND>[](symbol){fit}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvSim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){nsim}<LSEP>[](symbol){mu}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){posdeftol}<LSEP>[](symbol){drop}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mu}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){eigen}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ev}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eigen}<LSEP>[](symbol){values}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){ev}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){posdeftol}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){ev}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){lack of positive definiteness}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[](symbol){nsim}<LEND>[](symbol){nsim}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){drop}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eigen}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax}<LSEP>[](symbol){ev}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){X}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){drop}<LEND>[true branch; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){sim}<LEND>[false branch; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){sim}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mkS}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){S}<LSEP>[](symbol){y}<LSEP>[](symbol){narm}<LSEP>[](symbol){subset}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mes}<LSEP>[litteral](str){incorrect dimensions for 'S'}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){S}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){S}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){S}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){S}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](integer){3}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){S}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){vechMat}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){subset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){subset}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){narm}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){narm}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 4; 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){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[](symbol){mes}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){S}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){S}<LSEP>[](symbol){as.matrix}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){subset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){subset}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){narm}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){narm}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){S}<LEND>[](symbol){m}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[](symbol){mes}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){S}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[](symbol){mes}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){S}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](integer){1}<LEND>[true branch; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){S}<LSEP>[](symbol){vechMat}<LEND>[false branch; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){S}<LSEP>[](symbol){vechMat}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){y}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nk}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){y}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){S}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nk}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){k}<LEND>[](symbol){nk}<LEND>[false branch; call](){}<LSEP>[](symbol){vechMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){outer}<LSEP>[](symbol){nk}<LSEP>[](symbol){nk}<LSEP>[](symbol){paste}<LSEP>[argument 3; litteral](str){.}<LEND>[false branch; litteral](NULL){NULL}<LEND>[](symbol){S}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remlprof.gr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){ctrl}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){L}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){L}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){L}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){par}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){U}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){L}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){U}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tXWXlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUXlist}<LEND>[](symbol){crossprod}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tXWXtot}<LEND>[call](){}<LSEP>[](symbol){sumlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUXlist}<LEND>[](symbol){crossprod}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){invtXWXtot}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){tXWXtot}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){invSigmalist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invUlist}<LEND>[](symbol){tcrossprod}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){y}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){ind1}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){ind2}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[statement 12; call](){}<LSEP>[](symbol){gradchol.reml}<LSEP>[](symbol){par}<LSEP>[](symbol){U}<LSEP>[](symbol){invtXWXtot}<LSEP>[](symbol){ind1}<LSEP>[](symbol){ind2}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){invSigmalist}<LSEP>[](symbol){reslist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gradchol.reml}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){U}<LSEP>[](symbol){invtXWXtot}<LSEP>[](symbol){ind1}<LSEP>[](symbol){ind2}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){invSigmalist}<LSEP>[](symbol){reslist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){grad}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){par}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A}<LEND>[assign](){<-}<LSEP>[](symbol){B}<LEND>[assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind1}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){C}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){C}<LSEP>[](symbol){B}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gr}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){invSigma}<LSEP>[](symbol){res}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){E}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){invSigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[](symbol){invSigma}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){res}<LSEP>[](symbol){E}<LEND>[](symbol){res}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){invSigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){invtXWXtot}<LEND>[argument 1; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){X}<LSEP>[](symbol){E}<LEND>[](symbol){X}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){F}<LSEP>[](symbol){G}<LEND>[](symbol){H}<LEND>[](symbol){Xlist}<LSEP>[](symbol){invSigmalist}<LSEP>[](symbol){reslist}<LSEP>[](symbol){nalist}<LEND>[](symbol){grad}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){extractAIC.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){df}<LEND>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){AIC}<LSEP>[](symbol){object}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.fixed}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){control}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){qrinvtUX}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){qr.R}<LSEP>[](symbol){qrinvtUX}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Qty}<LEND>[call](){}<LSEP>[](symbol){qr.qty}<LSEP>[](symbol){qrinvtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LSEP>[litteral](NULL){NULL}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){fitted}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Xlist}<LSEP>[argument 1; litteral](str){%*%}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){rank}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrinvtUX}<LSEP>[](symbol){rank}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){pconst}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){pres}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){pdet}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){Ulist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){U}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){U}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){logLik}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pconst}<LSEP>[](symbol){pdet}<LEND>[](symbol){pres}<LEND>[statement 13; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){vcov}<LSEP>[](symbol){res}<LSEP>[](symbol){fitted}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LSEP>[](symbol){rank}<LEND>[](symbol){rank}<LSEP>[](symbol){logLik}<LSEP>[](symbol){control}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){qtest.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){int}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[argument 1; litteral](str){intercept}<LEND>[argument 1; litteral](integer){1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.response}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){numeric}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){object}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){S}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nay}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){dim}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Xlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){%x%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ylist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){inputcov}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){control}<LEND>[](symbol){Scor}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Slist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){xpndMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nalist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){with}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LSEP>[](symbol){fixed}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){S}<LSEP>[](symbol){X}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){comp}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){comp}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){as.vector}<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){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){S}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){comp}<LEND>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){nalist}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){nay}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){p}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){pvalue}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Q}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Q}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){i}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Q}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pvalue}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){.all}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){qstat}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){Q}<LSEP>[](symbol){df}<LSEP>[](symbol){pvalue}<LEND>[argument 3; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){p}<LEND>[](symbol){int}<LEND>[argument 1; litteral](integer){0}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dim}<LSEP>[](symbol){k}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){qstat}<LEND>[litteral](str){qtest.mvmeta}<LEND>[](symbol){qstat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){glsfit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[](symbol){onlycoef}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Sigmalist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){S}<LSEP>[](symbol){na}<LEND>[body; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Ulist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Sigmalist}<LSEP>[](symbol){chol}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){invUlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Ulist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){U}<LEND>[body; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){U}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){invtUXlist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){invU}<LSEP>[](symbol){X}<LEND>[body; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){invU}<LSEP>[](symbol){X}<LEND>[](symbol){invUlist}<LSEP>[](symbol){Xlist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){invtUylist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){invU}<LSEP>[](symbol){y}<LEND>[body; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){invU}<LSEP>[](symbol){y}<LEND>[](symbol){invUlist}<LSEP>[](symbol){ylist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){invtUX}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){invtUXlist}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){invtUy}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){invtUylist}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.solve}<LSEP>[](symbol){invtUX}<LSEP>[](symbol){invtUy}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){onlycoef}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){coef}<LEND>[statement 9; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){coef}<LSEP>[](symbol){Sigmalist}<LSEP>[](symbol){Ulist}<LSEP>[](symbol){invUlist}<LSEP>[](symbol){invtUXlist}<LSEP>[](symbol){invtUX}<LSEP>[](symbol){invtUy}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){par2Psi}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){k}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){bscov}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){L}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){L}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){L}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){par}<LEND>[statement 2; call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){L}<LEND>[argument 2; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){par}<LEND>[](symbol){k}<LEND>[argument 3; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LSEP>[argument 1; litteral](real){2.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){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){R}<LEND>[litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){R}<LEND>[argument 5; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; 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){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){R}<LEND>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){k}<LEND>[statement 3; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){D}<LSEP>[](symbol){R}<LEND>[](symbol){D}<LEND>[argument 6; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cor}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){plogis}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){cor}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){outer}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](str){-}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[](symbol){k}<LEND>[statement 3; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){D}<LSEP>[](symbol){R}<LEND>[](symbol){D}<LEND>[argument 7; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psifix}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){fix}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){Psifix}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){fix}<LEND>[](symbol){fix}<LEND>[false branch; call](){}<LSEP>[](symbol){xpndMat}<LSEP>[](symbol){fix}<LEND>[false branch; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){k}<LEND>[statement 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){par}<LEND>[](symbol){Psifix}<LEND>[argument 8; call](){}<LSEP>[](symbol){inputcov}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){par}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){Psicor}<LEND>[argument 9; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psifix}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){fix}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){Psifix}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){fix}<LEND>[](symbol){fix}<LEND>[false branch; call](){}<LSEP>[](symbol){xpndMat}<LSEP>[](symbol){fix}<LEND>[false branch; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[](symbol){Psifix}<LEND>[](symbol){Psi}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){vcov.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.reml}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){par}<LEND>[call](){}<LSEP>[](symbol){initpar}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fn}<LSEP>[](symbol){remlprof.fn}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gr}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){bscov}<LSEP>[argument 1; litteral](str){unstr}<LEND>[](symbol){remlprof.gr}<LSEP>[false branch; litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){opt}<LEND>[call](){}<LSEP>[](symbol){optim}<LSEP>[](symbol){par}<LSEP>[](symbol){fn}<LSEP>[](symbol){gr}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LSEP>[argument 13; litteral](str){BFGS}<LEND>[argument 14; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){optim}<LEND>[argument 15; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){hessian}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){par2Psi}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){par}<LEND>[](symbol){k}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){qrinvtUX}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){qr.R}<LSEP>[](symbol){qrinvtUX}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Qty}<LEND>[call](){}<LSEP>[](symbol){qr.qty}<LSEP>[](symbol){qrinvtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){res}<LSEP>[litteral](NULL){NULL}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){fitted}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Xlist}<LSEP>[argument 1; litteral](str){%*%}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rank}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrinvtUX}<LSEP>[](symbol){rank}<LEND>[statement 13; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){vcov}<LSEP>[](symbol){Psi}<LSEP>[](symbol){res}<LSEP>[](symbol){fitted}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LSEP>[](symbol){rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){par}<LEND>[](symbol){rank}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){value}<LEND>[argument 8; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){convergence}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 9; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){par}<LEND>[argument 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){hessian}<LEND>[true branch; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){hessian}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){counts}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){control}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmetaSim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){S}<LSEP>[](symbol){Psi}<LSEP>[](symbol){sd}<LSEP>[](symbol){cor}<LSEP>[](symbol){nsim}<LSEP>[](symbol){seed}<LSEP>[](symbol){posdeftol}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){posdeftol}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){posdeftol}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){exists}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){.GlobalEnv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[true branch; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){seed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){RNGstate}<LEND>[call](){}<LSEP>[](symbol){get}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){.GlobalEnv}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R.seed}<LEND>[call](){}<LSEP>[](symbol){get}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){.GlobalEnv}<LEND>[statement 1; call](){}<LSEP>[](symbol){set.seed}<LSEP>[](symbol){seed}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){RNGstate}<LEND>[call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){seed}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){RNGkind}<LEND>[statement 3; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){assign}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){R.seed}<LSEP>[](symbol){.GlobalEnv}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){missing values not allowed in 'y'}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){mkS}<LSEP>[](symbol){S}<LSEP>[](symbol){y}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){S}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){missing values not allowed in 'S'}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){Psi}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){sd}<LEND>[argument 1; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){cor}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'Psi' or 'sd'-'cor' must be pr...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){inputcov}<LSEP>[](symbol){sd}<LSEP>[](symbol){cor}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){Psi}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){xpndMat}<LSEP>[](symbol){Psi}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){checkPD}<LSEP>[](symbol){Psi}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](str){Psi}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){cbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mvSim}<LSEP>[](symbol){nsim}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){xpndMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){Psi}<LEND>[](symbol){posdeftol}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){sim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sim}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[](symbol){T}<LEND>[argument 3; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){y}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nsim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){sim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){sim}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.summary.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){methodname}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){reml}<LSEP>[argument 1; litteral](str){ml}<LSEP>[argument 2; litteral](str){fixed}<LSEP>[argument 3; litteral](str){mm}<LSEP>[argument 4; litteral](str){vc}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){methodlabel}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){REML}<LSEP>[argument 1; litteral](str){ML}<LSEP>[argument 2; litteral](str){Fixed}<LSEP>[argument 3; litteral](str){Method of moments}<LSEP>[argument 4; litteral](str){Variance components}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){bscovname}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){unstr}<LSEP>[argument 1; litteral](str){diag}<LSEP>[argument 2; litteral](str){id}<LSEP>[argument 3; litteral](str){cs}<LSEP>[argument 4; litteral](str){hcs}<LSEP>[argument 5; litteral](str){ar1}<LSEP>[argument 6; litteral](str){prop}<LSEP>[argument 7; litteral](str){cor}<LSEP>[argument 8; litteral](str){fixed}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){bscovlabel}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){General positive-definite}<LSEP>[argument 1; litteral](str){Diagonal}<LSEP>[argument 2; litteral](str){Multiple of identity}<LSEP>[argument 3; litteral](str){Compound symmetry}<LSEP>[argument 4; litteral](str){Heterogeneous compound symmetry}<LSEP>[argument 5; litteral](str){Autoregressive of first order}<LSEP>[argument 6; litteral](str){Proportional to fixed matrix}<LSEP>[argument 7; litteral](str){Fixed correlation}<LSEP>[argument 8; litteral](str){Fixed}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){int}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){terms}<LEND>[argument 1; litteral](str){intercept}<LEND>[argument 1; litteral](integer){1}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Call: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){\n}<LEND>[argument 2; litteral](str){\n\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; litteral](str){Uni}<LSEP>[false branch; litteral](str){Multi}<LEND>[argument 1; litteral](str){variate }<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){fixed}<LEND>[argument 1; litteral](str){fixed}<LSEP>[argument 2; litteral](str){random}<LEND>[argument 3; litteral](str){-effects meta-}<LEND>[argument 4; call](){}<LSEP>[](symbol){ifelse}<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){x}<LSEP>[](symbol){dim}<LEND>[](symbol){p}<LEND>[](symbol){int}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){regression}<LSEP>[argument 2; litteral](str){analysis}<LEND>[argument 5; litteral](str){\n}<LSEP>[argument 6; litteral](str){}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Dimension: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 2; litteral](str){\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){fixed}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Estimation method: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methodlabel}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[](symbol){methodname}<LEND>[argument 2; litteral](str){\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fixed-effects coefficients}<LSEP>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){signif}<LEND>[call](){}<LSEP>[](symbol){symnum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coefficients}<LEND>[](symbol){}<LSEP>[argument 2; litteral](str){Pr(>|z|)}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.001000}<LSEP>[argument 2; litteral](real){0.010000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.100000}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){***}<LSEP>[argument 1; litteral](str){**}<LSEP>[argument 2; litteral](str){*}<LSEP>[argument 3; litteral](str){.}<LSEP>[argument 4; litteral](str){ }<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tabletot}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coefficients}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tabletot}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){tabletot}<LSEP>[](symbol){signif}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){tabletot}<LEND>[argument 1; litteral](real){7.000000}<LEND>[litteral](str){}<LEND>[statement 15; 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){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){p}<LEND>[](symbol){int}<LEND>[argument 1; litteral](integer){0}<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){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tabletot}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){tabletot}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 16; 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){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){p}<LEND>[](symbol){int}<LEND>[argument 1; litteral](integer){0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){p}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){seq}<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){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<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){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[](symbol){p}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabletot}<LSEP>[](symbol){ind}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){p}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){:}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 17; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){---\nSignif. codes: }<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){signif}<LSEP>[argument 1; litteral](str){legend}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){fixed}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Between-study random-effects (...}<LSEP>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){}<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){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Structure: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bscovlabel}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bscov}<LEND>[](symbol){bscovname}<LEND>[argument 2; litteral](str){\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sd}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Psi}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){sd}<LEND>[litteral](str){}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){corRan}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){corRandom}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){corRan}<LEND>[argument 1; call](){}<LSEP>[](symbol){upper.tri}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){corRan}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){corRan}<LEND>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){corRan}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){corRan}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){corRan}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){corRan}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[](symbol){corRan}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){corRan}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Corr}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){corRan}<LEND>[argument 1; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){NA}<LSEP>[](symbol){corRan}<LEND>[litteral](str){}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){corRan}<LSEP>[litteral](NULL){NULL}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){sd}<LSEP>[](symbol){corRan}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](real){2.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){negeigen}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){negeigen}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){(Note: Truncated estimate - }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){negeigen}<LEND>[argument 2; litteral](str){ negative eigenvalues set to 0)}<LSEP>[argument 3; litteral](str){\n}<LSEP>[argument 4; litteral](str){}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){Q}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){pvalue}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){pvalue}<LEND>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){formatC}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax}<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){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){Q}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 22; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){Uni}<LSEP>[false branch; litteral](str){Multi}<LEND>[argument 1; litteral](str){variate }<LSEP>[argument 2; litteral](str){Cochran Q-test for }<LEND>[argument 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){residual}<LEND>[true branch; litteral](str){residual }<LEND>[argument 4; litteral](str){heterogeneity:}<LSEP>[argument 5; litteral](str){\n}<LSEP>[argument 6; litteral](str){}<LEND>[statement 23; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Q = }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){ (df = }<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qstat}<LEND>[](symbol){df}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 4; litteral](str){), p-value = }<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pvalue}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 6; litteral](str){\n}<LSEP>[argument 7; litteral](str){}<LEND>[statement 24; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){I-square statistic = }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){i2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){%}<LSEP>[argument 3; litteral](str){\n\n}<LSEP>[argument 4; litteral](str){}<LEND>[statement 25; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[](symbol){m}<LEND>[argument 1; litteral](str){ studies, }<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){nall}<LEND>[argument 3; litteral](str){ observations, }<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){fixed}<LEND>[argument 5; litteral](str){ fixed and }<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[](symbol){random}<LEND>[argument 7; litteral](str){ random-effects parameters}<LSEP>[argument 8; litteral](str){\n}<LSEP>[argument 9; litteral](str){}<LEND>[statement 26; control flow](){if}<LSEP>[condition; assign](){<-}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){na.action}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){(}<LSEP>[](symbol){na}<LSEP>[argument 2; litteral](str){ stud}<LEND>[argument 3; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){na}<LSEP>[argument 1; litteral](integer){1}<LEND>[argument 1; litteral](str){ies}<LSEP>[argument 2; litteral](str){y}<LEND>[argument 4; litteral](str){ removed due to missingness}<LSEP>[argument 5; litteral](str){)\n}<LSEP>[argument 6; litteral](str){}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){mm}<LSEP>[argument 1; litteral](str){vc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){logLik}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){AIC}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){BIC}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){logLik}<LSEP>[argument 1; litteral](str){AIC}<LSEP>[argument 2; litteral](str){BIC}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){formatC}<LSEP>[](symbol){table}<LSEP>[](symbol){digits}<LSEP>[argument 2; litteral](str){f}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 28; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){y}<LSEP>[](symbol){S}<LSEP>[](symbol){offset}<LSEP>[](symbol){method}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){control}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){mvmeta.control}<LSEP>[](symbol){control}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nay}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){X}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nall}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){nay}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nk}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){y}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](integer){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nk}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nk}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](str){}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){nm}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){y}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){np}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){X}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){inputna}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){augdata}<LEND>[call](){}<LSEP>[](symbol){inputna}<LSEP>[](symbol){y}<LSEP>[](symbol){S}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){inputvar}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){augdata}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){augdata}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){nay}<LEND>[litteral](logical){FALSE}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){offset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LSEP>[](symbol){offset}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){Xlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){%x%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ylist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){nalist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){k}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){inputcov}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){Scor}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){Slist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Si}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){xpndMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Si}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){missing pattern in 'y' and S' ...}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){Si}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){fun}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){mvmeta}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){.}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){fun}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){converged}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){convergence not reached after ...}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){method}<LEND>[](symbol){method}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){bscov}<LEND>[](symbol){bscov}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){offset}<LEND>[](symbol){offset}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){dim}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){reml}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){rank}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){df.residual}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){rank}<LEND>[argument 4; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){fixed}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){df.residual}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){nk}<LSEP>[](symbol){np}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){k}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){temp}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){nay}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){temp}<LSEP>[](symbol){m}<LSEP>[](symbol){k}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){offset}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LSEP>[](symbol){offset}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[](symbol){offset}<LEND>[statement 31; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){fixed}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){nk}<LSEP>[](symbol){nk}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coefficients}<LEND>[](symbol){np}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){np}<LSEP>[](symbol){np}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){residuals}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[](symbol){nm}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coefficients}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coefficients}<LEND>[](symbol){p}<LSEP>[](symbol){k}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){np}<LSEP>[](symbol){nk}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){vcov}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){nk}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){np}<LSEP>[](symbol){k}<LEND>[argument 2; litteral](str){.}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){residuals}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fitted.values}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){nm}<LSEP>[](symbol){nk}<LEND>[](symbol){fit}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){model.matrix.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){xlevels}<LEND>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){NextMethod}<LSEP>[argument 0; litteral](str){model.matrix}<LSEP>[](symbol){data}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){contrasts}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){model.frame.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){formula}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dots}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nargs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dots}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){data}<LSEP>[argument 1; litteral](str){na.action}<LSEP>[argument 2; litteral](str){subset}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dots}<LEND>[argument 2; litteral](integer){0}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nargs}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formula}<LSEP>[](symbol){model}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fcall}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formula}<LSEP>[](symbol){call}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fcall}<LSEP>[](symbol){method}<LEND>[litteral](str){model.frame}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fcall}<LSEP>[argument 1; litteral](integer){1}<LEND>[call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){mvmeta}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fcall}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nargs}<LEND>[](symbol){nargs}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){env}<LEND>[call](){}<LSEP>[](symbol){environment}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formula}<LSEP>[](symbol){terms}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){env}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){env}<LEND>[call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 6; call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){fcall}<LSEP>[](symbol){env}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formula}<LSEP>[](symbol){model}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){fbtr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){A}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){btrA}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){A}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){btrA}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){btrA}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){ind}<LSEP>[](symbol){ind}<LEND>[](symbol){btrA}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remlprof.fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){ctrl}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){par2Psi}<LSEP>[](symbol){par}<LSEP>[](symbol){k}<LSEP>[](symbol){bscov}<LSEP>[](symbol){ctrl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pconst}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pres}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pdet1}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){Ulist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){U}<LEND>[body; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){U}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tXWXtot}<LEND>[call](){}<LSEP>[](symbol){sumlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUXlist}<LEND>[](symbol){crossprod}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pdet2}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){tXWXtot}<LEND>[statement 7; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pconst}<LSEP>[](symbol){pdet1}<LEND>[](symbol){pdet2}<LEND>[](symbol){pres}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){coef.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){format}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){format}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){format}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){vector}<LSEP>[argument 1; litteral](str){matrix}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){coef}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){coef}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){coef}<LEND>[argument 2; litteral](str){.}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){coef}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coef}<LEND>[](symbol){names}<LEND>[](symbol){coef}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){nobs.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){df}<LEND>[](symbol){nobs}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mlprof.gr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){ctrl}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){L}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){L}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){L}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){par}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){U}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){L}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){U}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){invSigmalist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invUlist}<LEND>[](symbol){tcrossprod}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){y}<LEND>[body; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ind1}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ind2}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[statement 9; call](){}<LSEP>[](symbol){gradchol.ml}<LSEP>[](symbol){par}<LSEP>[](symbol){U}<LSEP>[](symbol){ind1}<LSEP>[](symbol){ind2}<LSEP>[](symbol){invSigmalist}<LSEP>[](symbol){reslist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.vc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){control}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){niter}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){converged}<LSEP>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){reltol}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){reltol}<LEND>[statement 4; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){niter}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){maxiter}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){old.Psi}<LSEP>[](symbol){Psi}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tXWXtot}<LEND>[call](){}<LSEP>[](symbol){sumlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUXlist}<LEND>[](symbol){crossprod}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){invtXWXtot}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){tXWXtot}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){X}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){ylist}<LSEP>[](symbol){Xlist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){vc.adj}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){res}<LSEP>[](symbol){X}<LSEP>[](symbol){invU}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){IH}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LSEP>[](symbol){invtXWXtot}<LEND>[argument 1; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){invU}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){eig}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){IH}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){invsqrtIH}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){eig}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){vectors}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){invsqrtIH}<LSEP>[](symbol){res}<LEND>[](symbol){reslist}<LSEP>[](symbol){Xlist}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invUlist}<LEND>[](symbol){nalist}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Mlist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){res}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){res}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){M}<LEND>[](symbol){reslist}<LSEP>[](symbol){nalist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){S0list}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){S}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){S0}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S0}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[](symbol){S}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){S0}<LEND>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){sumlist}<LSEP>[](symbol){nalist}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){Nmat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){ind}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){ind}<LSEP>[](symbol){k}<LEND>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){df.corr}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){vc.adj}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){p}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sumlist}<LSEP>[](symbol){Mlist}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Nmat}<LSEP>[](symbol){df.corr}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sumlist}<LSEP>[](symbol){S0list}<LEND>[](symbol){Nmat}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){eig}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){Psi}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){negeigen}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){set.negeigen}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){vectors}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){niter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){niter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Psi}<LSEP>[](symbol){old.Psi}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){converged}<LEND>[call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){value}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){reltol}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Psi}<LSEP>[](symbol){reltol}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){showiter}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){iter }<LSEP>[](symbol){niter}<LSEP>[argument 2; litteral](str){: value }<LEND>[argument 3; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){value}<LEND>[argument 4; litteral](str){\n}<LSEP>[argument 5; litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){converged}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){converged\n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){qrinvtUX}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){qr.R}<LSEP>[](symbol){qrinvtUX}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Qty}<LEND>[call](){}<LSEP>[](symbol){qr.qty}<LSEP>[](symbol){qrinvtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){res}<LSEP>[litteral](NULL){NULL}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){fitted}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Xlist}<LSEP>[argument 1; litteral](str){%*%}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){rank}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrinvtUX}<LSEP>[](symbol){rank}<LEND>[statement 12; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){vcov}<LSEP>[](symbol){Psi}<LSEP>[](symbol){res}<LSEP>[](symbol){fitted}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LSEP>[](symbol){rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){par}<LEND>[](symbol){rank}<LSEP>[argument 7; litteral](logical){NA}<LSEP>[](symbol){converged}<LSEP>[](symbol){niter}<LSEP>[](symbol){negeigen}<LSEP>[](symbol){control}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gradchol.ml}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){par}<LSEP>[](symbol){U}<LSEP>[](symbol){ind1}<LSEP>[](symbol){ind2}<LSEP>[](symbol){invSigmalist}<LSEP>[](symbol){reslist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){grad}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){par}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){A}<LEND>[assign](){<-}<LSEP>[](symbol){B}<LEND>[assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind1}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind2}<LSEP>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){C}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){C}<LSEP>[](symbol){B}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gr}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){invSigma}<LSEP>[](symbol){res}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){E}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){res}<LSEP>[](symbol){invSigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[](symbol){invSigma}<LEND>[](symbol){res}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){F}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){invSigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){E}<LSEP>[](symbol){F}<LEND>[](symbol){invSigmalist}<LSEP>[](symbol){reslist}<LSEP>[](symbol){nalist}<LEND>[](symbol){grad}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){simulate.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){nsim}<LSEP>[](symbol){seed}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){fixed}<LSEP>[argument 1; litteral](str){ml}<LSEP>[argument 2; litteral](str){reml}<LSEP>[argument 3; litteral](str){mm}<LSEP>[argument 4; litteral](str){vc}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Simulating responses not allow...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){exists}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){.GlobalEnv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[true branch; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){seed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){RNGstate}<LEND>[call](){}<LSEP>[](symbol){get}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){.GlobalEnv}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R.seed}<LEND>[call](){}<LSEP>[](symbol){get}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){.GlobalEnv}<LEND>[statement 1; call](){}<LSEP>[](symbol){set.seed}<LSEP>[](symbol){seed}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){RNGstate}<LEND>[call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){seed}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){RNGkind}<LEND>[statement 3; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){assign}<LSEP>[argument 0; litteral](str){.Random.seed}<LSEP>[](symbol){R.seed}<LSEP>[](symbol){.GlobalEnv}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){na.omit}<LEND>[argument 0; call](){}<LSEP>[](symbol){fitted}<LSEP>[](symbol){object}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){S}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){nas}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](str){na.action}<LEND>[true branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){S}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nas}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[true branch; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){fit}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){fit}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){cbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mvSim}<LSEP>[](symbol){nsim}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fit}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){xpndMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){Psi}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){sim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sim}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){fit}<LEND>[](symbol){T}<LEND>[argument 3; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){fit}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nsim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){sim}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){sim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){sim}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){logLik.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){logLik}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){df}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){val}<LEND>[litteral](str){logLik}<LEND>[](symbol){val}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){blup.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){se}<LSEP>[](symbol){pi}<LSEP>[](symbol){vcov}<LSEP>[](symbol){pi.level}<LSEP>[](symbol){format}<LSEP>[](symbol){aggregate}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){object}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.response}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){numeric}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){S}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){offset}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){offset}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){X}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){S}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){offset}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){offset}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nay}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){nay}<LEND>[litteral](real){0.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){format}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){format}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){matrix}<LSEP>[argument 1; litteral](str){list}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){aggregate}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){aggregate}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){stat}<LSEP>[argument 1; litteral](str){y}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Xlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){%x%}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){ylist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){predlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){offset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){offset}<LSEP>[](symbol){i}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){pred}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){pred}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LSEP>[](symbol){pred}<LEND>[](symbol){ylist}<LSEP>[](symbol){predlist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){S}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){S}<LEND>[call](){}<LSEP>[](symbol){inputcov}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){S}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){control}<LEND>[](symbol){Scor}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[true branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[false branch; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){Sigmalist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Si}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Si}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){xpndMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){S}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Si}<LSEP>[](symbol){Psi}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){Ulist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Sigmalist}<LSEP>[](symbol){chol}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){invUlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Ulist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){U}<LEND>[body; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){U}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){U}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){bluplist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pred}<LSEP>[](symbol){invU}<LSEP>[](symbol){res}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){invU}<LEND>[](symbol){res}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){blup}<LEND>[](symbol){predlist}<LSEP>[](symbol){invUlist}<LSEP>[](symbol){reslist}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){zvalpi}<LEND>[call](){}<LSEP>[](symbol){qnorm}<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}<LSEP>[](symbol){pi.level}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){Vlist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){invU}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[](symbol){X}<LEND>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){invU}<LEND>[](symbol){Psi}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){V}<LEND>[](symbol){Xlist}<LSEP>[](symbol){invUlist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){selist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Vlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){x}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){pilblist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){blup}<LSEP>[](symbol){se}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){zvalpi}<LSEP>[](symbol){se}<LEND>[](symbol){bluplist}<LSEP>[](symbol){selist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){piublist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){blup}<LSEP>[](symbol){se}<LEND>[body; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){zvalpi}<LSEP>[](symbol){se}<LEND>[](symbol){bluplist}<LSEP>[](symbol){selist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){format}<LSEP>[litteral](str){list}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){bluplist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){selist}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){pi}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){pilblist}<LEND>[argument 2; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){piublist}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){vcov}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){Vlist}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){se}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){pi}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){bluplist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){aggregate}<LSEP>[argument 1; litteral](str){stat}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){bluplist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){se}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){selist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){se}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){pi}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){pi.lb}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){pilblist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){pi.ub}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){piublist}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){pi.lb}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){blup}<LSEP>[](symbol){pi.ub}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){aggregate}<LSEP>[argument 1; litteral](str){y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){templist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){bluplist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){bluplist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){selist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){pi}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){blup}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pilblist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){piublist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){blup}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){templist}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){blup}<LSEP>[argument 1; litteral](str){se}<LSEP>[argument 2; litteral](str){pi.lb}<LSEP>[argument 3; litteral](str){pi.ub}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[](symbol){se}<LSEP>[](symbol){pi}<LSEP>[](symbol){pi}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){blup}<LSEP>[](symbol){j}<LEND>[](symbol){temp}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){bluparg}<LSEP>[](symbol){searg}<LSEP>[](symbol){pilbarg}<LSEP>[](symbol){piubarg}<LSEP>[](symbol){vcovarg}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){bluparg}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){se}<LEND>[](symbol){searg}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){pi}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){pi.lb}<LEND>[](symbol){pilbarg}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){pi}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){pi.ub}<LEND>[](symbol){piubarg}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){vcov}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){vcov}<LEND>[](symbol){vcovarg}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){se}<LSEP>[](symbol){pi}<LEND>[](symbol){vcov}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){temp}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bluplist}<LSEP>[](symbol){selist}<LSEP>[](symbol){pilblist}<LSEP>[](symbol){piublist}<LSEP>[](symbol){Vlist}<LSEP>[argument 6; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){blup}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[](symbol){blup}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){predict.mvmeta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){newdata}<LSEP>[](symbol){se}<LSEP>[](symbol){ci}<LSEP>[](symbol){vcov}<LSEP>[](symbol){interval}<LSEP>[](symbol){ci.level}<LSEP>[](symbol){format}<LSEP>[](symbol){aggregate}<LSEP>[](symbol){na.action}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){newdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){newdata}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){offset}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){offset}<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){object}<LSEP>[](symbol){na.action}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){X}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){offset}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){offset}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ttnr}<LEND>[call](){}<LSEP>[](symbol){delete.response}<LEND>[argument 0; call](){}<LSEP>[](symbol){terms}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){ttnr}<LSEP>[](symbol){newdata}<LSEP>[](symbol){na.action}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){xlevels}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){ttnr}<LSEP>[argument 1; litteral](str){dataClasses}<LEND>[true branch; call](){}<LSEP>[](symbol){.checkMFClasses}<LSEP>[](symbol){class}<LSEP>[](symbol){mf}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){ttnr}<LSEP>[](symbol){mf}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){contrasts}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){offset}<LEND>[call](){}<LSEP>[](symbol){model.offset}<LSEP>[](symbol){mf}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){offset}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){offset}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){X}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){wrong offset}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){interval}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){interval}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){confidence}<LSEP>[argument 1; litteral](str){prediction}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){format}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){format}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){matrix}<LSEP>[argument 1; litteral](str){list}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){aggregate}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){aggregate}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){stat}<LSEP>[argument 1; litteral](str){y}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){newdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){newdata}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){residuals}<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){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){napredict}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){na.action}<LEND>[](symbol){res}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nay}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){res}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Xlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nay}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[litteral](logical){NA}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){%x%}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){predlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){X}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){offset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){offset}<LSEP>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fit}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zvalci}<LEND>[call](){}<LSEP>[](symbol){qnorm}<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}<LSEP>[](symbol){ci.level}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vcovlist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Xlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[](symbol){X}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){interval}<LSEP>[argument 1; litteral](str){prediction}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){fixed}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){vcov}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){selist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){vcovlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){cilblist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fit}<LSEP>[](symbol){se}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){zvalci}<LSEP>[](symbol){se}<LEND>[](symbol){predlist}<LSEP>[](symbol){selist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ciublist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fit}<LSEP>[](symbol){se}<LEND>[body; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){zvalci}<LSEP>[](symbol){se}<LEND>[](symbol){predlist}<LSEP>[](symbol){selist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){format}<LSEP>[litteral](str){list}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){predlist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){selist}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){ci}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){cilblist}<LEND>[argument 2; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){ciublist}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){vcov}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){drop}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){vcovlist}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){se}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ci}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){predlist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){aggregate}<LSEP>[argument 1; litteral](str){stat}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){predlist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){se}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){selist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){se}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){ci}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){ci.lb}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){cilblist}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){ci.ub}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){ciublist}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){ci.lb}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){ci.ub}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){aggregate}<LSEP>[argument 1; litteral](str){y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){dim}<LEND>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){templist}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){predlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){predlist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){selist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){ci}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cilblist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ciublist}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){fit}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){templist}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){fit}<LSEP>[argument 1; litteral](str){se}<LSEP>[argument 2; litteral](str){ci.lb}<LSEP>[argument 3; litteral](str){ci.ub}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[](symbol){se}<LSEP>[](symbol){ci}<LSEP>[](symbol){ci}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fit}<LSEP>[](symbol){j}<LEND>[](symbol){temp}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lab}<LEND>[](symbol){k}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){predarg}<LSEP>[](symbol){searg}<LSEP>[](symbol){cilbarg}<LSEP>[](symbol){ciubarg}<LSEP>[](symbol){vcovarg}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){predarg}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){se}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){se}<LEND>[](symbol){searg}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){ci}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){ci.lb}<LEND>[](symbol){cilbarg}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){ci}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){ci.ub}<LEND>[](symbol){ciubarg}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){vcov}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){temp}<LSEP>[](symbol){vcov}<LEND>[](symbol){vcovarg}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){se}<LSEP>[](symbol){ci}<LEND>[](symbol){vcov}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){temp}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){temp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){predlist}<LSEP>[](symbol){selist}<LSEP>[](symbol){cilblist}<LSEP>[](symbol){ciublist}<LSEP>[](symbol){vcovlist}<LSEP>[argument 6; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){X}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fit}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){format}<LSEP>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){predlist}<LEND>[argument 1; litteral](integer){1}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){fit}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){fit}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[](symbol){fit}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.mm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){control}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wlist}<LEND>[call](){}<LSEP>[](symbol){mapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){invU}<LSEP>[](symbol){na}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LSEP>[](symbol){invU}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){W}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invUlist}<LEND>[](symbol){nalist}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){m}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){cbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){Wlist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){%x%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){I}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Wlist}<LSEP>[](symbol){i}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){nalist}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){k}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[](symbol){p}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){Xlist}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){k}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){ylist}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){tXWXtot}<LEND>[call](){}<LSEP>[](symbol){sumlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUXlist}<LEND>[](symbol){crossprod}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){invtXWXtot}<LEND>[call](){}<LSEP>[](symbol){chol2inv}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){tXWXtot}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){X}<LSEP>[](symbol){invtXWXtot}<LEND>[argument 1; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){X}<LSEP>[](symbol){W}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){IminusH}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){k}<LEND>[](symbol){H}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){fbtr}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){W}<LEND>[argument 1; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){IminusH}<LSEP>[](symbol){y}<LEND>[](symbol){k}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){IminusH}<LSEP>[](symbol){W}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){IminusH}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){na}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){btrB}<LEND>[call](){}<LSEP>[](symbol){fbtr}<LSEP>[](symbol){B}<LSEP>[](symbol){k}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){k}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){indrow}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){indcol}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){tBA}<LEND>[call](){}<LSEP>[](symbol){sumlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){indrow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indrow}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){col}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indcol}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){k}<LEND>[statement 2; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){%x%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){row}<LSEP>[](symbol){col}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){row}<LSEP>[](symbol){col}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){Psi1}<LEND>[call](){}<LSEP>[](symbol){qr.solve}<LSEP>[](symbol){tBA}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Q}<LSEP>[](symbol){btrB}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){Psi1}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){k}<LSEP>[](symbol){k}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Psi1}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Psi1}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){eig}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){Psi}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){negeigen}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){set.negeigen}<LEND>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eig}<LSEP>[](symbol){vectors}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){qrinvtUX}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){qr.R}<LSEP>[](symbol){qrinvtUX}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){Qty}<LEND>[call](){}<LSEP>[](symbol){qr.qty}<LSEP>[](symbol){qrinvtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){res}<LSEP>[litteral](NULL){NULL}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){fitted}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Xlist}<LSEP>[argument 1; litteral](str){%*%}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){rank}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrinvtUX}<LSEP>[](symbol){rank}<LEND>[statement 36; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){vcov}<LSEP>[](symbol){Psi}<LSEP>[](symbol){res}<LSEP>[](symbol){fitted}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LSEP>[](symbol){rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){par}<LEND>[](symbol){rank}<LSEP>[argument 7; litteral](logical){NA}<LSEP>[](symbol){negeigen}<LSEP>[](symbol){control}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){initpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){bscov}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){prop}<LSEP>[argument 1; litteral](str){fixed}<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; assign](){<-}<LSEP>[](symbol){fix}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){Psifix}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psifix}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){fix}<LEND>[](symbol){fix}<LEND>[false branch; call](){}<LSEP>[](symbol){xpndMat}<LSEP>[](symbol){fix}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Psifix}<LEND>[call](){}<LSEP>[](symbol){checkPD}<LSEP>[](symbol){Psifix}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](str){Psifix}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){bscov}<LSEP>[argument 1; litteral](str){cor}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psicor}<LEND>[call](){}<LSEP>[](symbol){inputcov}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){Psicor}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Psicor}<LEND>[call](){}<LSEP>[](symbol){checkPD}<LSEP>[](symbol){Psicor}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](str){Psicor}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){initPsi}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){initPsi}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){initPsi}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){initPsi}<LEND>[call](){}<LSEP>[](symbol){xpndMat}<LSEP>[](symbol){initPsi}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){initPsi}<LEND>[call](){}<LSEP>[](symbol){checkPD}<LSEP>[](symbol){initPsi}<LSEP>[](symbol){k}<LSEP>[argument 2; litteral](str){initPsi}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){bscov}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){fixed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){initPsi}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.001000}<LSEP>[](symbol){k}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){igls.iter}<LEND>[body; assign](){<-}<LSEP>[](symbol){initPsi}<LEND>[call](){}<LSEP>[](symbol){iter.igls}<LSEP>[](symbol){initPsi}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){par}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){bscov}<LEND>[argument 1; call](){}<LSEP>[](symbol){vechMat}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){initPsi}<LEND>[argument 2; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){initPsi}<LEND>[argument 3; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){initPsi}<LEND>[argument 4; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){bscov='cs' only meaningful wit...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cor}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov2cor}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){initPsi}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){cor}<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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cor}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){k}<LEND>[statement 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){initPsi}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cor}<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){k}<LSEP>[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>[](symbol){cor}<LEND>[argument 5; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){bscov='hcs' only meaningful wi...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cor}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov2cor}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){initPsi}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){cor}<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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cor}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){k}<LEND>[statement 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){initPsi}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cor}<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){k}<LSEP>[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>[](symbol){cor}<LEND>[argument 6; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){bscov='ar1' only meaningful wi...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cor}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov2cor}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){initPsi}<LEND>[argument 1; litteral](integer){1}<LEND>[statement 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){initPsi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){qlogis}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cor}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){Psifix}<LSEP>[](symbol){initPsi}<LEND>[argument 8; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){initPsi}<LEND>[argument 9; litteral](NULL){NULL}<LEND>[](symbol){par}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mvmeta.ml}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){par}<LEND>[call](){}<LSEP>[](symbol){initpar}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fn}<LSEP>[](symbol){mlprof.fn}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gr}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){bscov}<LSEP>[argument 1; litteral](str){unstr}<LEND>[](symbol){mlprof.gr}<LSEP>[false branch; litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){opt}<LEND>[call](){}<LSEP>[](symbol){optim}<LSEP>[](symbol){par}<LSEP>[](symbol){fn}<LSEP>[](symbol){gr}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){k}<LSEP>[](symbol){m}<LSEP>[](symbol){p}<LSEP>[](symbol){nall}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LSEP>[argument 13; litteral](str){BFGS}<LEND>[argument 14; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){optim}<LEND>[argument 15; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){control}<LSEP>[](symbol){hessian}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){par2Psi}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){par}<LEND>[](symbol){k}<LSEP>[](symbol){bscov}<LSEP>[](symbol){control}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gls}<LEND>[call](){}<LSEP>[](symbol){glsfit}<LSEP>[](symbol){Xlist}<LSEP>[](symbol){ylist}<LSEP>[](symbol){Slist}<LSEP>[](symbol){nalist}<LSEP>[](symbol){Psi}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){qrinvtUX}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){qr.R}<LSEP>[](symbol){qrinvtUX}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Qty}<LEND>[call](){}<LSEP>[](symbol){qr.qty}<LSEP>[](symbol){qrinvtUX}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUy}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vcov}<LEND>[call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){backsolve}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){invtUX}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){res}<LSEP>[litteral](NULL){NULL}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){fitted}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){Xlist}<LSEP>[argument 1; litteral](str){%*%}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rank}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrinvtUX}<LSEP>[](symbol){rank}<LEND>[statement 13; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gls}<LSEP>[](symbol){coef}<LEND>[](symbol){vcov}<LSEP>[](symbol){Psi}<LSEP>[](symbol){res}<LSEP>[](symbol){fitted}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nall}<LSEP>[](symbol){rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){par}<LEND>[](symbol){rank}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){value}<LEND>[argument 8; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){convergence}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 9; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){par}<LEND>[argument 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){hessian}<LEND>[true branch; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){hessian}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opt}<LSEP>[](symbol){counts}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){control}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){seleniumPipes}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){NOT_CRAN}<LEND>[argument 1; litteral](str){true}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){test_check}<LSEP>[argument 0; litteral](str){seleniumPipes}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){executing_javascript_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToExecuteSimpl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.title}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){character}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){XHTML Test Page}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToExecuteSimpl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.getElementsByN...}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){integer}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_gt}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToExecuteSimpl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.getElementById...}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){result}<LSEP>[](symbol){getElementTagName}<LEND>[argument 1; litteral](str){a}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToExecuteSimpl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return true}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){logical}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToExecuteSimpl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return ['zero', 'one', 'two']}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){expectedResult}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){zero}<LSEP>[argument 1; litteral](str){one}<LSEP>[argument 2; litteral](str){two}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[](symbol){expectedResult}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToExecuteSimpl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return ['zero', [true, false]]}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){expectedResult}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){zero}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[](symbol){expectedResult}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testPassingAndReturningAnIntSh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){expectedResult}<LSEP>[litteral](integer){1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0]}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){expectedResult}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){integer}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[](symbol){expectedResult}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testPassingAndReturningADouble...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){expectedResult}<LSEP>[litteral](real){1.200000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0]}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){expectedResult}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){numeric}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[](symbol){expectedResult}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldThrowAnExceptionWhen...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return squiggle()}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToCallFunction...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){displayMessage('I like cheese')}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){result}<LEND>[](symbol){getElementText}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](str){I like cheese}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToPassAStringA...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] == 'fish' ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){fish}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](str){fish}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToPassABoolean...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] == true}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToPassANumberA...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] == 1 ? tru...}<LSEP>[argument 1; litteral](integer){1}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToPassAWebElem...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){arguments[0]['flibble'] = argu...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){plainButton}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](str){plainButton}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToPassAnArrayA...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){array}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){zerohero}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){3.141590}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0].length}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){array}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){value}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){array}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToPassInMoreTh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] + argument...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){one}<LSEP>[argument 1; litteral](str){two}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](str){onetwo}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testJavascriptStringHandlingSh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return ''}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return undefined}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return ' '}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](str){ }<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToCreateAPersi...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){formPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){document.alerts = []}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){document.alerts.push('hello wo...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){text}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.alerts.shift()}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){text}<LSEP>[argument 1; litteral](str){hello world}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testCanPassANone}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] === null}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LSEP>[](symbol){res}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){frame_switching_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAlwaysFocusOnTheTopM...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){frameset}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldNotAutomaticallySwit...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe_page_heading}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldOpenPageWithBrokenFr...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){frame1}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){framesetPage3}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){first}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[](symbol){frame1}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){frame1}<LSEP>[argument 1; litteral](str){wElement}<LEND>[statement 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){switchToFrame}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){frame2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){second}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){frame2}<LSEP>[argument 1; litteral](str){wElement}<LEND>[statement 7; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[](symbol){frame2}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAnIf...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){id-name1}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){value}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAFra...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](str){fourth}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){name}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){child1}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAnIf...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](str){iframe1-name}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){id-name1}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){value}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAFra...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){fifth}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){windowOne}<LEND>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Open new window}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAnIf...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){id-name1}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){value}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToFram...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){sixth.iframe1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){body}<LEND>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAFra...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){frame}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){body}<LEND>[](symbol){getElementText}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToAnIF...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){iframe}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){id-name1}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){value}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldEnsureElementIsAFram...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){frameset}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[](symbol){frame}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[argument 1; litteral](integer){8}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testFrameSearchesShouldBeRelat...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){second}<LEND>[](symbol){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//body}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](integer){1}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldSelectChildFramesByC...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<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){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){fourth}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){child2}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag}<LSEP>[argument 1; litteral](str){body}<LEND>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldThrowFrameNotFoundEx...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){fourth}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){second}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[argument 1; litteral](integer){7}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldThrowAnExceptionWhen...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){Nothing here}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[argument 1; litteral](integer){7}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldThrowAnExceptionWhen...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](real){27.000000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[argument 1; litteral](integer){8}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToPare...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<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){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){fourth}<LEND>[](symbol){switchToParentFrame}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){fourth}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){child2}<LEND>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToPare...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<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){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){fourth}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){child1}<LEND>[](symbol){switchToParentFrame}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){child2}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){tag}<LSEP>[argument 1; litteral](str){body}<LEND>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testSwitchingToParentFrameFrom...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[](symbol){switchToParentFrame}<LEND>[](symbol){getTitle}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){XHTML Test Page}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToPare...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](integer){0}<LEND>[](symbol){switchToParentFrame}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe_page_heading}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowTheUserToSwitch...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](integer){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){submitButton}<LEND>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){greeting}<LEND>[](symbol){getElementText}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Success!}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToClickInAFrame}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){third}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){submitButton}<LEND>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){greeting}<LEND>[](symbol){getElementText}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Success!}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToClickInAFram...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){click_tests/issue5237}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){search}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){submit}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Target page for issue 5237}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToClickInASubF...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 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){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){sixth}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){submitButton}<LEND>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){greeting}<LEND>[](symbol){getElementText}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Success!}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToFindElements...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//*[@id = 'changeme']}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testGetCurrentUrlReturnsTopLev...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[](symbol){getCurrentUrl}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){second}<LEND>[](symbol){getCurrentUrl}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testGetCurrentUrlReturnsTopLev...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[](symbol){getCurrentUrl}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[](symbol){getCurrentUrl}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){iframes}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToTheT...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frame_switching_tests/deleting...}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){killIframe}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){addBackFrame}<LEND>[](symbol){elementClick}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToTheT...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frame_switching_tests/deleting...}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](integer){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){killIframe}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){addBackFrame}<LEND>[](symbol){elementClick}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](integer){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){success}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToSwitchToTheT...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frame_switching_tests/deleting...}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){killIframe}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){addBackFrame}<LEND>[](symbol){elementClick}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){iframe1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){success}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldReturnWindowTitleInA...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){third}<LEND>[](symbol){getTitle}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Unique title}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testJavaScriptShouldExecuteInT...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return window == window.top}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LSEP>[](symbol){result}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){third}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return window != window.top}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LSEP>[](symbol){result}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){api_example_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){GetTitle}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Hello WebDriver}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){GetCurrentUrl}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){getCurrentUrl}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCurrentUrl}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[](symbol){getCurrentUrl}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementsByXPath}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){findElementText}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//h1}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Heading}<LSEP>[](symbol){findElementText}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementByXpathThrowNoSuchE...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){findElementText}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//h4}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementText}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){7.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementsByXpath}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elems}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//option}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){48.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){One}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){elems}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){value}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementsByName}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){windowOne}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Open new window}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LSEP>[](symbol){getElementText}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementsByNameInElementCon...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){childElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){form2}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementFromElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){selectomatic}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){childElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){id}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementsByLinkTextInElemen...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){childElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){div1}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementFromElement}<LSEP>[argument 0; litteral](str){link text}<LSEP>[argument 1; litteral](str){hello world}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){link1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){childElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementByIdInElementContext}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){childElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){form2}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementFromElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){2}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){selectomatic}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){childElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementByXpathInElementCon...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){childElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){form2}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementFromElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){select}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){childElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){id}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementByXpathInElementCon...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){form2}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementFromElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){div}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){7.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ShouldBeAbleToEnterDataIntoFor...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//form[@name='someForm']/input...}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementClear}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementSendKeys}<LSEP>[argument 0; litteral](str){some text}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//form[@name='someForm']/input...}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){some text}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){value}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementByTagName}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elems}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){div}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){num_by_xpath}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//div}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){num_by_xpath}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){elems}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){iframe}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementByTagNameWithinElement}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elems}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){multiline}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementsFromElement}<LSEP>[argument 0; litteral](str){tag name}<LSEP>[argument 1; litteral](str){p}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){SwitchToWindow}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){title_1}<LSEP>[litteral](str){XHTML Test Page}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){title_2}<LSEP>[litteral](str){We Arrive Here}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){link text}<LSEP>[argument 1; litteral](str){Open new window}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementClick}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){title_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToWindow}<LSEP>[argument 0; litteral](str){result}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){title_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){windows}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getWindowHandles}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){currentWindow}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getWindowHandle}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){closeWindow}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToWindow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){windows}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){windows}<LSEP>[](symbol){currentWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){windows}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getWindowHandlesOld}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){currentWindow}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getWindowHandleOld}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){closeWindow}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToWindow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){windows}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){windows}<LSEP>[](symbol){currentWindow}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){title_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){SwitchFrameByName}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){frameset}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LSEP>[argument 0; litteral](str){third}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){checky}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementClick}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){IsEnabled}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){formPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//input[@id='working']}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LSEP>[](symbol){isElementEnabled}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//input[@id='notWorking']}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_false}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LSEP>[](symbol){isElementEnabled}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){IsSelectedAndToggle}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rdBrowser}<LSEP>[argument 1; litteral](str){chrome}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){package_version}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionInfo}<LEND>[](symbol){version}<LEND>[](symbol){major}<LEND>[argument 1; litteral](real){16.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){deselecting preselected values...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){formPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){multi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){option_elems}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementsFromElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){option}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){option_elems}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){isElementSelected}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){option_elems}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){elementClick}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_false}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){option_elems}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){isElementSelected}<LEND>[statement 7; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){option_elems}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){elementClick}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){option_elems}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){isElementSelected}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){option_elems}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){isElementSelected}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){Navigate}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){formPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){imageButton}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){We Arrive Here}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){seleniumPipes}<LSEP>[](symbol){back}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){We Leave From Here}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){forward}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){We Arrive Here}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){GetAttribute}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){attr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){id1}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){href}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; litteral](str){#}<LEND>[](symbol){attr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){GetImplicitAttribute}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elems}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){nestedElements}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//option}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){x}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){elems}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){index}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ExecuteSimpleScript}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.title;}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScriptOld}<LSEP>[argument 0; litteral](str){return document.title;}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){XHTML Test Page}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ExecuteScriptAndReturnElement}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.getElementById...}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScriptOld}<LSEP>[argument 0; litteral](str){return document.getElementById...}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[argument 0; litteral](str){wElement}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ExecuteScriptWithArgs}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] == 'fish' ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){fish}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScriptOld}<LSEP>[argument 0; litteral](str){return arguments[0] == 'fish' ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){fish}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){fish}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ExecuteScriptWithMultipleArgs}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0] + argument...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScriptOld}<LSEP>[argument 0; litteral](str){return arguments[0] + argument...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ExecuteScriptWithElementArgs}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){button}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){plainButton}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){appScript}<LSEP>[litteral](str){arguments[0]['flibble'] = argu...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){appScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){button}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){button}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){plainButton}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){appScript}<LSEP>[litteral](str){arguments[0]['flibble'] = argu...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScriptOld}<LSEP>[](symbol){appScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){button}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){plainButton}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){FindElementsByPartialLinkText}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){elem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){partial link text}<LSEP>[argument 1; litteral](str){new window}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Open new window}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LSEP>[](symbol){getElementText}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){IsElementDisplayed}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){visible}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){javascriptPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){displayed}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementCssValue}<LSEP>[argument 0; litteral](str){visibility}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){not_visible}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){hidden}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementCssValue}<LSEP>[argument 0; litteral](str){visibility}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){visible}<LSEP>[argument 1; litteral](str){visible}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){not_visible}<LSEP>[argument 1; litteral](str){hidden}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){MoveWindowPosition}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rdBrowser}<LSEP>[argument 1; litteral](str){android}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rdBrowser}<LSEP>[argument 1; litteral](str){safari}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Not applicable}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){chk}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){loc}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){blank}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowPosition}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){new_x}<LSEP>[litteral](real){50.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){new_y}<LSEP>[litteral](real){50.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){loc}<LSEP>[argument 1; litteral](str){x}<LEND>[](symbol){new_x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){new_x}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){new_x}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc}<LSEP>[argument 1; litteral](str){y}<LEND>[](symbol){new_y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){new_y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){new_y}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setWindowPosition}<LSEP>[](symbol){new_x}<LSEP>[](symbol){new_y}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){loc}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getWindowPosition}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Selenium Server error}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){chk}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){loc}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){blank}<LEND>[](symbol){getWindowPositionOld}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){new_x}<LSEP>[litteral](real){50.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){new_y}<LSEP>[litteral](real){50.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){loc}<LSEP>[argument 1; litteral](str){x}<LEND>[](symbol){new_x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){new_x}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){new_x}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc}<LSEP>[argument 1; litteral](str){y}<LEND>[](symbol){new_y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){new_y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){new_y}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setWindowPositionOld}<LSEP>[](symbol){new_x}<LSEP>[](symbol){new_y}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){loc}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getWindowPositionOld}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_lt}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){loc}<LSEP>[argument 1; litteral](str){x}<LEND>[](symbol){new_x}<LEND>[argument 1; litteral](real){10.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_lt}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){loc}<LSEP>[argument 1; litteral](str){y}<LEND>[](symbol){new_y}<LEND>[argument 1; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){ChangeWindowSize}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rdBrowser}<LSEP>[argument 1; litteral](str){android}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Not applicable}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){size}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){blank}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowSize}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){newSize}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){600.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){size}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 1; litteral](real){600.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){newSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){500.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){size}<LSEP>[argument 1; litteral](str){height}<LEND>[argument 1; litteral](real){600.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){newSize}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](real){500.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setWindowSize}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){newSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){newSize}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){size}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowSize}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_lt}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){size}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){newSize}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){10.000000}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_lt}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){size}<LSEP>[argument 1; litteral](str){height}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){newSize}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){10.000000}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){takes_screenshots_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldWriteScreenshotToFile}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tmpF}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){takeScreenshot}<LSEP>[](symbol){tmpF}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){tmpF}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){test_get_screenshot_as_png}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<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){.Platform}<LSEP>[](symbol){OS.type}<LEND>[argument 1; litteral](str){unix}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip}<LSEP>[argument 0; litteral](str){unix file command used to dete...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tmpF}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){takeScreenshot}<LSEP>[](symbol){tmpF}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fileInfo}<LEND>[call](){}<LSEP>[](symbol){system}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){file --mime-type}<LSEP>[](symbol){tmpF}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){image/png}<LSEP>[](symbol){fileInfo}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){page_loading_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldWaitForDocumentToBeL...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[](symbol){getTitle}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){Hello WebDriver}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToGetAFragment...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[](symbol){getCurrentUrl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){#text}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){id1}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){wElem}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldReturnWhenGettingAUr...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_silent}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){http://www.thisurldoesnotexist...}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldReturnWhenGettingAUr...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_silent}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){http://localhost:3001}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToNavigateBack...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){formPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){imageButton}<LEND>[](symbol){elementClick}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){We Arrive Here}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){resBack}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){back}<LEND>[](symbol){getTitle}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){resBack}<LSEP>[argument 1; litteral](str){We Leave From Here}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToNavigateBack...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){sameWindow}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[argument 1; litteral](str){This page has iframes}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){back}<LEND>[](symbol){getTitle}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){XHTML Test Page}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToNavigateForw...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){formPage}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){imageButton}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[argument 1; litteral](str){We Arrive Here}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){back}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[argument 1; litteral](str){We Leave From Here}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){forward}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[argument 1; litteral](str){We Arrive Here}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldNotHangifDocumentOpe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){document_write_in_onload}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){xpath}<LSEP>[argument 1; litteral](str){//body}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){wElement}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToRefreshAPage}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){xhtmlTest}<LEND>[](symbol){refresh}<LEND>[](symbol){getTitle}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){XHTML Test Page}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){alerts_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldBeAbleToOverrideTheW...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){script}<LSEP>[litteral](str){window.alert = function(msg) {...}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){script}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){appText}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){text}<LEND>[](symbol){getElementText}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){cheese}<LSEP>[](symbol){appText}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowUsersToAcceptAn...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowUsersToAcceptAn...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){empty-alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldGetTextOfAlertOpened...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){slow-alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAlertText}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Slow}<LSEP>[](symbol){alertTxt}<LEND>[statement 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowUsersToDismissA...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowAUserToAcceptAP...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){prompt}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowAUserToDismissA...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){prompt}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){dismissAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowAUserToSetTheVa...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){prompt}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){sendAlertText}<LSEP>[argument 0; litteral](str){cheese}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){text}<LEND>[](symbol){getElementText}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){cheese}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testSettingTheValueOfAnAlertTh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[argument 0; litteral](str){chrome}<LSEP>[](symbol){rdBrowser}<LEND>[true branch; call](){}<LSEP>[](symbol){skip}<LSEP>[argument 0; litteral](str){Not chrome}<LEND>[statement 1; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){sendAlertText}<LSEP>[argument 0; litteral](str){cheddar}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){dismissAlert}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testAlertShouldNotAllowAdditio...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){dismissAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){sendAlertText}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowUsersToAcceptAn...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){iframeWithAlert}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alertInFrame}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowUsersToAcceptAn...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 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){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){iframeWithIframe}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){iframeWithAlert}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alertInFrame}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){Testing Alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testPromptShouldUseDefaultValu...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){prompt-with-default}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){text}<LEND>[](symbol){getElementText}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){This is a default value}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testPromptShouldHaveNullValueI...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){prompt-with-default}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){dismissAlert}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){text}<LEND>[](symbol){getElementText}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){null}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testHandlesTwoAlertsFromOneInt...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){double-prompt}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){sendAlertText}<LSEP>[argument 0; litteral](str){brie}<LEND>[](symbol){acceptAlert}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){sendAlertText}<LSEP>[argument 0; litteral](str){cheddar}<LEND>[](symbol){acceptAlert}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){alertTxt1}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){text1}<LEND>[](symbol){getElementText}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){alertTxt2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){text2}<LEND>[](symbol){getElementText}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){brie}<LSEP>[](symbol){alertTxt1}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){cheddar}<LSEP>[](symbol){alertTxt2}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldHandleAlertOnPageLoad}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){open-page-with-onload-alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAlertText}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){onload}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldAllowTheUserToGetThe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAlertText}<LEND>[statement 3; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){cheese}<LSEP>[](symbol){alertTxt}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testUnexpectedAlertPresentExce...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){alerts}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){alert}<LEND>[](symbol){elementClick}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){errorContent}<LEND>[](symbol){status}<LEND>[argument 1; litteral](real){26.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){acceptAlert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; block](){}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){cookie_tests}<LEND>[assign](){<-}<LSEP>[](symbol){init}<LEND>[call](){}<LSEP>[](symbol){initFun}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){rdBrowser}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){init}<LSEP>[](symbol){loadPage}<LEND>[call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testAddCookie}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.cookie;}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[argument 0; litteral](str){foo}<LSEP>[argument 1; litteral](str){bar}<LSEP>[argument 2; litteral](str){/}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cookie_returned}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.cookie;}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){foo=bar}<LSEP>[](symbol){cookie_returned}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testAddingACookieThatExpiredIn...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[argument 0; litteral](str){foo}<LSEP>[argument 1; litteral](str){bar}<LSEP>[argument 2; litteral](str){/}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[argument 1; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cookies}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAllCookies}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cookies}<LEND>[argument 1; litteral](integer){0}<LEND>[statement 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testDeleteAllCookie}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[argument 0; litteral](str){foo}<LSEP>[argument 1; litteral](str){bar}<LSEP>[argument 2; litteral](str){/}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](integer){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAllCookies}<LEND>[statement 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testDeleteCookie}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[argument 0; litteral](str){foo}<LSEP>[argument 1; litteral](str){bar}<LSEP>[argument 2; litteral](str){/}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteCookie}<LSEP>[argument 0; litteral](str){foo}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](integer){0}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAllCookies}<LEND>[statement 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldGetCookieByName}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){key}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){key_%d}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){10000000.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){document.cookie = arguments[0]...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){key}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getNamedCookie}<LSEP>[](symbol){key}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cookie}<LSEP>[](symbol){value}<LEND>[argument 1; litteral](str){set}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testGetAllCookies}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){key1}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){key_%d}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){10000000.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){key2}<LEND>[call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){key_%d}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){10000000.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cookies}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){getAllCookies}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cookies}<LEND>[statement 5; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[](symbol){key1}<LSEP>[argument 1; litteral](str){value}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[](symbol){key2}<LSEP>[argument 1; litteral](str){value}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){cookies}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getAllCookies}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cookies}<LEND>[statement 8; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){testShouldNotDeleteCookiesWith...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){skip_on_cran}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cookieOneName}<LSEP>[litteral](str){fish}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LEND>[argument 0; call](){}<LSEP>[](symbol){loadPage}<LSEP>[argument 0; litteral](str){simpleTest}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[](symbol){cookieOneName}<LSEP>[argument 1; litteral](str){cod}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){cookieOneName}<LSEP>[argument 1; litteral](str){x}<LEND>[argument 1; litteral](str){earth}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteCookie}<LSEP>[](symbol){cookieOneName}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cookies}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getAllCookies}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_false}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cookies}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){name}<LEND>[](symbol){cookieOneName}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cookies}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){name}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){cookieOneName}<LSEP>[argument 1; litteral](str){x}<LEND>[statement 6; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){deleteAllCookies}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){initFun}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_SL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pv}<LEND>[call](){}<LSEP>[](symbol){packageVersion}<LSEP>[argument 0; litteral](str){seleniumPipes}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){slFlags}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){seleniumPipes-test-suite}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){pv}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq_along}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){pv}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){api-example}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){paste}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pv}<LSEP>[argument 1; litteral](str){.}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){selOptions}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_selOptions}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){selOptions}<LSEP>[](symbol){extraCapabilities}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){selOptions}<LSEP>[](symbol){extraCapabilities}<LEND>[](symbol){slFlags}<LEND>[statement 4; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){selOptions}<LEND>[statement 5; call](){}<LSEP>[](symbol){source}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[argument 0; litteral](str){tests}<LSEP>[argument 1; litteral](str){testthat}<LSEP>[argument 2; litteral](str){setup.R}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LSEP>[argument 0; litteral](str){chrome}<LEND>[statement 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setTimeout}<LSEP>[argument 0; litteral](real){10000.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setTimeout}<LSEP>[argument 0; litteral](str){implicit}<LSEP>[argument 1; litteral](real){5000.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){htmlSrc}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){TRAVIS}<LEND>[argument 1; litteral](str){true}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](str){http-server:8080}<LEND>[false branch; block](){}<LSEP>[statement 0; litteral](str){localhost:3000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pgStr}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){http://}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){htmlSrc}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){pgStr}<LSEP>[argument 1; litteral](str){.html}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionInfo}<LEND>[](symbol){browserName}<LEND>[statement 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){remDr}<LSEP>[](symbol){rdBrowser}<LSEP>[](symbol){loadPage}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_selOptions}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please set test options}<LEND>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){remoteDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_selOptions}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_SL}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){options}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionInfo}<LEND>[](symbol){webdriver.remote.sessionid}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setTimeout}<LSEP>[argument 0; litteral](real){10000.000000}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setTimeout}<LSEP>[argument 0; litteral](str){implicit}<LSEP>[argument 1; litteral](real){5000.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rdBrowser}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionInfo}<LEND>[](symbol){browserName}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){rdBrowser}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){iPhone}<LSEP>[argument 1; litteral](str){iPad}<LSEP>[argument 2; litteral](str){safari}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){htmlSrc}<LSEP>[litteral](str){myname.local:3000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){htmlSrc}<LSEP>[litteral](str){localhost:3000}<LEND>[assign](){<-}<LSEP>[](symbol){loadPage}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pgStr}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){http://}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){htmlSrc}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){pgStr}<LSEP>[argument 1; litteral](str){.html}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){remoteDr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remoteServerAddr}<LSEP>[](symbol){port}<LSEP>[](symbol){browserName}<LSEP>[](symbol){version}<LSEP>[](symbol){platform}<LSEP>[](symbol){javascript}<LSEP>[](symbol){nativeEvents}<LSEP>[](symbol){extraCapabilities}<LSEP>[](symbol){path}<LSEP>[](symbol){newSession}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){remServAdd}<LEND>[call](){}<LSEP>[](symbol){parse_url}<LSEP>[](symbol){remoteServerAddr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remServAdd}<LSEP>[argument 1; litteral](str){port}<LEND>[](symbol){port}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remServAdd}<LSEP>[argument 1; litteral](str){path}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remServAdd}<LSEP>[argument 1; litteral](str){path}<LEND>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[](symbol){path}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remServAdd}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){path}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remServAdd}<LSEP>[argument 1; litteral](str){scheme}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remServAdd}<LSEP>[argument 1; litteral](str){scheme}<LEND>[litteral](str){http}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){session}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){remServAdd}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){browserName}<LSEP>[](symbol){version}<LSEP>[](symbol){javascript}<LSEP>[](symbol){platform}<LSEP>[](symbol){nativeEvents}<LEND>[](symbol){extraCapabilities}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){drvID}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LEND>[argument 5; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){chk}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){chk}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){proID}<LEND>[call](){}<LSEP>[](symbol){make.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempfile}<LSEP>[argument 0; litteral](str){}<LSEP>[argument 1; litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){proID}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){chk}<LSEP>[litteral](logical){TRUE}<LEND>[](symbol){proID}<LEND>[argument 1; litteral](str){rDriver}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){newSession}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){session}<LEND>[call](){}<LSEP>[](symbol){newSession}<LSEP>[](symbol){session}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){session}<LEND>[assign](){<-}<LSEP>[](symbol){wbElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){elementId}<LSEP>[](symbol){remDr}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){drvID}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[](symbol){drvID}<LEND>[](symbol){elementId}<LSEP>[](symbol){remDr}<LEND>[argument 1; litteral](str){wElement}<LEND>[assign](){<-}<LSEP>[](symbol){queryDriver}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){verb}<LSEP>[](symbol){url}<LSEP>[](symbol){source}<LSEP>[](symbol){drvID}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){source}<LSEP>[argument 1; litteral](str){newSession}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[](symbol){drvID}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nDriver id is not registered....}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Alternatively no session exist...}<LEND>[statement 2; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){sessionId error}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vArg}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[argument 1; litteral](str){json}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){noTry}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_no_try}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){delay}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_no_try_delay}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){rtry}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[argument 1; litteral](str){retry}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.logical}<LSEP>[](symbol){rtry}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){rtry}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){noTry}<LSEP>[litteral](integer){1}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){delay}<LSEP>[litteral](integer){100}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){rtry}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){noTry}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rtry}<LSEP>[](symbol){noTry}<LEND>[argument 1; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_no_try}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rtry}<LSEP>[](symbol){noTry}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){delay}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rtry}<LSEP>[](symbol){delay}<LEND>[argument 1; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_no_try_delay}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rtry}<LSEP>[](symbol){delay}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){retry}<LSEP>[](symbol){checkResponse}<LSEP>[](symbol){verb}<LSEP>[](symbol){vArg}<LSEP>[](symbol){source}<LSEP>[](symbol){noTry}<LSEP>[](symbol){delay}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){res}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[](symbol){drvID}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){sessionId}<LEND>[](symbol){res}<LEND>[assign](){<-}<LSEP>[](symbol){checkResponse}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){response}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){statusCodes}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](integer){0}<LSEP>[argument 1; litteral](integer){6}<LSEP>[argument 2; litteral](integer){7}<LSEP>[argument 3; litteral](integer){8}<LSEP>[argument 4; litteral](integer){9}<LSEP>[argument 5; litteral](integer){10}<LSEP>[argument 6; litteral](integer){11}<LSEP>[argument 7; litteral](integer){12}<LSEP>[argument 8; litteral](integer){13}<LSEP>[argument 9; litteral](integer){15}<LSEP>[argument 10; litteral](integer){17}<LSEP>[argument 11; litteral](integer){19}<LSEP>[argument 12; litteral](integer){21}<LSEP>[argument 13; litteral](integer){23}<LSEP>[argument 14; litteral](integer){24}<LSEP>[argument 15; litteral](integer){25}<LSEP>[argument 16; litteral](integer){26}<LSEP>[argument 17; litteral](integer){27}<LSEP>[argument 18; litteral](integer){28}<LSEP>[argument 19; litteral](integer){29}<LSEP>[argument 20; litteral](integer){30}<LSEP>[argument 21; litteral](integer){31}<LSEP>[argument 22; litteral](integer){32}<LSEP>[argument 23; litteral](integer){33}<LSEP>[argument 24; litteral](integer){34}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Success}<LSEP>[argument 1; litteral](str){NoSuchDriver}<LSEP>[argument 2; litteral](str){NoSuchElement}<LSEP>[argument 3; litteral](str){NoSuchFrame}<LSEP>[argument 4; litteral](str){UnknownCommand}<LSEP>[argument 5; litteral](str){StaleElementReference}<LSEP>[argument 6; litteral](str){ElementNotVisible}<LSEP>[argument 7; litteral](str){InvalidElementState}<LSEP>[argument 8; litteral](str){UnknownError}<LSEP>[argument 9; litteral](str){ElementIsNotSelectable}<LSEP>[argument 10; litteral](str){JavaScriptError}<LSEP>[argument 11; litteral](str){XPathLookupError}<LSEP>[argument 12; litteral](str){Timeout}<LSEP>[argument 13; litteral](str){NoSuchWindow}<LSEP>[argument 14; litteral](str){InvalidCookieDomain}<LSEP>[argument 15; litteral](str){UnableToSetCookie}<LSEP>[argument 16; litteral](str){UnexpectedAlertOpen}<LSEP>[argument 17; litteral](str){NoAlertOpenError}<LSEP>[argument 18; litteral](str){ScriptTimeout}<LSEP>[argument 19; litteral](str){InvalidElementCoordinates}<LSEP>[argument 20; litteral](str){IMENotAvailable}<LSEP>[argument 21; litteral](str){IMEEngineActivationFailed}<LSEP>[argument 22; litteral](str){InvalidSelector}<LSEP>[argument 23; litteral](str){SessionNotCreatedException}<LSEP>[argument 24; litteral](str){MoveTargetOutOfBounds}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){The command executed successfu...}<LSEP>[argument 1; litteral](str){A session is either terminated...}<LSEP>[argument 2; litteral](str){An element could not be locate...}<LSEP>[argument 3; litteral](str){A request to switch to a frame...}<LSEP>[argument 4; litteral](str){The requested resource could n...}<LSEP>[argument 5; litteral](str){An element command failed beca...}<LSEP>[argument 6; litteral](str){An element command could not b...}<LSEP>[argument 7; litteral](str){An element command could not b...}<LSEP>[argument 8; litteral](str){An unknown server-side error o...}<LSEP>[argument 9; litteral](str){An attempt was made to select ...}<LSEP>[argument 10; litteral](str){An error occurred while execut...}<LSEP>[argument 11; litteral](str){An error occurred while search...}<LSEP>[argument 12; litteral](str){An operation did not complete ...}<LSEP>[argument 13; litteral](str){A request to switch to a diffe...}<LSEP>[argument 14; litteral](str){An illegal attempt was made to...}<LSEP>[argument 15; litteral](str){A request to set a cookie's va...}<LSEP>[argument 16; litteral](str){A modal dialog was open, block...}<LSEP>[argument 17; litteral](str){An attempt was made to operate...}<LSEP>[argument 18; litteral](str){A script did not complete befo...}<LSEP>[argument 19; litteral](str){The coordinates provided to an...}<LSEP>[argument 20; litteral](str){IME was not available.}<LSEP>[argument 21; litteral](str){An IME engine could not be sta...}<LSEP>[argument 22; litteral](str){Argument was an invalid select...}<LSEP>[argument 23; litteral](str){A new session could not be cre...}<LSEP>[argument 24; litteral](str){Target provided for a move act...}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Code}<LSEP>[argument 1; litteral](str){Summary}<LSEP>[argument 2; litteral](str){Detail}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](integer){25}<LEND>[argument 3; litteral](str){data.frame}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){status_code}<LEND>[argument 1; litteral](integer){200}<LEND>[argument 1; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){status}<LEND>[argument 1; litteral](integer){0}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[statement 2; call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Error detected:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Response status code :}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){status_code}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){errTest}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LSEP>[argument 1; litteral](str){UTF-8}<LEND>[](symbol){value}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){errTest}<LEND>[call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){errTest}<LSEP>[argument 1; litteral](str){error}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){errTest}<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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){value}<LEND>[](symbol){class}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Selenium class exception:}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){value}<LEND>[](symbol){class}<LEND>[argument 2; litteral](str){\n}<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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){status}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scDetail}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){statusCodes}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){statusCodes}<LSEP>[](symbol){Code}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){status}<LEND>[](symbol){}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Selenium Status code: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){scDetail}<LSEP>[](symbol){Code}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Selenium Status summary: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){scDetail}<LSEP>[](symbol){Summary}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Selenium Status detail: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){scDetail}<LSEP>[](symbol){Detail}<LEND>[argument 2; litteral](str){\n}<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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){value}<LEND>[](symbol){message}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){messageDetail}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[](symbol){value}<LEND>[](symbol){message}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Selenium message: }<LSEP>[](symbol){messageDetail}<LSEP>[argument 2; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Response message:}<LEND>[argument 1; call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LSEP>[argument 1; litteral](str){UTF-8}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Please check the response with...}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Please check the content retur...}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){errorResponse}<LEND>[](symbol){response}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){errorContent}<LEND>[call](){}<LSEP>[](symbol){content}<LSEP>[](symbol){response}<LEND>[statement 9; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Selenium Server error}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; litteral](str){checkResponse}<LEND>[assign](){<-}<LSEP>[](symbol){errorResponse}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){errorResponse}<LEND>[assign](){<-}<LSEP>[](symbol){errorContent}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){errorContent}<LEND>[assign](){<-}<LSEP>[](symbol){retry}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){func}<LSEP>[](symbol){v}<LSEP>[](symbol){vArg}<LSEP>[](symbol){source}<LSEP>[](symbol){noTry}<LSEP>[](symbol){delay}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tryNo}<LSEP>[litteral](integer){1}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tryNo}<LSEP>[](symbol){noTry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tst}<LEND>[call](){}<LSEP>[](symbol){func}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){v}<LSEP>[](symbol){vArg}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){tst}<LSEP>[argument 1; litteral](str){checkResponse}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCalled }<LSEP>[](symbol){source}<LSEP>[argument 2; litteral](str){ - Try no: }<LSEP>[](symbol){tryNo}<LSEP>[argument 4; litteral](str){ of }<LSEP>[](symbol){noTry}<LSEP>[argument 6; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){tryNo}<LSEP>[](symbol){noTry}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){Sys.sleep}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){delay}<LSEP>[argument 1; litteral](real){1000.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tryNo}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tryNo}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tryNo}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){noTry}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LEND>[argument 0; call](){}<LSEP>[](symbol){func}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](str){checkResponse}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){func}<LSEP>[](symbol){res}<LEND>[](symbol){err}<LEND>[false branch; block](){}<LSEP>[](symbol){res}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){acceptAlertOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert_a...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){acceptAlertOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){dismissAlertOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert_d...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){dismissAlertOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){executeAsyncScriptOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){script}<LSEP>[](symbol){args}<LSEP>[](symbol){replace}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){wElement}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){elementId}<LEND>[false branch; block](){}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){script}<LSEP>[](symbol){args}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/execute...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){executeAsyncScriptOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){replace}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){testWebElement}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[](symbol){remDr}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){executeScriptOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){script}<LSEP>[](symbol){args}<LSEP>[](symbol){replace}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){wElement}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){elementId}<LEND>[false branch; block](){}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){script}<LSEP>[](symbol){args}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/execute}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){executeScriptOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){replace}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){testWebElement}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[](symbol){remDr}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getAlertTextOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert_text}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getAlertTextOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowHandleOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window_...}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowHandleOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowHandlesOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window_...}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowHandlesOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowPositionOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){handle}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){windowHandle}<LEND>[](symbol){handle}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowPositionOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowSizeOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){handle}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){windowHandle}<LEND>[](symbol){handle}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowSizeOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){maximizeWindowOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){handle}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){windowHandle}<LEND>[](symbol){handle}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){maximizeWindowOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){sendAlertTextOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){text}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){text}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert_text}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){sendAlertTextOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){setWindowPositionOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){handle}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){windowHandle}<LEND>[](symbol){handle}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){setWindowPositionOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){setWindowSizeOld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){width}<LSEP>[](symbol){height}<LSEP>[](symbol){handle}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){windowHandle}<LEND>[](symbol){handle}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){width}<LSEP>[](symbol){height}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){setWindowSizeOld}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){deleteSession}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){DELETE}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){deleteSession}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[litteral](NULL){NULL}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){newSession}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){desiredCapabilities}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){extraCapabilities}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){newSession}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionInfo}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){setTimeout}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){type}<LSEP>[](symbol){milliseconds}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){type}<LSEP>[](symbol){milliseconds}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/timeouts}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){setTimeout}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){addCookie}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){name}<LSEP>[](symbol){value}<LSEP>[](symbol){path}<LSEP>[](symbol){domain}<LSEP>[](symbol){secure}<LSEP>[](symbol){httpOnly}<LSEP>[](symbol){expiry}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cookie}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){name}<LSEP>[](symbol){value}<LSEP>[](symbol){path}<LSEP>[](symbol){domain}<LSEP>[](symbol){secure}<LSEP>[](symbol){httpOnly}<LSEP>[](symbol){expiry}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cookie}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cookie}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){cookie}<LSEP>[](symbol){is.null}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){cookie}<LEND>[argument 1; litteral](str){null}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/cookie}<LSEP>[](symbol){obj}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){addCookie}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 9; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){deleteAllCookies}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/cookie}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){DELETE}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){deleteAllCookies}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){deleteCookie}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){name}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){name}<LEND>[](symbol){name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/cookie/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){DELETE}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){deleteCookie}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){getAllCookies}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/cookie}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getAllCookies}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getNamedCookie}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){name}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){name}<LEND>[](symbol){name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/cookie/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getNamedCookie}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){closeWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){DELETE}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){closeWindow}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){fullscreenWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){fullscreenWindow}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowHandle}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowHandle}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowHandles}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowHandles}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowPosition}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowPosition}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getWindowSize}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getWindowSize}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){maximizeWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){maximizeWindow}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){setWindowPosition}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){setWindowPosition}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){setWindowSize}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){width}<LSEP>[](symbol){height}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){width}<LSEP>[](symbol){height}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window/...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){setWindowSize}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){switchToFrame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){Id}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){wElement}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Id}<LSEP>[](symbol){elementId}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){Id}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){null}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/frame}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){switchToFrame}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){switchToParentFrame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/frame/p...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){switchToParentFrame}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){switchToWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){name}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){name}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/window}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){switchToWindow}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.rDriver}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Remote Ip Address:}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){remServAdd}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Remote sessionId:}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){drvID}<LEND>[argument 2; litteral](str){\n}<LEND>[assign](){<-}<LSEP>[](symbol){print.wElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ElementId:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){elementId}<LEND>[argument 1; litteral](str){ELEMENT}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Remote Driver:}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){matchSelKeys}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; 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){names}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){key}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){key}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){selKeys}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){key}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){selKeys}<LEND>[statement 1; call](){}<LSEP>[](symbol){unname}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){selKeys}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\xEE\x80\x80}<LSEP>[argument 1; litteral](str){\xEE\x80\x81}<LSEP>[argument 2; litteral](str){\xEE\x80\x82}<LSEP>[argument 3; litteral](str){\xEE\x80\x83}<LSEP>[argument 4; litteral](str){\xEE\x80\x84}<LSEP>[argument 5; litteral](str){\xEE\x80\x85}<LSEP>[argument 6; litteral](str){\xEE\x80\x86}<LSEP>[argument 7; litteral](str){\xEE\x80\x87}<LSEP>[argument 8; litteral](str){\xEE\x80\x88}<LSEP>[argument 9; litteral](str){\xEE\x80\x89}<LSEP>[argument 10; litteral](str){\xEE\x80\x8A}<LSEP>[argument 11; litteral](str){\xEE\x80\x8B}<LSEP>[argument 12; litteral](str){\xEE\x80\x8C}<LSEP>[argument 13; litteral](str){\xEE\x80\x8D}<LSEP>[argument 14; litteral](str){\xEE\x80\x8E}<LSEP>[argument 15; litteral](str){\xEE\x80\x8F}<LSEP>[argument 16; litteral](str){\xEE\x80\x90}<LSEP>[argument 17; litteral](str){\xEE\x80\x91}<LSEP>[argument 18; litteral](str){\xEE\x80\x92}<LSEP>[argument 19; litteral](str){\xEE\x80\x93}<LSEP>[argument 20; litteral](str){\xEE\x80\x94}<LSEP>[argument 21; litteral](str){\xEE\x80\x95}<LSEP>[argument 22; litteral](str){\xEE\x80\x96}<LSEP>[argument 23; litteral](str){\xEE\x80\x97}<LSEP>[argument 24; litteral](str){\xEE\x80\x98}<LSEP>[argument 25; litteral](str){\xEE\x80\x99}<LSEP>[argument 26; litteral](str){\xEE\x80\x9A}<LSEP>[argument 27; litteral](str){\xEE\x80\x9B}<LSEP>[argument 28; litteral](str){\xEE\x80\x9C}<LSEP>[argument 29; litteral](str){\xEE\x80\x9D}<LSEP>[argument 30; litteral](str){\xEE\x80\x9E}<LSEP>[argument 31; litteral](str){\xEE\x80\x9F}<LSEP>[argument 32; litteral](str){\xEE\x80\xA0}<LSEP>[argument 33; litteral](str){\xEE\x80\xA1}<LSEP>[argument 34; litteral](str){\xEE\x80\xA2}<LSEP>[argument 35; litteral](str){\xEE\x80\xA3}<LSEP>[argument 36; litteral](str){\xEE\x80\xA4}<LSEP>[argument 37; litteral](str){\xEE\x80\xA5}<LSEP>[argument 38; litteral](str){\xEE\x80\xA6}<LSEP>[argument 39; litteral](str){\xEE\x80\xA7}<LSEP>[argument 40; litteral](str){\xEE\x80\xA8}<LSEP>[argument 41; litteral](str){\xEE\x80\xA9}<LSEP>[argument 42; litteral](str){\xEE\x80\xB1}<LSEP>[argument 43; litteral](str){\xEE\x80\xB2}<LSEP>[argument 44; litteral](str){\xEE\x80\xB3}<LSEP>[argument 45; litteral](str){\xEE\x80\xB4}<LSEP>[argument 46; litteral](str){\xEE\x80\xB5}<LSEP>[argument 47; litteral](str){\xEE\x80\xB6}<LSEP>[argument 48; litteral](str){\xEE\x80\xB7}<LSEP>[argument 49; litteral](str){\xEE\x80\xB8}<LSEP>[argument 50; litteral](str){\xEE\x80\xB9}<LSEP>[argument 51; litteral](str){\xEE\x80\xBA}<LSEP>[argument 52; litteral](str){\xEE\x80\xBB}<LSEP>[argument 53; litteral](str){\xEE\x80\xBC}<LSEP>[argument 54; litteral](str){\xEE\x80\xBD}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){null}<LSEP>[argument 1; litteral](str){cancel}<LSEP>[argument 2; litteral](str){help}<LSEP>[argument 3; litteral](str){backspace}<LSEP>[argument 4; litteral](str){tab}<LSEP>[argument 5; litteral](str){clear}<LSEP>[argument 6; litteral](str){return}<LSEP>[argument 7; litteral](str){enter}<LSEP>[argument 8; litteral](str){shift}<LSEP>[argument 9; litteral](str){control}<LSEP>[argument 10; litteral](str){alt}<LSEP>[argument 11; litteral](str){pause}<LSEP>[argument 12; litteral](str){escape}<LSEP>[argument 13; litteral](str){space}<LSEP>[argument 14; litteral](str){page_up}<LSEP>[argument 15; litteral](str){page_down}<LSEP>[argument 16; litteral](str){end}<LSEP>[argument 17; litteral](str){home}<LSEP>[argument 18; litteral](str){left_arrow}<LSEP>[argument 19; litteral](str){up_arrow}<LSEP>[argument 20; litteral](str){right_arrow}<LSEP>[argument 21; litteral](str){down_arrow}<LSEP>[argument 22; litteral](str){insert}<LSEP>[argument 23; litteral](str){delete}<LSEP>[argument 24; litteral](str){semicolon}<LSEP>[argument 25; litteral](str){equals}<LSEP>[argument 26; litteral](str){numpad_0}<LSEP>[argument 27; litteral](str){numpad_1}<LSEP>[argument 28; litteral](str){numpad_2}<LSEP>[argument 29; litteral](str){numpad_3}<LSEP>[argument 30; litteral](str){numpad_4}<LSEP>[argument 31; litteral](str){numpad_5}<LSEP>[argument 32; litteral](str){numpad_6}<LSEP>[argument 33; litteral](str){numpad_7}<LSEP>[argument 34; litteral](str){numpad_8}<LSEP>[argument 35; litteral](str){numpad_9}<LSEP>[argument 36; litteral](str){multiply}<LSEP>[argument 37; litteral](str){add}<LSEP>[argument 38; litteral](str){separator}<LSEP>[argument 39; litteral](str){subtract}<LSEP>[argument 40; litteral](str){decimal}<LSEP>[argument 41; litteral](str){divide}<LSEP>[argument 42; litteral](str){f1}<LSEP>[argument 43; litteral](str){f2}<LSEP>[argument 44; litteral](str){f3}<LSEP>[argument 45; litteral](str){f4}<LSEP>[argument 46; litteral](str){f5}<LSEP>[argument 47; litteral](str){f6}<LSEP>[argument 48; litteral](str){f7}<LSEP>[argument 49; litteral](str){f8}<LSEP>[argument 50; litteral](str){f9}<LSEP>[argument 51; litteral](str){f10}<LSEP>[argument 52; litteral](str){f11}<LSEP>[argument 53; litteral](str){f12}<LSEP>[argument 54; litteral](str){command_meta}<LEND>[assign](){<-}<LSEP>[](symbol){testWebElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){remDr}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){replaceWE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){remDr}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ELEMENT}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){wbElement}<LSEP>[](symbol){x}<LSEP>[](symbol){remDr}<LEND>[false branch; block](){}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](integer){0}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){listTest}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){x}<LSEP>[](symbol){inherits}<LSEP>[argument 2; litteral](str){list}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){listTest}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){x}<LSEP>[](symbol){testWebElement}<LSEP>[](symbol){remDr}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){replaceWE}<LSEP>[](symbol){x}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){findElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){using}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){using}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){findElement}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){wbElement}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){findElementFromElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){using}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){using}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){findElementFromElement}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 9; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){wbElement}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){findElements}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){using}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){using}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/elements}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){findElements}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[](symbol){wbElement}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){findElementsFromElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){using}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){using}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){using}<LSEP>[](symbol){value}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){findElementsFromElement}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 9; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[](symbol){wbElement}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){getActiveElement}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getActiveElement}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){wbElement}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[](symbol){remDr}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){back}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/back}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){back}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){forward}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/forward}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){forward}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){getCurrentUrl}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/url}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getCurrentUrl}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getTitle}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/title}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getTitle}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){go}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){url}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){url}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/url}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){go}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){refresh}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/refresh}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){refresh}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){getElementAttribute}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){attribute}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){name}<LEND>[](symbol){attribute}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getElementAttribute}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getElementCssValue}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){propertyName}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){propertyName}<LEND>[](symbol){propertyName}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getElementCssValue}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getElementProperty}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){property}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){name}<LEND>[](symbol){property}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getElementProperty}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getElementRect}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getElementRect}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getElementTagName}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getElementTagName}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){getElementText}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getElementText}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){isElementEnabled}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){isElementEnabled}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){isElementSelected}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){isElementSelected}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){acceptAlert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert/a...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){acceptAlert}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){dismissAlert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert/d...}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){dismissAlert}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){getAlertText}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert/text}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){GET}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){getAlertText}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[assign](){<-}<LSEP>[](symbol){sendAlertText}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){text}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){text}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/alert/text}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){sendAlertText}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){elementClear}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){elementClear}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){webElem}<LEND>[assign](){<-}<LSEP>[](symbol){elementClick}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jsonBody}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){elementClick}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){webElem}<LEND>[assign](){<-}<LSEP>[](symbol){elementSendKeys}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){webElem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){elementId}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){elementId}<LEND>[](symbol){ELEMENT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sendKeys}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){matchSelKeys}<LSEP>[](symbol){sendKeys}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/element...}<LSEP>[](symbol){obj}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](str){remDr}<LEND>[argument 1; litteral](str){remServAdd}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){elementSendKeys}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){webElem}<LSEP>[](symbol){remDr}<LEND>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 9; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){webElem}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){performActions}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jsonBody}<LEND>[call](){}<LSEP>[](symbol){toJSON}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/actions}<LSEP>[](symbol){obj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){POST}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){performActions}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[](symbol){jsonBody}<LSEP>[](symbol){...}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){releasingActions}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){remDr}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){sessionId}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pathTemplate}<LEND>[call](){}<LSEP>[](symbol){whisker.render}<LSEP>[argument 0; litteral](str){/session/{{sessionId}}/actions}<LSEP>[](symbol){obj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pathURL}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){remDr}<LSEP>[argument 1; litteral](str){remServAdd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pathURL}<LSEP>[argument 1; litteral](str){path}<LEND>[](symbol){pathTemplate}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){queryDriver}<LSEP>[](symbol){DELETE}<LEND>[argument 1; call](){}<LSEP>[](symbol){build_url}<LSEP>[](symbol){pathURL}<LEND>[argument 2; litteral](str){releasingActions}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){remDr}<LSEP>[](symbol){drvID}<LEND>[argument 4; litteral](NULL){NULL}<LSEP>[](symbol){...}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL}