ast
stringlengths 16
28.2M
|
---|
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){takeElementScreenshot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){webElem}<LSEP>[](symbol){file}<LSEP>[](symbol){display}<LSEP>[](symbol){useViewer}<LSEP>[](symbol){returnPNG}<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){takeElementScreenshot}<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; assign](){<-}<LSEP>[](symbol){b64png}<LEND>[call](){}<LSEP>[](symbol){base64_dec}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){display}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[argument 1; litteral](str){tmpElementScreenShot.png}<LEND>[statement 1; call](){}<LSEP>[](symbol){writeBin}<LSEP>[](symbol){b64png}<LSEP>[](symbol){tmp}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){viewer}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){viewer}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){useViewer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){viewer}<LSEP>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){browseURL}<LEND>[](symbol){tmp}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeBin}<LSEP>[](symbol){b64png}<LSEP>[](symbol){file}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){returnPNG}<LEND>[true branch; block](){}<LSEP>[](symbol){b64png}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){webElem}<LEND>[assign](){<-}<LSEP>[](symbol){takeScreenshot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){remDr}<LSEP>[](symbol){file}<LSEP>[](symbol){display}<LSEP>[](symbol){useViewer}<LSEP>[](symbol){returnPNG}<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}}/screenshot}<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){takeScreenshot}<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>[](symbol){b64png}<LEND>[call](){}<LSEP>[](symbol){base64_dec}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){display}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[argument 1; litteral](str){tmpScreenShot.png}<LEND>[statement 1; call](){}<LSEP>[](symbol){writeBin}<LSEP>[](symbol){b64png}<LSEP>[](symbol){tmp}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){viewer}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){viewer}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){useViewer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){viewer}<LSEP>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){browseURL}<LEND>[](symbol){tmp}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeBin}<LSEP>[](symbol){b64png}<LSEP>[](symbol){file}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){returnPNG}<LEND>[true branch; block](){}<LSEP>[](symbol){b64png}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){remDr} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.onLoad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){libname}<LSEP>[](symbol){pkgname}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){options}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){op.seleniumPipes}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[argument 4; litteral](integer){3}<LSEP>[argument 5; litteral](integer){5000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){toset}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){op.seleniumPipes}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){op}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){toset}<LEND>[true branch; call](){}<LSEP>[](symbol){options}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){op.seleniumPipes}<LSEP>[](symbol){toset}<LEND>[statement 4; call](){}<LSEP>[](symbol){invisible}<LEND>[assign](){<-}<LSEP>[](symbol){.e}<LEND>[call](){}<LSEP>[](symbol){new.env}<LEND>[argument 0; call](){}<LSEP>[](symbol){emptyenv}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.e}<LSEP>[](symbol){sessionId}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[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}<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){executeAsyncScript}<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){executeAsyncScript}<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){executeScript}<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){executeScript}<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){getPageSource}<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}}/source}<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){getPageSource}<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){read_html}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){value} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){api_example_tests}<LEND>[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>[call](){}<LSEP>[](symbol){source}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){find.package}<LSEP>[argument 0; litteral](str){seleniumPipes}<LEND>[argument 1; litteral](str){Saucetests}<LSEP>[argument 2; litteral](str){setup.R}<LEND>[argument 1; litteral](logical){TRUE}<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; 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 1; 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; 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 1; 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; 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 1; 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){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 1; 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; 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 1; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](real){48.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[statement 2; 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; 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 1; 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; 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 1; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<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; 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 1; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<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; 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 1; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<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; 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 1; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<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){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 1; 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; 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 1; 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 2; 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; 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 1; 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 2; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){num_by_xpath}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){elems}<LEND>[statement 3; 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 4; 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; 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 1; 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; assign](){=}<LSEP>[](symbol){title_1}<LSEP>[litteral](str){XHTML Test Page}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){title_2}<LSEP>[litteral](str){We Arrive Here}<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){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 3; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){title_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LSEP>[](symbol){getTitle}<LEND>[statement 4; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){5.000000}<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}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowHandles}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){currentWindow}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowHandle}<LSEP>[argument 0; litteral](logical){FALSE}<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){inherits}<LSEP>[](symbol){chk}<LSEP>[argument 1; litteral](str){simpleError}<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){%>%}<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; 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 1; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elem}<LSEP>[](symbol){isElementEnabled}<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){//input[@id='notWorking']}<LEND>[statement 3; 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; 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 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){id}<LSEP>[argument 1; litteral](str){multi}<LEND>[statement 2; 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 3; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<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){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[statement 7; 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 8; 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 9; call](){}<LSEP>[](symbol){Sys.sleep}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[statement 10; 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 11; 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){%>%}<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; 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 2; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){seleniumPipes}<LSEP>[](symbol){back}<LEND>[statement 3; 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 4; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){forward}<LEND>[statement 5; 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; 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 1; 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; 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 1; 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 2; 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; 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;}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){chk}<LSEP>[argument 1; litteral](str){simpleError}<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 2; 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; 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...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){chk}<LSEP>[argument 1; litteral](str){simpleError}<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 2; 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; 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>[argument 2; litteral](logical){FALSE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){chk}<LSEP>[argument 1; litteral](str){simpleError}<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 2; 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; 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>[argument 2; litteral](logical){FALSE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){chk}<LSEP>[argument 1; litteral](str){simpleError}<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 2; 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; 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>[argument 2; litteral](logical){FALSE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[](symbol){e}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){chk}<LSEP>[argument 1; litteral](str){simpleError}<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 2; 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; 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 1; 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; 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 1; 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 2; call](){}<LSEP>[](symbol){expect_identical}<LSEP>[](symbol){visible}<LSEP>[argument 1; litteral](str){visible}<LEND>[statement 3; 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){return}<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; call](){}<LSEP>[](symbol){return}<LEND>[statement 3; 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}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){new_x}<LSEP>[litteral](real){50.000000}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){new_y}<LSEP>[litteral](real){50.000000}<LEND>[statement 6; 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 7; 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 8; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setWindowPosition}<LSEP>[](symbol){new_x}<LSEP>[](symbol){new_y}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){loc}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowPosition}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_less_than}<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 11; call](){}<LSEP>[](symbol){expect_less_than}<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){return}<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; call](){}<LSEP>[](symbol){return}<LEND>[statement 3; 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 4; 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 5; 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 6; 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 7; 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 8; assign](){<-}<LSEP>[](symbol){size}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getWindowSize}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_less_than}<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 10; call](){}<LSEP>[](symbol){expect_less_than}<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){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>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){seleniumPipes}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){RSauceLabs}<LEND>[assign](){<-}<LSEP>[](symbol){travis}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){TRAVIS}<LEND>[argument 1; litteral](str){true}<LEND>[assign](){<-}<LSEP>[](symbol){oldRetry}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_no_try_delay}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){1000.000000}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[control flow](){if}<LSEP>[](symbol){travis}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){user}<LEND>[call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){SAUCE_USERNAME}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pass}<LEND>[call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){SAUCE_ACCESS_KEY}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){SLAccount}<LEND>[call](){}<LSEP>[](symbol){account}<LSEP>[](symbol){user}<LSEP>[](symbol){pass}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jobNo}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){TRAVIS_JOB_NUMBER}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){jobNo}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.100001}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){quit}<LSEP>[argument 0; litteral](str){no}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){user}<LSEP>[litteral](str){seleniumPipes}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pass}<LEND>[call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){SLPASS}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){SLAccount}<LEND>[call](){}<LSEP>[](symbol){account}<LSEP>[](symbol){user}<LSEP>[](symbol){pass}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){pass}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Set a SLPASS env variable with...}<LEND>[assign](){<-}<LSEP>[](symbol){tunnels}<LEND>[call](){}<LSEP>[](symbol){getTunnels}<LSEP>[](symbol){SLAccount}<LSEP>[](symbol){user}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tunnels}<LEND>[argument 1; litteral](integer){0}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){quit}<LSEP>[argument 0; litteral](str){no}<LEND>[assign](){<-}<LSEP>[](symbol){appTunnels}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){tunnels}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){getTunnel}<LSEP>[](symbol){SLAccount}<LSEP>[](symbol){user}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){supPlat}<LEND>[call](){}<LSEP>[](symbol){getSupportedPlatforms}<LSEP>[](symbol){SLAccount}<LEND>[assign](){<-}<LSEP>[](symbol){supPlat}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){supPlat}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){short_version}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dev}<LSEP>[argument 1; litteral](str){beta}<LEND>[assign](){<-}<LSEP>[](symbol){supPlat}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){supPlat}<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){api_name}<LSEP>[argument 1; litteral](str){firefox}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){short_version}<LEND>[argument 1; litteral](real){47.999000}<LEND>[assign](){<-}<LSEP>[](symbol){supPlat}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){supPlat}<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){api_name}<LSEP>[argument 1; litteral](str){chrome}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){short_version}<LEND>[argument 1; litteral](real){51.999000}<LEND>[assign](){<-}<LSEP>[](symbol){port}<LSEP>[litteral](real){80.000000}<LEND>[assign](){<-}<LSEP>[](symbol){ip}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){http://}<LSEP>[](symbol){user}<LSEP>[argument 2; litteral](str){:}<LSEP>[](symbol){pass}<LSEP>[argument 4; litteral](str){@ondemand.saucelabs.com}<LEND>[assign](){<-}<LSEP>[](symbol){testDir}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){Saucetests}<LSEP>[argument 1; litteral](str){seleniumPipes}<LEND>[assign](){<-}<LSEP>[](symbol){osBrowser}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){supPlat}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){api_name}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){chrome}<LSEP>[argument 1; litteral](str){firefox}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){short_version}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){os}<LSEP>[](symbol){api_name}<LEND>[call](){}<LSEP>[](symbol){setnames}<LSEP>[](symbol){osBrowser}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){api_name}<LSEP>[argument 1; litteral](str){os}<LSEP>[argument 2; litteral](str){V1}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){browser}<LSEP>[argument 1; litteral](str){os}<LSEP>[argument 2; litteral](str){version}<LEND>[assign](){<-}<LSEP>[](symbol){testResults}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){os}<LSEP>[](symbol){browser}<LSEP>[](symbol){version}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selOptions}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ip}<LSEP>[](symbol){port}<LSEP>[](symbol){browser}<LSEP>[](symbol){os}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){user}<LSEP>[](symbol){pass}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){travis}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){selOptions}<LSEP>[](symbol){extraCapabilities}<LEND>[argument 1; litteral](str){tunnel-identifier}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){appTunnels}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tunnel_identifier}<LEND>[statement 2; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){selOptions}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){testRes}<LEND>[call](){}<LSEP>[](symbol){test_dir}<LSEP>[](symbol){testDir}<LSEP>[argument 1; litteral](str){Tap}<LSEP>[argument 2; litteral](str){api_example}<LEND>[statement 4; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){seleniumPipes_sauceID}<LEND>[](symbol){testRes}<LSEP>[](symbol){browser}<LSEP>[](symbol){os}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){osBrowser}<LSEP>[](symbol){os}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){osBrowser}<LSEP>[](symbol){browser}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){osBrowser}<LSEP>[](symbol){version}<LEND>[assign](){<-}<LSEP>[](symbol){pv}<LEND>[call](){}<LSEP>[](symbol){packageVersion}<LSEP>[argument 0; litteral](str){seleniumPipes}<LEND>[assign](){<-}<LSEP>[](symbol){updateResults}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){testResults}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){updateJob}<LSEP>[](symbol){SLAccount}<LSEP>[](symbol){user}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){id}<LEND>[argument 3; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[](symbol){failed}<LEND>[argument 1; litteral](integer){0}<LEND>[argument 4; 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>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){test}<LSEP>[argument 1; litteral](str){failed}<LSEP>[argument 2; litteral](str){error}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){oldRetry} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://www.google.com/ncr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCookie}<LSEP>[argument 0; litteral](str){NID}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){addCookie}<LSEP>[argument 0; litteral](str){myCookie}<LSEP>[argument 1; litteral](str){12}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCookie}<LSEP>[argument 0; litteral](str){myCookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteCookie}<LSEP>[argument 0; litteral](str){myCookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCookie}<LSEP>[argument 0; litteral](str){myCookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteAllCookies}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getCookie}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://cran.r-project.org/}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){frames}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_attr}<LSEP>[argument 0; litteral](str){name}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){DOCUMENT}<LSEP>[litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){xml2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){httr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rvest}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){rapportools}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){whisker}<LEND>[assign](){<-}<LSEP>[](symbol){appURL}<LSEP>[litteral](str){https://w3c.github.io/webdrive...}<LEND>[assign](){<-}<LSEP>[](symbol){doc}<LEND>[call](){}<LSEP>[](symbol){read_html}<LSEP>[](symbol){appURL}<LEND>[assign](){<-}<LSEP>[](symbol){tabXpath}<LSEP>[litteral](str){//section[h3[text()='List of E...}<LEND>[assign](){<-}<LSEP>[](symbol){methPaths}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){html_table}<LEND>[argument 0; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[](symbol){doc}<LSEP>[](symbol){tabXpath}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){setDT}<LSEP>[](symbol){methPaths}<LEND>[call](){}<LSEP>[](symbol){setnames}<LSEP>[](symbol){methPaths}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){methPaths}<LEND>[argument 2; call](){}<LSEP>[](symbol){tocamel}<LEND>[argument 0; call](){}<LSEP>[](symbol){tolower}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){methPaths}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){command}<LEND>[argument 1; call](){}<LSEP>[](symbol){tocamel}<LEND>[argument 0; call](){}<LSEP>[](symbol){tolower}<LSEP>[](symbol){command}<LEND>[assign](){<-}<LSEP>[](symbol){oldSelMethods}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){GET}<LSEP>[argument 1; litteral](str){/session/{session id}/window_h...}<LSEP>[argument 2; litteral](str){getWindowHandleOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){GET}<LSEP>[argument 1; litteral](str){/session/{session id}/window_h...}<LSEP>[argument 2; litteral](str){getWindowHandlesOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){GET}<LSEP>[argument 1; litteral](str){/session/{sessionId}/window/{w...}<LSEP>[argument 2; litteral](str){getWindowSizeOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){GET}<LSEP>[argument 1; litteral](str){/session/{sessionId}/window/{w...}<LSEP>[argument 2; litteral](str){getWindowPositionOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{sessionId}/window/{w...}<LSEP>[argument 2; litteral](str){setWindowSizeOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 5; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{sessionId}/window/{w...}<LSEP>[argument 2; litteral](str){setWindowPositionOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 6; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{sessionId}/window/{w...}<LSEP>[argument 2; litteral](str){maximizeWindowOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 7; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{session id}/execute}<LSEP>[argument 2; litteral](str){executeScriptOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 8; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{session id}/execute_...}<LSEP>[argument 2; litteral](str){executeAsyncScriptOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 9; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){GET}<LSEP>[argument 1; litteral](str){/session/{session id}/alert_text}<LSEP>[argument 2; litteral](str){getAlertTextOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 10; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{session id}/alert_text}<LSEP>[argument 2; litteral](str){sendAlertTextOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 11; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{session id}/alert_ac...}<LSEP>[argument 2; litteral](str){acceptAlertOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 12; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](str){POST}<LSEP>[argument 1; litteral](str){/session/{session id}/alert_di...}<LSEP>[argument 2; litteral](str){dismissAlertOld}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){methPaths}<LEND>[call](){}<LSEP>[](symbol){rbindlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){methPaths}<LEND>[argument 1; call](){}<LSEP>[](symbol){rbindlist}<LSEP>[](symbol){oldSelMethods}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){uriTemplate}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){/session/\\{session id)/cookie}<LSEP>[argument 1; litteral](str){/session/\\{session id\\}/cookie}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){uriTemplate}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){session id}<LSEP>[argument 1; litteral](str){sessionId}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){uriTemplate}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){element id}<LSEP>[argument 1; litteral](str){elementId}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){uriTemplate}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\{property name\\}}<LSEP>[argument 1; litteral](str){\\{propertyName\\}}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){uriTemplate}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\{}<LSEP>[argument 1; litteral](str){\\{\\{}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){uriTemplate}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\}}<LSEP>[argument 1; litteral](str){\\}\\}}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){elemInd}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){\\{elementId\\}}<LSEP>[](symbol){uriTemplate}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){Arg}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LSEP>[](symbol){elemInd}<LSEP>[argument 1; litteral](str){webElem}<LSEP>[argument 2; litteral](str){remDr}<LEND>[assign](){<-}<LSEP>[](symbol){methGroups}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){newSession}<LSEP>[argument 1; litteral](str){deleteSession}<LSEP>[argument 2; litteral](str){setTimeout}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){go}<LSEP>[argument 1; litteral](str){getCurrentUrl}<LSEP>[argument 2; litteral](str){back}<LSEP>[argument 3; litteral](str){forward}<LSEP>[argument 4; litteral](str){refresh}<LSEP>[argument 5; litteral](str){getTitle}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){getWindowHandle}<LSEP>[argument 1; litteral](str){closeWindow}<LSEP>[argument 2; litteral](str){switchToWindow}<LSEP>[argument 3; litteral](str){getWindowHandles}<LSEP>[argument 4; litteral](str){switchToFrame}<LSEP>[argument 5; litteral](str){switchToParentFrame}<LSEP>[argument 6; litteral](str){getWindowSize}<LSEP>[argument 7; litteral](str){setWindowSize}<LSEP>[argument 8; litteral](str){getWindowPosition}<LSEP>[argument 9; litteral](str){setWindowPosition}<LSEP>[argument 10; litteral](str){maximizeWindow}<LSEP>[argument 11; litteral](str){fullscreenWindow}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){getActiveElement}<LSEP>[argument 1; litteral](str){findElement}<LSEP>[argument 2; litteral](str){findElements}<LSEP>[argument 3; litteral](str){findElementFromElement}<LSEP>[argument 4; litteral](str){findElementsFromElement}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){isElementSelected}<LSEP>[argument 1; litteral](str){getElementAttribute}<LSEP>[argument 2; litteral](str){getElementProperty}<LSEP>[argument 3; litteral](str){getElementCssValue}<LSEP>[argument 4; litteral](str){getElementText}<LSEP>[argument 5; litteral](str){getElementTagName}<LSEP>[argument 6; litteral](str){getElementRect}<LSEP>[argument 7; litteral](str){isElementEnabled}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){elementClick}<LSEP>[argument 1; litteral](str){elementClear}<LSEP>[argument 2; litteral](str){elementSendKeys}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){getPageSource}<LSEP>[argument 1; litteral](str){executeScript}<LSEP>[argument 2; litteral](str){executeAsyncScript}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){getAllCookies}<LSEP>[argument 1; litteral](str){getNamedCookie}<LSEP>[argument 2; litteral](str){addCookie}<LSEP>[argument 3; litteral](str){deleteCookie}<LSEP>[argument 4; litteral](str){deleteAllCookies}<LEND>[argument 8; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){performActions}<LSEP>[argument 1; litteral](str){releasingActions}<LEND>[argument 9; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dismissAlert}<LSEP>[argument 1; litteral](str){acceptAlert}<LSEP>[argument 2; litteral](str){getAlertText}<LSEP>[argument 3; litteral](str){sendAlertText}<LEND>[argument 10; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){takeScreenshot}<LSEP>[argument 1; litteral](str){takeElementScreenshot}<LEND>[argument 11; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){getWindowHandleOld}<LSEP>[argument 1; litteral](str){getWindowHandlesOld}<LSEP>[argument 2; litteral](str){getWindowPositionOld}<LSEP>[argument 3; litteral](str){getWindowSizeOld}<LSEP>[argument 4; litteral](str){setWindowSizeOld}<LSEP>[argument 5; litteral](str){setWindowPositionOld}<LSEP>[argument 6; litteral](str){maximizeWindowOld}<LSEP>[argument 7; litteral](str){executeScriptOld}<LSEP>[argument 8; litteral](str){executeAsyncScriptOld}<LSEP>[argument 9; litteral](str){getAlertTextOld}<LSEP>[argument 10; litteral](str){sendAlertTextOld}<LSEP>[argument 11; litteral](str){acceptAlertOld}<LSEP>[argument 12; litteral](str){dismissAlertOld}<LEND>[assign](){<-}<LSEP>[](symbol){methGroups}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){methGroups}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expand.grid}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){methGroups}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){methGroups}<LEND>[call](){}<LSEP>[](symbol){rbindlist}<LSEP>[](symbol){methGroups}<LEND>[assign](){<-}<LSEP>[](symbol){methPaths}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){methGroups}<LSEP>[argument 2; litteral](str){command}<LEND>[assign](){<-}<LSEP>[](symbol){funcTemp}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){#' {{command}}\n#'\n#'{{codeco...}<LSEP>[argument 1; litteral](str){\n#' @rdname {{command}}\n{{co...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){#' {{command}}\n#'\n#'{{codeco...}<LSEP>[argument 1; litteral](str){\n#' @rdname {{command}}\n{{co...}<LEND>[assign](){<-}<LSEP>[](symbol){selReturn}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){invisible(remDr)}<LSEP>[argument 1; litteral](str){res$value}<LSEP>[argument 2; litteral](str){read_html(res$value)}<LSEP>[argument 3; litteral](str){invisible(wbElement(res$value,...}<LSEP>[argument 4; litteral](str){invisible(lapply(res$value, wb...}<LSEP>[argument 5; litteral](str){if(replace){testWebElement(res...}<LSEP>[argument 6; litteral](str){invisible(webElem)}<LSEP>[argument 7; litteral](str){remDr$sessionInfo <- res$value...}<LSEP>[argument 8; litteral](str){.e$sessionId[[remDr$drvID]] <-...}<LSEP>[argument 9; litteral](str){invisible(wbElement(res$value,...}<LSEP>[argument 10; litteral](str){invisible(lapply(res$value, wb...}<LSEP>[argument 11; litteral](str){b64png <- base64_dec(res$value...}<LSEP>[argument 12; litteral](str){b64png <- base64_dec(res$value...}<LEND>[assign](){<-}<LSEP>[](symbol){JCommands}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LSEP>[argument 1; litteral](str){ret8}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret9}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 8; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret3}<LEND>[argument 9; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 10; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 11; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 12; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret1}<LEND>[argument 13; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 14; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 15; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 16; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 17; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$windowHandle <- handle}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){"current"}<LEND>[argument 2; litteral](str){ret2}<LEND>[argument 18; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 19; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$windowHandle <- handle}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){"current"}<LEND>[argument 2; litteral](str){ret2}<LEND>[argument 20; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n jsonBody <- toJSON(list(\n...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 21; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$windowHandle <- handle\n ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](str){"current"}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 22; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n jsonBody <- toJSON(list(\n...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 23; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$windowHandle <- handle\n ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](str){"current"}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 24; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL\n}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 25; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL\nobj$windowHa...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){"current"}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 26; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){NULL}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 27; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 28; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){c("xpath", "css selector",...}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret4}<LEND>[argument 29; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){c("xpath", "css selector",...}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret10}<LEND>[argument 30; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){c("xpath", "css selector",...}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret5}<LEND>[argument 31; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n# Add function specific JSON...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){c("xpath", "css selector",...}<LSEP>[argument 1; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret11}<LEND>[argument 32; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret4}<LEND>[argument 33; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 34; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$name <- attribute}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret2}<LEND>[argument 35; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$name <- property}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret2}<LEND>[argument 36; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$propertyName <- propertyName}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 2; litteral](str){ret2}<LEND>[argument 37; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 38; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 39; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 40; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 41; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL}<LSEP>[argument 1; litteral](str){ret7}<LEND>[argument 42; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL}<LSEP>[argument 1; litteral](str){ret7}<LEND>[argument 43; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){sendKeys <- list(...)\n j...}<LSEP>[argument 1; litteral](str){ret7}<LEND>[argument 44; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n args <- lapply(args, funct...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](str){list()}<LSEP>[argument 2; litteral](str){TRUE}<LEND>[argument 2; litteral](str){ret6}<LEND>[argument 45; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n args <- lapply(args, fun...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](str){list()}<LSEP>[argument 2; litteral](str){TRUE}<LEND>[argument 2; litteral](str){ret6}<LEND>[argument 46; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n args <- lapply(args, funct...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](str){list()}<LSEP>[argument 2; litteral](str){TRUE}<LEND>[argument 2; litteral](str){ret6}<LEND>[argument 47; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n args <- lapply(args, fun...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](str){list()}<LSEP>[argument 2; litteral](str){TRUE}<LEND>[argument 2; litteral](str){ret6}<LEND>[argument 48; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 49; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$name <- name}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){NULL}<LEND>[argument 2; litteral](str){ret2}<LEND>[argument 50; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n cookie <- list(name = name...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](str){NULL}<LSEP>[argument 3; litteral](str){NULL}<LSEP>[argument 4; litteral](str){FALSE}<LSEP>[argument 5; litteral](str){NULL}<LSEP>[argument 6; litteral](str){NULL}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 51; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){obj$name <- name}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){NULL}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 52; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret1}<LEND>[argument 53; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 54; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 55; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 56; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){jsonBody <- NULL}<LSEP>[argument 1; litteral](str){ret1}<LEND>[argument 57; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 58; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){ret2}<LEND>[argument 59; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n jsonBody <- toJSON(list(...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){""}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 60; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n jsonBody <- toJSON(list(...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){""}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 61; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){\n jsonBody <- toJSON(lis...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){"page load"}<LSEP>[argument 1; litteral](real){10000.000000}<LEND>[argument 2; litteral](str){ret1}<LEND>[argument 62; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){NULL}<LSEP>[argument 1; litteral](str){getOption("seleniumPipes_disp...}<LSEP>[argument 2; litteral](str){!is.null(getOption("viewer"))}<LSEP>[argument 3; litteral](str){FALSE}<LEND>[argument 1; litteral](str){ret12}<LEND>[argument 63; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){NULL}<LSEP>[argument 1; litteral](str){getOption("seleniumPipes_disp...}<LSEP>[argument 2; litteral](str){!is.null(getOption("viewer"))}<LSEP>[argument 3; litteral](str){FALSE}<LEND>[argument 1; litteral](str){ret13}<LEND>[assign](){<-}<LSEP>[](symbol){selPipeFuncs}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){rowSplit}<LSEP>[](symbol){methPaths}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){appFunc}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){JCommands}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){command}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){appCommand}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){appFunc}<LSEP>[argument 1; litteral](str){com}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){method}<LEND>[argument 1; litteral](str){POST}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){defCommand}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){JCommands}<LSEP>[argument 1; litteral](str){default}<LEND>[argument 1; litteral](str){com}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){JSON_command}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){appCommand}<LEND>[](symbol){appCommand}<LSEP>[](symbol){defCommand}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){JSON}<LEND>[litteral](str){jsonBody}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){JSON_command}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){appCommand}<LEND>[true branch; block](){}<LSEP>[](symbol){appCommand}<LEND>[false branch; block](){}<LSEP>[statement 0; litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){JSON}<LEND>[litteral](str){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){JCommands}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){command}<LEND>[argument 1; litteral](str){args}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){args}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){addArgs}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){name}<LSEP>[](symbol){args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){, }<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ = }<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){args}<LSEP>[](symbol){x}<LEND>[argument 3; litteral](str){, }<LEND>[argument 1; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){roxyArgs}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){#' @param }<LEND>[argument 1; call](){}<LSEP>[](symbol){name}<LSEP>[](symbol){args}<LEND>[argument 2; litteral](str){\n}<LEND>[argument 1; litteral](str){#'}<LEND>[argument 1; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){roxyArgs}<LEND>[litteral](str){#'}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){type}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){appFunc}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){JCommands}<LSEP>[argument 1; litteral](str){default}<LEND>[argument 1; litteral](str){type}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){appFunc}<LSEP>[argument 1; litteral](str){type}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){return}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){selReturn}<LSEP>[](symbol){type}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){rettype}<LEND>[](symbol){type}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){codecommand}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){\\code{}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){command}<LEND>[argument 2; litteral](str){}}<LEND>[statement 9; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){whisker.render}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){funcTemp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Arg}<LEND>[argument 1; litteral](str){fbody}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){whisker.render}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){funcTemp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Arg}<LEND>[argument 1; litteral](str){roxy}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){methPaths}<LSEP>[argument 1; litteral](str){selFuncs}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){selPipeFuncs}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](str){fbody}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){methPaths}<LSEP>[argument 1; litteral](str){selRoxy}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){selPipeFuncs}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](str){roxy}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){write}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){R/}<LSEP>[](symbol){group}<LSEP>[argument 2; litteral](str){.R}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){selFuncs}<LSEP>[argument 1; litteral](str){}<LEND>[](symbol){group}<LEND>[control flow](){if}<LSEP>[](symbol){DOCUMENT}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){methPaths}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){write}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){R/}<LSEP>[](symbol){group}<LSEP>[argument 2; litteral](str){Doc.R}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){selRoxy}<LSEP>[argument 1; litteral](str){}<LEND>[](symbol){group} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://cran.r-project.org/}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){frames}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_attr}<LSEP>[argument 0; litteral](str){name}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){table tr:nth-child(2)}<LEND>[assign](){<-}<LSEP>[](symbol){links}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementsFromElement}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){a}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://www.google.com/ncr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){sScript}<LSEP>[litteral](str){setTimeout(function(){alert('H...}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){sScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){dismissAlert}<LEND>[assign](){<-}<LSEP>[](symbol){sScript}<LSEP>[litteral](str){setTimeout(function(){confirm(...}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){sScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){acceptAlert}<LEND>[assign](){<-}<LSEP>[](symbol){sScript}<LSEP>[litteral](str){setTimeout(function(){confirm(...}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){sScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getAlertText}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){dismissAlert}<LEND>[assign](){<-}<LSEP>[](symbol){sScript}<LSEP>[litteral](str){setTimeout(function(){prompt('...}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){sScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getAlertText}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){sendAlertText}<LSEP>[argument 0; litteral](str){Buck Rogers?}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://cran.r-project.org/}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){frames}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_attr}<LSEP>[argument 0; litteral](str){name}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://cran.r-project.org/}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){frames}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_attr}<LSEP>[argument 0; litteral](str){name}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElements}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){frame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){webElem}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){table}<LEND>[assign](){<-}<LSEP>[](symbol){link2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElementFromElement}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){li:nth-child(2) a}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://www.google.com/ncr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){css}<LSEP>[argument 1; litteral](str){img#hplogo}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.getElementById...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){document.getElementById('hplog...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return arguments[0].hidden = f...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){return document.getElementById...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){var test ={num:1, str:'a', el:...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[argument 0; litteral](str){var test ={num:1, str:'a', el:...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://cran.r-project.org/}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){frames}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_attr}<LSEP>[argument 0; litteral](str){name}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){frames}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//a}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//a}<LEND>[](symbol){length}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){html_structure}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){switchToFrame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){frames}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//a}<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){getPageSource}<LEND>[argument 1; call](){}<LSEP>[](symbol){xml_find_all}<LSEP>[argument 0; litteral](str){//a}<LEND>[](symbol){length}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://www.google.com/ncr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){q}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){outerHTML}<LEND>[](symbol){read_html}<LEND>[](symbol){html_structure}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementAttribute}<LSEP>[argument 0; litteral](str){id}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementCssValue}<LSEP>[argument 0; litteral](str){color}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementCssValue}<LSEP>[argument 0; litteral](str){font-family}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<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[@value='Google Search']}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementTagName}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){getElementRect}<LEND>[](symbol){str}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://www.google.com/ncr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){webElem}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){findElement}<LSEP>[argument 0; litteral](str){name}<LSEP>[argument 1; litteral](str){q}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementSendKeys}<LSEP>[argument 0; litteral](str){Q project}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementClear}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementSendKeys}<LSEP>[argument 0; litteral](str){R project}<LSEP>[argument 1; litteral](str){enter}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementClear}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){webElem}<LEND>[argument 1; call](){}<LSEP>[](symbol){elementSendKeys}<LSEP>[argument 0; litteral](str){R project}<LEND>[assign](){<-}<LSEP>[](symbol){searchButton}<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){//button[@value='Search']}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){searchButton}<LSEP>[](symbol){elementClick}<LEND>[assign](){<-}<LSEP>[](symbol){firstResult}<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){//h3[@class = 'r']}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){firstResult}<LSEP>[](symbol){elementClick}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){remDr}<LEND>[call](){}<LSEP>[](symbol){remoteDr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){setTimeout}<LSEP>[argument 0; litteral](str){script}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){go}<LSEP>[argument 0; litteral](str){https://www.google.com/ncr}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){getTitle}<LEND>[assign](){<-}<LSEP>[](symbol){asScript}<LSEP>[litteral](str){setTimeout(function(){argument...}<LEND>[call](){}<LSEP>[](symbol){system.time}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){test1}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeAsyncScript}<LSEP>[](symbol){asScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[assign](){<-}<LSEP>[](symbol){sScript}<LSEP>[litteral](str){setTimeout(function(){},5000);...}<LEND>[call](){}<LSEP>[](symbol){system.time}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){test2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){executeScript}<LSEP>[](symbol){sScript}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){remDr}<LEND>[argument 1; call](){}<LSEP>[](symbol){deleteSession} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){usa}<LEND>[call](){}<LSEP>[](symbol){test_check}<LSEP>[argument 0; litteral](str){usa} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){usa}<LEND>[assign](){<-}<LSEP>[](symbol){expect_same_class}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){expected}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){expected}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){new objects share class type w...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_same_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){usa}<LSEP>[](symbol){state.abb}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){datasets}<LSEP>[](symbol){state.abb}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_same_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){usa}<LSEP>[](symbol){state.area}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){datasets}<LSEP>[](symbol){state.area}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_same_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){usa}<LSEP>[](symbol){state.center}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){datasets}<LSEP>[](symbol){state.center}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_same_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){usa}<LSEP>[](symbol){state.division}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){datasets}<LSEP>[](symbol){state.division}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_same_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){usa}<LSEP>[](symbol){state.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){datasets}<LSEP>[](symbol){state.name}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_same_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){usa}<LSEP>[](symbol){state.region}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){datasets}<LSEP>[](symbol){state.region}<LEND>[call](){}<LSEP>[](symbol){detach}<LSEP>[argument 0; litteral](str){package:usa}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){package produces custom messag...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){usa} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.onAttach}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){libname}<LSEP>[](symbol){pkgname}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){masked}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){state.abb}<LSEP>[argument 1; litteral](str){state.area}<LSEP>[argument 2; litteral](str){state.center}<LSEP>[argument 3; litteral](str){state.division}<LSEP>[argument 4; litteral](str){state.name}<LSEP>[argument 5; litteral](str){state.region}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){masked}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){*}<LSEP>[](symbol){masked}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){The 'usa' package masks the st...}<LSEP>[](symbol){masked}<LSEP>[argument 2; litteral](str){\nObjects are similar in class...}<LEND>[statement 3; call](){}<LSEP>[](symbol){packageStartupMessage}<LSEP>[](symbol){msg} |
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](str){states}<LSEP>[litteral](str){territory}<LSEP>[litteral](str){state.abb}<LSEP>[litteral](str){territory.abb}<LSEP>[litteral](str){state.area}<LSEP>[litteral](str){territory.area}<LSEP>[litteral](str){state.center}<LSEP>[litteral](str){territory.center}<LSEP>[litteral](str){state.division}<LSEP>[litteral](str){state.name}<LSEP>[litteral](str){territory.name}<LSEP>[litteral](str){state.region}<LSEP>[litteral](str){facts}<LSEP>[litteral](str){state.x19}<LSEP>[litteral](str){people}<LSEP>[litteral](str){zipcodes}<LSEP>[litteral](str){zip.code}<LSEP>[litteral](str){zip.center}<LSEP>[litteral](str){city.name}<LSEP>[litteral](str){counties}<LSEP>[litteral](str){county.name} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](str){-Xmx2G}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){r5r}<LEND>[call](){}<LSEP>[](symbol){test_check}<LSEP>[argument 0; litteral](str){r5r} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){elevation utils}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){raster_poa}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa/poa_elevation.tif}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){tobler_hiking}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){tobler_hiking}<LSEP>[argument 0; litteral](str){bananas}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){tobler_hiking}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){:::}<LSEP>[](symbol){r5r}<LSEP>[](symbol){tobler_hiking}<LEND>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){33.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){apply_elevation}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){rgdal}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_silent}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){:::}<LSEP>[](symbol){r5r}<LSEP>[](symbol){apply_elevation}<LEND>[](symbol){r5r_core}<LSEP>[](symbol){raster_poa}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_silent}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){:::}<LSEP>[](symbol){r5r}<LSEP>[](symbol){apply_elevation}<LEND>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){raster_poa}<LSEP>[](symbol){raster_poa}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){:::}<LSEP>[](symbol){r5r}<LSEP>[](symbol){apply_elevation}<LEND>[argument 0; litteral](str){bananas}<LSEP>[](symbol){raster_poa}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){:::}<LSEP>[](symbol){r5r}<LSEP>[](symbol){apply_elevation}<LEND>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){bananas}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){Stop r5r core}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){stop_r5 raises warnings and er...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){old_env}<LEND>[call](){}<LSEP>[](symbol){environment}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){path}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){nonexistent_object}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){stop_r5}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<LEND>[](symbol){old_env}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){stop_r5 successfully stops mul...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){old_env}<LEND>[call](){}<LSEP>[](symbol){environment}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r5r_core_1}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mid_env}<LEND>[call](){}<LSEP>[](symbol){environment}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){r5r_core_2}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){stop_r5}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<LEND>[](symbol){old_env}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){r5r_core_1}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){r5r_core_2}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core_2}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<LEND>[](symbol){mid_env}<LEND>[statement 11; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core_1}<LEND>[statement 12; call](){}<LSEP>[](symbol){expect_identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<LEND>[](symbol){old_env} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){Support functions}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){poa_points_of_interest.csv}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){set_verbose adequately raises ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_verbose}<LSEP>[argument 0; litteral](str){r5r_obj}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_verbose}<LSEP>[](symbol){r5r_obj}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_verbose}<LSEP>[](symbol){r5r_obj}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){set_progress adequately raises...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_progress}<LSEP>[argument 0; litteral](str){r5r_obj}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_progress}<LSEP>[](symbol){r5r_obj}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_progress}<LSEP>[](symbol){r5r_obj}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){set_max_street_time adequately...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_max_walk_distance}<LSEP>[argument 0; litteral](str){1000}<LSEP>[argument 1; litteral](real){3.600000}<LSEP>[argument 2; litteral](integer){60}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_max_walk_distance}<LSEP>[argument 0; litteral](real){1000.000000}<LSEP>[argument 1; litteral](str){3.6}<LSEP>[argument 2; litteral](integer){60}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){set_max_street_time output is ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[argument 0; litteral](real){inf}<LSEP>[argument 1; litteral](real){3.600000}<LSEP>[argument 2; litteral](integer){60}<LEND>[argument 1; litteral](integer){60}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[argument 0; litteral](real){1800.000000}<LSEP>[argument 1; litteral](real){3.600000}<LSEP>[argument 2; litteral](integer){60}<LEND>[argument 1; litteral](integer){30}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[argument 0; litteral](real){7200.000000}<LSEP>[argument 1; litteral](real){3.600000}<LSEP>[argument 2; litteral](integer){60}<LEND>[argument 1; litteral](integer){60}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){select_mode adequately raises ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){select_mode}<LSEP>[argument 0; litteral](str){POGOBALL}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){posix_to_string adequately rai...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[argument 0; litteral](str){13-03-2019 14:00:00}<LSEP>[argument 1; litteral](str){%d-%m-%Y %H:%M:%S}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){posix_to_string}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){datetime}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){posix_to_string}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){posix_to_string output is cohe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[argument 0; litteral](str){13-03-2019 14:00:00}<LSEP>[argument 1; litteral](str){%d-%m-%Y %H:%M:%S}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){posix_to_string}<LSEP>[](symbol){datetime}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){datetime}<LSEP>[](symbol){date}<LEND>[argument 1; litteral](str){2019-03-13}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){datetime}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](str){14:00:00}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[argument 0; litteral](str){13-03-1919 2:00:00 pm}<LSEP>[argument 1; litteral](str){%d-%m-%Y %I:%M:%S %p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){posix_to_string}<LSEP>[](symbol){datetime}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){datetime}<LSEP>[](symbol){date}<LEND>[argument 1; litteral](str){1919-03-13}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){datetime}<LSEP>[](symbol){time}<LEND>[argument 1; litteral](str){14:00:00}<LEND>[assign](){<-}<LSEP>[](symbol){sf_points}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 2; litteral](real){4326.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){assert_points_input adequately...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){multipoint_points}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_cast}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 2; litteral](real){4326.000000}<LEND>[argument 1; litteral](str){MULTIPOINT}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){list_points}<LEND>[call](){}<LSEP>[](symbol){setNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){points}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){points}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){points}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){points}<LEND>[argument 1; litteral](str){points}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){list_points}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){multipoint_points}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){points_numeric_id}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){copy}<LEND>[](symbol){points}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){.N}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){points_char_lat}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){copy}<LEND>[](symbol){points}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){lat}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){points_char_lon}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){copy}<LEND>[](symbol){points}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){lon}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){points_numeric_id}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){points_char_lat}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){points_char_lon}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){wrong_crs_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_transform}<LEND>[](symbol){sf_points}<LSEP>[argument 1; litteral](real){4674.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){wrong_crs_sf}<LSEP>[argument 1; litteral](str){points}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){assert_points_input output is ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sf_points_output}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){sf_points}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){df_points_output}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_type}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf_points_output}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](str){character}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_type}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf_points_output}<LSEP>[](symbol){lat}<LEND>[argument 1; litteral](str){double}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_type}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf_points_output}<LSEP>[](symbol){lon}<LEND>[argument 1; litteral](str){double}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf_points_output}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df_points_output}<LSEP>[](symbol){id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){points}<LSEP>[](symbol){id}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf_points_output}<LSEP>[](symbol){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df_points_output}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){points}<LSEP>[](symbol){lat}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf_points_output}<LSEP>[](symbol){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df_points_output}<LSEP>[](symbol){lon}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){points}<LSEP>[](symbol){lon}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){assert_decay_function adequate...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[argument 0; litteral](str){STEP}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[argument 0; litteral](str){STEP}<LSEP>[argument 1; litteral](str){bananas}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[argument 0; litteral](str){bananas}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[argument 0; litteral](real){444.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[argument 0; litteral](str){LOGISTIC}<LSEP>[argument 1; litteral](real){0.400000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){assert_decay_function expected...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[argument 0; litteral](str){STEP}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){list}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){assert_breakdown_stat adequate...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_breakdown_stat}<LSEP>[argument 0; litteral](str){bananas}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_breakdown_stat}<LSEP>[argument 0; litteral](real){111.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_breakdown_stat}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){assert_breakdown_stat expected...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){assert_breakdown_stat}<LSEP>[argument 0; litteral](str){min}<LEND>[argument 1; litteral](str){character}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){set_n_threads adequately raise...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_n_threads}<LSEP>[argument 0; litteral](str){r5r_obj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_n_threads}<LSEP>[](symbol){r5r_obj}<LSEP>[argument 1; litteral](str){2}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){set_speed adequately raises wa...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_speed}<LSEP>[argument 0; litteral](str){r5r_obj}<LSEP>[argument 1; litteral](real){3.600000}<LSEP>[argument 2; litteral](str){walk}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_obj}<LSEP>[argument 1; litteral](str){3.6}<LSEP>[argument 2; litteral](str){walk}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){raises error if version is not...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){fileurl_from_metadata}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){returns expected result}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[argument 0; litteral](str){https://github.com/ipeaGIT/r5/...}<LEND>[argument 1; call](){}<LSEP>[](symbol){fileurl_from_metadata}<LSEP>[argument 0; litteral](str){6.4.0}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){Travel time matrix function}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/spo}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){spo_hexgrid.csv}<LEND>[assign](){<-}<LSEP>[](symbol){default_tester}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){mode}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){time_window}<LSEP>[](symbol){percentiles}<LSEP>[](symbol){breakdown}<LSEP>[](symbol){breakdown_stat}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){travel_time_matrix}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){mode}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){time_window}<LSEP>[](symbol){percentiles}<LSEP>[](symbol){breakdown}<LSEP>[](symbol){breakdown_stat}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){adequately raises errors}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[argument 0; litteral](str){r5r_core}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){multipoint_origins}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_cast}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 1; litteral](str){MULTIPOINT}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){multipoint_destinations}<LSEP>[](symbol){multipoint_origins}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){list_origins}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1}<LSEP>[argument 1; litteral](str){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.027560}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.023290}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.227810}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.218860}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){list_destinations}<LSEP>[](symbol){list_origins}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){multipoint_origins}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){multipoint_destinations}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){list_origins}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){list_destinations}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){origins}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){destinations}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){origins}<LEND>[assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){origins_char_lat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){origins_char_lon}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){destinations_char_lat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){destinations_char_lon}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 16; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_char_lat}<LEND>[statement 17; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_char_lon}<LEND>[statement 18; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_char_lat}<LEND>[statement 19; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_char_lon}<LEND>[statement 20; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){pogoball}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){numeric_datetime}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[argument 0; litteral](str){13-05-2019 14:00:00}<LSEP>[argument 1; litteral](str){%d-%m-%Y %H:%M:%S}<LEND>[statement 22; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){13-05-2019 14:00:00}<LEND>[statement 23; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){numeric_datetime}<LEND>[statement 24; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){test}<LEND>[statement 25; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){test}<LEND>[statement 26; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1000}<LEND>[statement 27; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 28; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1000}<LEND>[statement 29; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 30; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){120}<LEND>[statement 31; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){3.6}<LEND>[statement 32; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){12}<LEND>[statement 33; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){3}<LEND>[statement 34; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1}<LEND>[statement 35; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 36; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 37; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){adequately raises warnings - n...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){origins}<LEND>[assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){origins_numeric_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){destinations_numeric_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_numeric_id}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_numeric_id}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){output is correct}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){origins_sf}<LEND>[assign](){<-}<LSEP>[](symbol){destinations_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 2; litteral](real){4326.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result_df_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result_sf_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_sf}<LSEP>[](symbol){destinations_sf}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_df_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_sf_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){fromId}<LEND>[argument 1; litteral](str){character}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){toId}<LEND>[argument 1; litteral](str){character}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){travel_time}<LEND>[argument 1; litteral](str){integer}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){df}<LEND>[argument 1; litteral](real){11.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LSEP>[litteral](integer){500}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){origins}<LEND>[assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){WALK}<LSEP>[argument 4; litteral](real){3.600000}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){travel_time_lower_speed}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){travel_time}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){WALK}<LSEP>[argument 4; litteral](real){4.000000}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){travel_time_higher_speed}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){travel_time}<LEND>[statement 16; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){travel_time_higher_speed}<LSEP>[](symbol){travel_time_lower_speed}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){BICYCLE}<LSEP>[argument 4; litteral](real){12.000000}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){travel_time_lower_speed}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){travel_time}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){BICYCLE}<LSEP>[argument 4; litteral](real){13.000000}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){travel_time_higher_speed}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){travel_time}<LEND>[statement 21; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){travel_time_higher_speed}<LSEP>[](symbol){travel_time_lower_speed}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LSEP>[litteral](integer){60}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){max_duration}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){travel_time}<LEND>[statement 25; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){max_duration}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LSEP>[litteral](integer){300}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){n_rows}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){df}<LEND>[statement 29; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){n_rows}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){origins}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){transit_network_to_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){transit_network_to_sf - expect...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_type}<LEND>[argument 0; call](){}<LSEP>[](symbol){transit_network_to_sf}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; litteral](str){list}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){transit_network_to_sf - expect...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){transit_network_to_sf}<LSEP>[argument 0; litteral](str){a}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){setup_r5}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){setup_r5 - expected behavior}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[](symbol){F}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[](symbol){T}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[](symbol){T}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){6.4.0}<LSEP>[](symbol){F}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){setup_r5 - expected errors}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[argument 0; litteral](str){a}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){a}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){a}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](str){a}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){.libPaths}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){'overwrite' parameter works co...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_message}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){Using cached network\\.dat from }<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_message}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 1; litteral](str){Finished building network\\.da...}<LEND>[call](){}<LSEP>[](symbol){stop_r5} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){download_r5}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){download_r5 - expected behavior}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){download_r5 - expected errors}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](str){0}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](str){a}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](str){a}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){download_r5}<LSEP>[argument 0; litteral](str){a} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){find_snap function}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/spo}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){spo_hexgrid.csv}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){adequately raises errors}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_snap}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){points}<LSEP>[argument 2; litteral](str){AAA}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_snap}<LSEP>[argument 0; litteral](str){a}<LSEP>[](symbol){points}<LSEP>[argument 2; litteral](str){WALK}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_snap}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){a}<LSEP>[argument 2; litteral](str){WALK}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){output is correct}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_s3_class}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_snap}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){points}<LSEP>[argument 2; litteral](str){WALK}<LEND>[argument 1; litteral](str){data.table}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){Detailed itineraries function}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){poa_points_of_interest.csv}<LEND>[assign](){<-}<LSEP>[](symbol){default_tester}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){mode}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){shortest_path}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LSEP>[](symbol){drop_geometry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){detailed_itineraries}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){mode}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){shortest_path}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LSEP>[](symbol){drop_geometry}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){detailed_itineraries adequatel...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[argument 0; litteral](str){r5r_core}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){multipoint_origins}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_cast}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 1; litteral](str){MULTIPOINT}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){multipoint_destinations}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_cast}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 1; litteral](str){MULTIPOINT}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){list_origins}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1}<LSEP>[argument 1; litteral](str){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.027560}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.023290}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.227810}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.218860}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){list_destinations}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){2}<LSEP>[argument 1; litteral](str){1}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.023290}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.027560}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.218860}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.227810}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){multipoint_origins}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){multipoint_destinations}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){list_origins}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){list_destinations}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){origins}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){destinations}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){origins_char_lat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){origins_char_lon}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){destinations_char_lat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){destinations_char_lon}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 17; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_char_lat}<LEND>[statement 18; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_char_lon}<LEND>[statement 19; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_char_lat}<LEND>[statement 20; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_char_lon}<LEND>[statement 21; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 22; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){}<LEND>[statement 23; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){all}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){numeric_datetime}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[argument 0; litteral](str){13-05-2019 14:00:00}<LSEP>[argument 1; litteral](str){%d-%m-%Y %H:%M:%S}<LEND>[statement 25; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){13-05-2019 14:00:00}<LEND>[statement 26; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){numeric_datetime}<LEND>[statement 27; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1}<LEND>[statement 28; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 29; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1}<LEND>[statement 30; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 31; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){120}<LEND>[statement 32; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){3.6}<LEND>[statement 33; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){12}<LEND>[statement 34; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){3}<LEND>[statement 35; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 36; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 37; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 38; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1}<LEND>[statement 39; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 40; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 41; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 42; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 43; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){detailed_itineraries adequatel...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){origins_numeric_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){destinations_numeric_id}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_numeric_id}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_numeric_id}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){detailed_itineraries output is...}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){origins_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 2; litteral](real){4326.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){destinations_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 2; litteral](real){4326.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result_df_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result_sf_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_sf}<LSEP>[](symbol){destinations_sf}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_df_input}<LSEP>[argument 1; litteral](str){sf}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_df_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_sf_input}<LSEP>[argument 1; litteral](str){sf}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_sf_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){result_df_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){result_sf_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_sf}<LSEP>[](symbol){destinations_sf}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_false}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_df_input}<LSEP>[argument 1; litteral](str){sf}<LEND>[statement 11; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_df_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 12; call](){}<LSEP>[](symbol){expect_false}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_sf_input}<LSEP>[argument 1; litteral](str){sf}<LEND>[statement 13; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_sf_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 14; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){fromId}<LEND>[argument 1; litteral](str){character}<LEND>[statement 15; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){fromLat}<LEND>[argument 1; litteral](str){double}<LEND>[statement 16; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){fromLon}<LEND>[argument 1; litteral](str){double}<LEND>[statement 17; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){toId}<LEND>[argument 1; litteral](str){character}<LEND>[statement 18; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){toLat}<LEND>[argument 1; litteral](str){double}<LEND>[statement 19; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){toLon}<LEND>[argument 1; litteral](str){double}<LEND>[statement 20; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){option}<LEND>[argument 1; litteral](str){integer}<LEND>[statement 21; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){segment}<LEND>[argument 1; litteral](str){integer}<LEND>[statement 22; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){mode}<LEND>[argument 1; litteral](str){character}<LEND>[statement 23; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){total_duration}<LEND>[argument 1; litteral](str){double}<LEND>[statement 24; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){segment_duration}<LEND>[argument 1; litteral](str){double}<LEND>[statement 25; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){wait}<LEND>[argument 1; litteral](str){double}<LEND>[statement 26; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){distance}<LEND>[argument 1; litteral](str){integer}<LEND>[statement 27; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){route}<LEND>[argument 1; litteral](str){character}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[](symbol){}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){12.000000}<LSEP>[](symbol){}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){WALK}<LSEP>[argument 4; litteral](real){4.000000}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){duration_lower_speed}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){segment_duration}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){WALK}<LSEP>[argument 4; litteral](real){5.000000}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){duration_higher_speed}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){segment_duration}<LEND>[statement 34; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){duration_higher_speed}<LSEP>[](symbol){duration_lower_speed}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){BICYCLE}<LSEP>[argument 4; litteral](real){12.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){duration_lower_speed}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){segment_duration}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[argument 3; litteral](str){BICYCLE}<LSEP>[argument 4; litteral](real){13.000000}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){duration_higher_speed}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){segment_duration}<LEND>[statement 39; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){duration_higher_speed}<LSEP>[](symbol){duration_lower_speed}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){max_n_options}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){option}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){V1}<LEND>[statement 42; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){max_n_options}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LSEP>[litteral](integer){60}<LEND>[statement 44; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[](symbol){}<LEND>[statement 45; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){15.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 46; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){max_trip_duration}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 47; assign](){<-}<LSEP>[](symbol){max_duration}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){segment_duration}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LSEP>[](symbol){option}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){V1}<LEND>[statement 48; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){max_duration}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 49; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){12.000000}<LSEP>[](symbol){}<LEND>[argument 3; litteral](str){WALK}<LSEP>[argument 4; litteral](integer){30}<LEND>[statement 50; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){df}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 51; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[argument 1; litteral](real){11.000000}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](real){12.000000}<LSEP>[](symbol){}<LEND>[argument 3; litteral](str){WALK}<LSEP>[argument 4; litteral](integer){30}<LEND>[statement 52; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){df}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){street_network_to_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){path}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){street_network_to_sf - expecte...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_type}<LEND>[argument 0; call](){}<LSEP>[](symbol){street_network_to_sf}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; litteral](str){list}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){street_network_to_sf - expecte...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){street_network_to_sf}<LSEP>[argument 0; litteral](str){a}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){context}<LSEP>[argument 0; litteral](str){Accessibility function}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){testthat}<LSEP>[](symbol){skip_on_cran}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[](symbol){setup_r5}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){poa_hexgrid.csv}<LEND>[assign](){<-}<LSEP>[](symbol){default_tester}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){opportunities_colname}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){cutoffs}<LSEP>[](symbol){decay_value}<LSEP>[](symbol){mode}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){time_window}<LSEP>[](symbol){percentiles}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){accessibility}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){opportunities_colname}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){cutoffs}<LSEP>[](symbol){decay_value}<LSEP>[](symbol){mode}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){time_window}<LSEP>[](symbol){percentiles}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){adequately raises errors}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[argument 0; litteral](str){r5r_core}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){multipoint_origins}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_cast}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 1; litteral](str){MULTIPOINT}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){multipoint_destinations}<LSEP>[](symbol){multipoint_origins}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){list_origins}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){1}<LSEP>[argument 1; litteral](str){2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.027560}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){30.023290}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.227810}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){51.218860}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){list_destinations}<LSEP>[](symbol){list_origins}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){multipoint_origins}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){multipoint_destinations}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){list_origins}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){list_destinations}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){origins}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){destinations}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){origins}<LEND>[assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){origins_char_lat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){origins_char_lon}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){destinations_char_lat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){destinations_char_lon}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[statement 16; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_char_lat}<LEND>[statement 17; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_char_lon}<LEND>[statement 18; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_char_lat}<LEND>[statement 19; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){destinations_char_lon}<LEND>[statement 20; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){pogoball}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){numeric_datetime}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[argument 0; litteral](str){13-05-2019 14:00:00}<LSEP>[argument 1; litteral](str){%d-%m-%Y %H:%M:%S}<LEND>[statement 22; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){13-05-2019 14:00:00}<LEND>[statement 23; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){numeric_datetime}<LEND>[statement 24; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1000}<LEND>[statement 25; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 26; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1000}<LEND>[statement 27; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 28; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){120}<LEND>[statement 29; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){3.6}<LEND>[statement 30; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){12}<LEND>[statement 31; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){3}<LEND>[statement 32; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){1}<LEND>[statement 33; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){TRUE}<LEND>[statement 34; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 35; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 36; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){fixed_exponential}<LEND>[statement 37; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){bananas}<LEND>[statement 38; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){bananas}<LEND>[statement 39; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){bananas}<LEND>[statement 40; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){bananas}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){output is correct}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){step}<LEND>[argument 1; litteral](str){data.table}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){exponential}<LEND>[argument 1; litteral](str){data.table}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){linear}<LEND>[argument 1; litteral](str){data.table}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){logistic}<LEND>[argument 1; litteral](str){data.table}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LEND>[argument 0; call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){fixed_exponential}<LSEP>[argument 2; litteral](real){0.400000}<LEND>[argument 1; litteral](str){data.table}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){origins_sf}<LEND>[assign](){<-}<LSEP>[](symbol){destinations_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[argument 2; litteral](real){4326.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){result_df_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){result_sf_input}<LEND>[call](){}<LSEP>[](symbol){default_tester}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins_sf}<LSEP>[](symbol){destinations_sf}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_df_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){result_sf_input}<LSEP>[argument 1; litteral](str){data.table}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){from_id}<LEND>[argument 1; litteral](str){character}<LEND>[statement 11; call](){}<LSEP>[](symbol){expect_true}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result_df_input}<LSEP>[](symbol){accessibility}<LEND>[argument 1; litteral](str){integer}<LEND>[call](){}<LSEP>[](symbol){stop_r5}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){tobler_hiking}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){slope}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_class}<LEND>[](symbol){slope}<LSEP>[argument 1; litteral](str){numeric}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){C}<LSEP>[litteral](real){1.194030}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tobler_factor}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){C}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){slope}<LSEP>[argument 1; litteral](real){0.050000}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){tobler_factor}<LEND>[assign](){<-}<LSEP>[](symbol){apply_elevation}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){raster_files}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_class}<LEND>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){jobjRef}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){expect_file_exists}<LEND>[](symbol){raster_files}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){raster_files}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dem}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){raster_files}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dem_files}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){raster_files}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dem}<LEND>[call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){merge}<LEND>[](symbol){dem_files}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){edges}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){getEdges}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){edges}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LSEP>[](symbol){edges}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){start_elev}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){extract}<LEND>[](symbol){dem}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){start_lon}<LSEP>[](symbol){start_lat}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){end_elev}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){extract}<LEND>[](symbol){dem}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){end_lon}<LSEP>[](symbol){end_lat}<LEND>[statement 7; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){start_elev}<LSEP>[](symbol){start_elev}<LEND>[statement 8; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){end_elev}<LSEP>[](symbol){end_elev}<LEND>[statement 9; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){slope}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){end_elev}<LSEP>[](symbol){start_elev}<LEND>[](symbol){length}<LEND>[statement 10; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){slope}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){slope}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 11; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){slope}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){slope}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){slope}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){slope}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 13; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){walk_multiplier}<LEND>[argument 1; call](){}<LSEP>[](symbol){tobler_hiking}<LSEP>[](symbol){slope}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){bike_mult}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){bikeSpeedCoefficientOTP}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){edges}<LSEP>[](symbol){slope}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){edges}<LSEP>[](symbol){start_elev}<LEND>[statement 15; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){bike_multiplier}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){bike_mult}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){edges}<LSEP>[](symbol){edge_index}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){fct_walk}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){edges}<LSEP>[](symbol){walk_multiplier}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){fct_bike}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){edges}<LSEP>[](symbol){bike_multiplier}<LEND>[statement 19; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){updateEdges}<LEND>[](symbol){id}<LSEP>[](symbol){fct_walk}<LSEP>[](symbol){fct_bike} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){detailed_itineraries}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){max_lts}<LSEP>[](symbol){shortest_path}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LSEP>[](symbol){progress}<LSEP>[](symbol){drop_geometry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){old_options}<LEND>[call](){}<LSEP>[](symbol){options}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){old_dt_threads}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){getDTthreads}<LEND>[statement 2; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){old_options}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDTthreads}<LEND>[](symbol){old_dt_threads}<LEND>[statement 3; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){inf}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_class}<LEND>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){jobjRef}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mode_list}<LEND>[call](){}<LSEP>[](symbol){select_mode}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){departure}<LEND>[call](){}<LSEP>[](symbol){posix_to_string}<LSEP>[](symbol){departure_datetime}<LEND>[statement 7; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){max_trip_duration}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){max_walk_time}<LEND>[call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){max_bike_time}<LEND>[call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 11; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){shortest_path}<LEND>[statement 12; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){drop_geometry}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){origins}<LSEP>[argument 1; litteral](str){origins}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){destinations}<LSEP>[argument 1; litteral](str){destinations}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){n_origs}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){origins}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){n_dests}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){destinations}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){n_origs}<LSEP>[](symbol){n_dests}<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){n_origs}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n_dests}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Origins and destinations dataf...}<LSEP>[argument 1; litteral](str){same size or one of them must ...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n_origs}<LSEP>[](symbol){n_dests}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){destinations}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_origs}<LEND>[](symbol){}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Destinations dataframe expande...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){origins}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_dests}<LEND>[](symbol){}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Origins dataframe expanded to ...}<LEND>[statement 18; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){walk_speed}<LSEP>[argument 2; litteral](str){walk}<LEND>[statement 19; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){bike_speed}<LSEP>[argument 2; litteral](str){bike}<LEND>[statement 20; call](){}<LSEP>[](symbol){set_max_rides}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_rides}<LEND>[statement 21; call](){}<LSEP>[](symbol){set_max_lts}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_lts}<LEND>[statement 22; control flow](){if}<LSEP>[](symbol){shortest_path}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set_suboptimal_minutes}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](integer){0}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){set_suboptimal_minutes}<LSEP>[](symbol){r5r_core}<LSEP>[argument 1; litteral](integer){5}<LEND>[statement 23; call](){}<LSEP>[](symbol){set_n_threads}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){n_threads}<LEND>[statement 24; call](){}<LSEP>[](symbol){set_verbose}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){verbose}<LEND>[statement 25; call](){}<LSEP>[](symbol){set_progress}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){progress}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){detailedItineraries}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){direct_modes}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){transit_mode}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){access_mode}<LEND>[argument 9; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){egress_mode}<LEND>[argument 10; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departure}<LSEP>[](symbol){date}<LEND>[argument 11; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departure}<LSEP>[](symbol){time}<LEND>[](symbol){max_walk_time}<LSEP>[](symbol){max_bike_time}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){drop_geometry}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){path_options}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){data.table}<LEND>[](symbol){path_options}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LSEP>[](symbol){path_options}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){path_options}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){rbindlist}<LEND>[](symbol){path_options}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){path_options}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){path_options}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){path_options}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){path_options}<LEND>[statement 29; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){total_duration}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){segment_duration}<LSEP>[](symbol){wait}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LSEP>[](symbol){option}<LEND>[statement 30; control flow](){if}<LSEP>[](symbol){shortest_path}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){.I}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){total_duration}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){total_duration}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LEND>[](symbol){V1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){.I}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){option}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){option}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LEND>[](symbol){V1}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){temp_route}<LEND>[argument 1; call](){}<LSEP>[](symbol){fifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){route}<LSEP>[argument 1; litteral](str){}<LEND>[](symbol){mode}<LSEP>[](symbol){route}<LEND>[statement 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){temp_sign}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){temp_route}<LSEP>[argument 1; litteral](str){_}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LSEP>[](symbol){option}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){.I}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){total_duration}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){total_duration}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LSEP>[](symbol){temp_sign}<LEND>[](symbol){V1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){.I}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){option}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){option}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LSEP>[](symbol){temp_sign}<LEND>[](symbol){V1}<LEND>[statement 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){temp_}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){path_options}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[statement 31; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){option}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){rleid}<LEND>[](symbol){option}<LEND>[argument 3; call](){}<LSEP>[](symbol){.}<LSEP>[](symbol){fromId}<LSEP>[](symbol){toId}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){drop_geometry}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){path_options}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){geometry}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sfc}<LEND>[](symbol){geometry}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){path_options}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_sf}<LEND>[](symbol){path_options}<LSEP>[argument 1; litteral](real){4326.000000}<LEND>[statement 33; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){path_options} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){transit_network_to_sf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){jobjRef}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Input must be an object of cla...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){network}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){getTransitNetwork}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){routes_df}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){network}<LSEP>[](symbol){get}<LEND>[argument 0; litteral](integer){0}<LEND>[statement 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){routes_df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){geometry}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sfc}<LEND>[](symbol){geometry}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){routes_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_sf}<LEND>[](symbol){routes_df}<LSEP>[argument 1; litteral](real){4326.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){stops_df}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){network}<LSEP>[](symbol){get}<LEND>[argument 0; litteral](integer){1}<LEND>[statement 6; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stops_df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){NA}<LSEP>[](symbol){lat}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){NA}<LSEP>[](symbol){lon}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){stops_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sfheaders}<LSEP>[](symbol){sf_point}<LEND>[](symbol){stops_df}<LSEP>[argument 1; litteral](str){lon}<LSEP>[argument 2; litteral](str){lat}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_crs}<LEND>[](symbol){stops_sf}<LEND>[litteral](real){4326.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){transit_network}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){stops_sf}<LSEP>[](symbol){routes_sf}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){transit_network} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){street_network_to_sf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){r5r_core}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){jobjRef}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Input must be an object of cla...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){network}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){getStreetNetwork}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vertices_df}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){network}<LSEP>[](symbol){get}<LEND>[argument 0; litteral](integer){0}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){vertices_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sfheaders}<LSEP>[](symbol){sf_point}<LEND>[](symbol){vertices_df}<LSEP>[argument 1; litteral](str){lon}<LSEP>[argument 2; litteral](str){lat}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_crs}<LEND>[](symbol){vertices_sf}<LEND>[litteral](real){4326.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){edges_df}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){network}<LSEP>[](symbol){get}<LEND>[argument 0; litteral](integer){1}<LEND>[statement 6; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){edges_df}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[](symbol){geometry}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_as_sfc}<LEND>[](symbol){geometry}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){edges_sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_sf}<LEND>[](symbol){edges_df}<LSEP>[argument 1; litteral](real){4326.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){street_network}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){vertices_sf}<LSEP>[](symbol){edges_sf}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){street_network} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){download_r5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){version}<LSEP>[](symbol){quiet}<LSEP>[](symbol){force_update}<LSEP>[](symbol){temp_dir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){quiet}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){force_update}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){temp_dir}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){old_options}<LEND>[call](){}<LSEP>[](symbol){options}<LEND>[statement 4; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){old_options}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; call](){}<LSEP>[](symbol){options}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){600.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){timeout}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){file_url}<LEND>[call](){}<LSEP>[](symbol){fileurl_from_metadata}<LSEP>[](symbol){version}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){filename}<LEND>[call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file_url}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){destfile}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){fifelse}<LEND>[](symbol){temp_dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[](symbol){filename}<LEND>[argument 2; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){jar}<LSEP>[argument 1; litteral](str){r5r}<LEND>[](symbol){filename}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){destfile}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){force_update}<LSEP>[argument 1; litteral](logical){FALSE}<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}<LSEP>[argument 0; litteral](str){Using cached R5 version from }<LSEP>[](symbol){destfile}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){destfile}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){isFALSE}<LEND>[argument 0; call](){}<LSEP>[](symbol){check_connection}<LSEP>[](symbol){file_url}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){jar_dir}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){jar}<LSEP>[argument 1; litteral](str){r5r}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){dir.exists}<LSEP>[](symbol){jar_dir}<LEND>[true branch; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){jar_dir}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){R5 will be saved to }<LSEP>[](symbol){destfile}<LEND>[statement 14; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){download.file}<LEND>[](symbol){file_url}<LSEP>[](symbol){destfile}<LSEP>[argument 2; litteral](str){wb}<LSEP>[](symbol){quiet}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){destfile} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){setup_r5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data_path}<LSEP>[](symbol){version}<LSEP>[](symbol){verbose}<LSEP>[](symbol){temp_dir}<LSEP>[](symbol){use_elevation}<LSEP>[](symbol){overwrite}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_directory_exists}<LEND>[](symbol){data_path}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){verbose}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){temp_dir}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){use_elevation}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){overwrite}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jinit}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ver}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jcall}<LEND>[argument 0; litteral](str){java.lang.System}<LSEP>[argument 1; litteral](str){S}<LSEP>[argument 2; litteral](str){getProperty}<LSEP>[argument 3; litteral](str){java.version}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ver}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\..*}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){ver}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){ver}<LSEP>[argument 1; litteral](real){11.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This package requires the Java...}<LSEP>[argument 1; litteral](str){Please update your Java instal...}<LSEP>[argument 2; litteral](str){The jdk 11 can be downloaded f...}<LSEP>[argument 3; litteral](str){ - openjdk: https://jdk.java....}<LSEP>[argument 4; litteral](str){ - oracle: https://www.oracle...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){path.expand}<LSEP>[](symbol){data_path}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){any_network}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){network.dat}<LEND>[argument 1; call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){any_pbf}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){.pbf}<LEND>[argument 1; call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){any_gtfs}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){.zip}<LEND>[argument 1; call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){any_pbf}<LSEP>[](symbol){any_network}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){\nAn OSM PBF file is required ...}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){fileurl}<LEND>[call](){}<LSEP>[](symbol){fileurl_from_metadata}<LSEP>[](symbol){version}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){filename}<LEND>[call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){fileurl}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){jar_file}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){fifelse}<LEND>[](symbol){temp_dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[](symbol){filename}<LEND>[argument 2; call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){jar}<LSEP>[argument 1; litteral](str){r5r}<LEND>[](symbol){filename}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){test_file_exists}<LEND>[](symbol){jar_file}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Using cached version from }<LSEP>[](symbol){jar_file}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){check}<LEND>[call](){}<LSEP>[](symbol){download_r5}<LSEP>[](symbol){version}<LSEP>[](symbol){temp_dir}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){verbose}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){existing_files}<LEND>[call](){}<LSEP>[](symbol){list.files}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){jar}<LSEP>[argument 1; litteral](str){r5r}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){r5r_jar}<LEND>[call](){}<LSEP>[](symbol){file.path}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){jar}<LSEP>[argument 1; litteral](str){r5r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){existing_files}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){r5r}<LSEP>[](symbol){existing_files}<LEND>[statement 20; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jaddClassPath}<LEND>[](symbol){r5r_jar}<LEND>[statement 21; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jaddClassPath}<LEND>[](symbol){jar_file}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){dat_file}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){network.dat}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){test_file_exists}<LEND>[](symbol){dat_file}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){overwrite}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jnew}<LEND>[argument 0; litteral](str){org.ipea.r5r.R5RCore}<LSEP>[](symbol){data_path}<LSEP>[](symbol){verbose}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){\nUsing cached network.dat from }<LSEP>[](symbol){dat_file}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mapdb_files}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mapdb_files}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mapdb_files}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){\\.mapdb}<LSEP>[](symbol){mapdb_files}<LEND>[statement 2; call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.remove}<LSEP>[](symbol){dat_file}<LSEP>[](symbol){mapdb_files}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){r5r_core}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jnew}<LEND>[argument 0; litteral](str){org.ipea.r5r.R5RCore}<LSEP>[](symbol){data_path}<LSEP>[](symbol){verbose}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){any_pbf}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){any_gtfs}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){\nNo public transport data (gt...}<LSEP>[argument 1; litteral](str){Graph will be built with the s...}<LEND>[statement 5; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){\nFinished building network.da...}<LSEP>[](symbol){dat_file}<LEND>[statement 24; control flow](){if}<LSEP>[](symbol){use_elevation}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tif_files}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){*.tif$}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tif_files}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tif_files}<LEND>[argument 1; litteral](str){ TIFF file(s) found in data pa...}<LSEP>[argument 2; litteral](str){Loading elevation into street ...}<LSEP>[argument 3; litteral](str){DISCLAIMER: this is an r5r spe...}<LSEP>[argument 4; litteral](str){deprecated once native support\n}<LSEP>[argument 5; litteral](str){for elevation data is added to...}<LEND>[statement 1; call](){}<LSEP>[](symbol){apply_elevation}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){tif_files}<LEND>[statement 25; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){buildDistanceTables}<LEND>[statement 26; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){r5r_core} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){find_snap}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){points}<LSEP>[](symbol){mode}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_class}<LEND>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){jobjRef}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){WALK}<LSEP>[argument 1; litteral](str){BICYCLE}<LSEP>[argument 2; litteral](str){CAR}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){mode}<LSEP>[argument 1; litteral](str){ is not a valid 'mode'.\nPleas...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){points}<LSEP>[argument 1; litteral](str){points}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){snap_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){findSnapPoints}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){points}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){points}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){points}<LSEP>[](symbol){lon}<LEND>[](symbol){mode}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){snap_df}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LSEP>[](symbol){snap_df}<LEND>[statement 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snap_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){found}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 2; call](){}<LSEP>[](symbol){:=}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){snap_df} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){set_verbose}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){verbose}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){verboseMode}<LEND>[false branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){silentMode}<LEND>[assign](){<-}<LSEP>[](symbol){set_progress}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){progress}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){progress}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setProgress}<LEND>[](symbol){progress}<LEND>[assign](){<-}<LSEP>[](symbol){set_max_street_time}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){max_walk_dist}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){walk_speed}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){max_walk_dist}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){max_street_time}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){60.000000}<LSEP>[](symbol){max_walk_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){walk_speed}<LSEP>[argument 1; litteral](real){1000.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){max_street_time}<LSEP>[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){'max_walk_dist' is too low.}<LSEP>[argument 1; litteral](str){Please make sure distances are...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){max_street_time}<LSEP>[](symbol){max_trip_duration}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){max_street_time}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){max_street_time}<LEND>[assign](){<-}<LSEP>[](symbol){select_mode}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dr_modes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){WALK}<LSEP>[argument 1; litteral](str){BICYCLE}<LSEP>[argument 2; litteral](str){CAR}<LSEP>[argument 3; litteral](str){BICYCLE_RENT}<LSEP>[argument 4; litteral](str){CAR_PARK}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tr_modes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){TRANSIT}<LSEP>[argument 1; litteral](str){TRAM}<LSEP>[argument 2; litteral](str){SUBWAY}<LSEP>[argument 3; litteral](str){RAIL}<LSEP>[argument 4; litteral](str){BUS}<LSEP>[argument 5; litteral](str){FERRY}<LSEP>[argument 6; litteral](str){CABLE_CAR}<LSEP>[argument 7; litteral](str){GONDOLA}<LSEP>[argument 8; litteral](str){FUNICULAR}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){all_modes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){tr_modes}<LSEP>[](symbol){dr_modes}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mode}<LEND>[call](){}<LSEP>[](symbol){toupper}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){mode}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mode_egress}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){toupper}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){mode_egress}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){mode}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){x}<LSEP>[](symbol){all_modes}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ is not a valid 'mode'.\nPleas...}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){all_modes}<LEND>[argument 1; litteral](str){, }<LEND>[statement 6; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){mode_egress}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){x}<LSEP>[](symbol){dr_modes}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){ is not a valid 'mode'.\nPleas...}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){dr_modes}<LEND>[argument 1; litteral](str){, }<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){direct_modes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){mode}<LSEP>[](symbol){dr_modes}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){transit_mode}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){mode}<LSEP>[](symbol){tr_modes}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){transit_mode}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){WALK}<LSEP>[argument 1; litteral](str){BICYCLE}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){direct_modes}<LEND>[assign](){<-}<LSEP>[](symbol){access_mode}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){mode}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){WALK}<LSEP>[argument 1; litteral](str){BICYCLE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){mode}<LSEP>[argument 1; litteral](str){CAR}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){direct_modes}<LEND>[assign](){<-}<LSEP>[](symbol){access_mode}<LSEP>[litteral](str){CAR}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){transit_mode}<LSEP>[litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mode_egress}<LSEP>[litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){TRANSIT}<LSEP>[](symbol){transit_mode}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){transit_mode}<LSEP>[](symbol){tr_modes}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){direct_modes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){access_mode}<LEND>[assign](){<-}<LSEP>[](symbol){direct_modes}<LSEP>[litteral](str){WALK}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){direct_modes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){access_mode}<LSEP>[](symbol){direct_modes}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){mode_list}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){direct_modes}<LSEP>[argument 1; litteral](str){;}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){transit_mode}<LSEP>[argument 1; litteral](str){;}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){access_mode}<LSEP>[argument 1; litteral](str){;}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mode_egress}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){;}<LEND>[statement 11; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){mode_list}<LEND>[assign](){<-}<LSEP>[](symbol){posix_to_string}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){datetime}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_posixct}<LEND>[](symbol){datetime}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tz}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){datetime}<LSEP>[argument 1; litteral](str){tzone}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){tz}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){tz}<LSEP>[litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){datetime_list}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){strftime}<LSEP>[](symbol){datetime}<LSEP>[argument 1; litteral](str){%Y-%m-%d}<LSEP>[](symbol){tz}<LEND>[argument 1; call](){}<LSEP>[](symbol){strftime}<LSEP>[](symbol){datetime}<LSEP>[argument 1; litteral](str){%H:%M:%S}<LSEP>[](symbol){tz}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){datetime_list}<LEND>[assign](){<-}<LSEP>[](symbol){assert_points_input}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){df}<LSEP>[](symbol){name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](str){data.frame}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](str){sf}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_geometry_type}<LEND>[](symbol){df}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; litteral](str){POINT}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'}<LSEP>[](symbol){name}<LSEP>[argument 2; litteral](str){' must be either a 'data.frame...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_crs}<LEND>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sf}<LSEP>[](symbol){st_crs}<LEND>[argument 0; litteral](real){4326.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'}<LSEP>[](symbol){name}<LSEP>[argument 2; litteral](str){' CRS must be WGS 84 (EPSG 432...}<LSEP>[argument 3; litteral](str){Please use either sf::set_crs(...}<LSEP>[argument 4; litteral](str){sf::st_transform() to reprojec...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sfheaders}<LSEP>[](symbol){sf_to_df}<LEND>[](symbol){df}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){df}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setnames}<LEND>[](symbol){df}<LSEP>[argument 1; litteral](str){x}<LSEP>[argument 2; litteral](str){lon}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setnames}<LEND>[](symbol){df}<LSEP>[argument 1; litteral](str){y}<LSEP>[argument 2; litteral](str){lat}<LEND>[statement 6; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_names}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){id}<LEND>[](symbol){name}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_names}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){lat}<LSEP>[argument 2; litteral](str){lon}<LEND>[](symbol){name}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){id}<LEND>[statement 1; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){'}<LSEP>[](symbol){name}<LSEP>[argument 2; litteral](str){$id' forcefully cast to charac...}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){name}<LSEP>[argument 1; litteral](str){$lon}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){name}<LSEP>[argument 1; litteral](str){$lat}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){df}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){'}<LSEP>[](symbol){name}<LSEP>[argument 2; litteral](str){' must be either a 'data.frame...}<LEND>[assign](){<-}<LSEP>[](symbol){assert_decay_function}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){decay_value}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){decay_functions}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){STEP}<LSEP>[argument 1; litteral](str){EXPONENTIAL}<LSEP>[argument 2; litteral](str){FIXED_EXPONENTIAL}<LSEP>[argument 3; litteral](str){LINEAR}<LSEP>[argument 4; litteral](str){LOGISTIC}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_character}<LEND>[](symbol){decay_function}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){decay_function}<LEND>[call](){}<LSEP>[](symbol){toupper}<LSEP>[](symbol){decay_function}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){decay_functions}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){decay_function}<LSEP>[argument 1; litteral](str){ is not a valid 'decay functio...}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){decay_functions}<LEND>[argument 1; litteral](str){, }<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){decay_value}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){decay_value}<LEND>[call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){decay_value}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){decay_function}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){FIXED_EXPONENTIAL}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){decay_value}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){decay_value}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){decay_value}<LSEP>[argument 1; litteral](str){ is not a valid decay_value pa...}<LSEP>[argument 2; litteral](str){Please enter a value between 0...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){decay_function}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LOGISTIC}<LSEP>[argument 1; litteral](str){LINEAR}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){decay_value}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){decay_value}<LSEP>[argument 1; litteral](str){ is not a valid decay_value pa...}<LSEP>[](symbol){decay_function}<LSEP>[argument 3; litteral](str){ decay function.\n}<LSEP>[argument 4; litteral](str){Please enter a value greater t...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){decay_list}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){decay_value}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){decay_list}<LEND>[assign](){<-}<LSEP>[](symbol){assert_breakdown_stat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){breakdown_stat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){stat_functions}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){MIN}<LSEP>[argument 1; litteral](str){MINIMUM}<LSEP>[argument 2; litteral](str){MEAN}<LSEP>[argument 3; litteral](str){AVG}<LSEP>[argument 4; litteral](str){AVERAGE}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_character}<LEND>[](symbol){breakdown_stat}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){breakdown_stat}<LEND>[call](){}<LSEP>[](symbol){toupper}<LSEP>[](symbol){breakdown_stat}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%chin%}<LSEP>[](symbol){breakdown_stat}<LSEP>[](symbol){stat_functions}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){breakdown_stat}<LSEP>[argument 1; litteral](str){ is not a valid 'statistic fun...}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){stat_functions}<LEND>[argument 1; litteral](str){, }<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){breakdown_stat}<LEND>[assign](){<-}<LSEP>[](symbol){set_n_threads}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){n_threads}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){n_threads}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){n_threads}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setNumberOfThreadsToMax}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDTthreads}<LEND>[argument 0; litteral](real){100.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n_threads}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){n_threads}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setNumberOfThreads}<LEND>[](symbol){n_threads}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDTthreads}<LEND>[](symbol){n_threads}<LEND>[assign](){<-}<LSEP>[](symbol){set_speed}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){speed}<LSEP>[](symbol){mode}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){speed}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){mode}<LSEP>[argument 1; litteral](str){_speed}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){speed}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){speed}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){18.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mode}<LSEP>[argument 1; litteral](str){walk}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setWalkSpeed}<LEND>[](symbol){speed}<LEND>[false branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setBikeSpeed}<LEND>[](symbol){speed}<LEND>[assign](){<-}<LSEP>[](symbol){set_max_lts}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_lts}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){max_lts}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){max_lts}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){max_lts}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){max_lts}<LSEP>[argument 1; litteral](str){ is not a valid value for the ...}<LSEP>[argument 2; litteral](str){Please enter a value between 1...}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setMaxLevelTrafficStress}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){max_lts}<LEND>[assign](){<-}<LSEP>[](symbol){set_max_rides}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_rides}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){max_rides}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){max_rides}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){max_rides}<LSEP>[litteral](integer){8}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setMaxRides}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){max_rides}<LEND>[assign](){<-}<LSEP>[](symbol){set_suboptimal_minutes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){suboptimal_minutes}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){suboptimal_minutes}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){suboptimal_minutes}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){suboptimal_minutes}<LSEP>[litteral](integer){5}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setSuboptimalMinutes}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){suboptimal_minutes}<LEND>[assign](){<-}<LSEP>[](symbol){fileurl_from_metadata}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){version}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_string}<LEND>[](symbol){version}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){metadata}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/metadata_r5r.csv}<LSEP>[argument 1; litteral](str){r5r}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){metadata}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){fread}<LEND>[](symbol){metadata}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){version}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metadata}<LSEP>[](symbol){version}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error: Invalid value to argume...}<LSEP>[argument 1; litteral](str){Please use one of the following: }<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metadata}<LSEP>[](symbol){version}<LEND>[argument 1; litteral](str){; }<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){env}<LEND>[call](){}<LSEP>[](symbol){environment}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){metadata}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){metadata}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){version}<LEND>[argument 1; call](){}<LSEP>[](symbol){get}<LSEP>[argument 0; litteral](str){version}<LSEP>[](symbol){env}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){metadata}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){metadata}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){release_date}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){release_date}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){metadata}<LSEP>[](symbol){download_path}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){url}<LEND>[assign](){<-}<LSEP>[](symbol){check_connection}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file_url}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){curl}<LSEP>[](symbol){has_internet}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){\nNo internet connection.}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){msg}<LSEP>[litteral](str){Problem connecting to data ser...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){try}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){GET}<LEND>[](symbol){file_url}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){config}<LEND>[argument 0; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){try-error}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){msg}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){status_code}<LEND>[](symbol){x}<LEND>[argument 1; litteral](integer){200}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){status_code}<LEND>[](symbol){x}<LEND>[argument 1; litteral](integer){200}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){msg}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){http_error}<LEND>[](symbol){x}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){msg}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){FALSE} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){stop_r5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){supplied_cores}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){current_objects}<LEND>[call](){}<LSEP>[](symbol){mget}<LEND>[argument 0; call](){}<LSEP>[](symbol){ls}<LEND>[argument 0; call](){}<LSEP>[](symbol){parent.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){classes_list}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){current_objects}<LSEP>[](symbol){class}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){running_cores}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){current_objects}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){classes_list}<LSEP>[argument 1; litteral](str){jobjRef}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){supplied_cores}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rm}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){running_cores}<LEND>[argument 1; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){All r5r cores have been succes...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matches_supplied}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){running_cores}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){running_cores}<LSEP>[](symbol){supplied_cores}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){matches_supplied}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rm}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){matches_supplied}<LEND>[argument 1; call](){}<LSEP>[](symbol){parent.frame}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){matches_supplied}<LEND>[argument 1; litteral](str){, }<LEND>[argument 1; litteral](str){ has been successfully stopped.}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){unknown_object}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){current_objects}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){current_objects}<LSEP>[](symbol){supplied_cores}<LEND>[statement 1; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){unknown_object}<LEND>[argument 1; litteral](str){, }<LEND>[argument 1; litteral](str){ is not a r5r core object.}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rJava}<LSEP>[](symbol){.jgc} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){travel_time_matrix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){time_window}<LSEP>[](symbol){percentiles}<LSEP>[](symbol){breakdown}<LSEP>[](symbol){breakdown_stat}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){max_lts}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LSEP>[](symbol){progress}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){old_options}<LEND>[call](){}<LSEP>[](symbol){options}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){old_dt_threads}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){getDTthreads}<LEND>[statement 2; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){old_options}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDTthreads}<LEND>[](symbol){old_dt_threads}<LEND>[statement 3; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){inf}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_class}<LEND>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){jobjRef}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mode_list}<LEND>[call](){}<LSEP>[](symbol){select_mode}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){departure}<LEND>[call](){}<LSEP>[](symbol){posix_to_string}<LSEP>[](symbol){departure_datetime}<LEND>[statement 7; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){max_trip_duration}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){max_walk_time}<LEND>[call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){max_bike_time}<LEND>[call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){origins}<LSEP>[argument 1; litteral](str){origins}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){destinations}<LSEP>[argument 1; litteral](str){destinations}<LEND>[statement 13; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_subset}<LEND>[argument 0; litteral](str){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){origins}<LEND>[statement 14; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_subset}<LEND>[argument 0; litteral](str){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){destinations}<LEND>[statement 15; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){time_window}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){time_window}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){time_window}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){draws_per_minute}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){r5r.montecarlo_draws}<LSEP>[argument 1; litteral](integer){5}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){draws}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){time_window}<LSEP>[](symbol){draws_per_minute}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){draws}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){draws}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){percentiles}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentiles}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){percentiles}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentiles}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){percentiles}<LEND>[statement 22; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){percentiles}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){percentiles}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){percentiles}<LEND>[statement 24; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_logical}<LEND>[](symbol){breakdown}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){breakdown_stat}<LEND>[call](){}<LSEP>[](symbol){assert_breakdown_stat}<LSEP>[](symbol){breakdown_stat}<LEND>[statement 26; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setTimeWindowSize}<LEND>[](symbol){time_window}<LEND>[statement 27; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setPercentiles}<LEND>[](symbol){percentiles}<LEND>[statement 28; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setNumberOfMonteCarloDraws}<LEND>[](symbol){draws}<LEND>[statement 29; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setTravelTimesBreakdown}<LEND>[](symbol){breakdown}<LEND>[statement 30; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setTravelTimesBreakdownStat}<LEND>[](symbol){breakdown_stat}<LEND>[statement 31; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){walk_speed}<LSEP>[argument 2; litteral](str){walk}<LEND>[statement 32; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){bike_speed}<LSEP>[argument 2; litteral](str){bike}<LEND>[statement 33; call](){}<LSEP>[](symbol){set_max_rides}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_rides}<LEND>[statement 34; call](){}<LSEP>[](symbol){set_max_lts}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_lts}<LEND>[statement 35; call](){}<LSEP>[](symbol){set_n_threads}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){n_threads}<LEND>[statement 36; call](){}<LSEP>[](symbol){set_verbose}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){verbose}<LEND>[statement 37; call](){}<LSEP>[](symbol){set_progress}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){progress}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){travel_times}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){travelTimeMatrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){direct_modes}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){transit_mode}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){access_mode}<LEND>[argument 9; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){egress_mode}<LEND>[argument 10; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departure}<LSEP>[](symbol){date}<LEND>[argument 11; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departure}<LSEP>[](symbol){time}<LEND>[](symbol){max_walk_time}<LSEP>[](symbol){max_bike_time}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){verbose}<LEND>[](symbol){progress}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Preparing final output...}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){travel_times}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LSEP>[](symbol){travel_times}<LEND>[statement 41; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){travel_times}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){percentiles}<LEND>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){set}<LEND>[](symbol){travel_times}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){travel_times}<LSEP>[](symbol){j}<LEND>[](symbol){max_trip_duration}<LEND>[](symbol){j}<LSEP>[argument 3; litteral](integer){-2147483648}<LEND>[statement 42; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){verbose}<LEND>[](symbol){progress}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ DONE!\n}<LEND>[statement 43; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){travel_times} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){java_to_dt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){columns}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getColumnNames}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){columns}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){column_name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){column_type}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getColumnType}<LEND>[](symbol){column_name}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){column_type}<LSEP>[argument 1; litteral](str){String}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getStringColumn}<LEND>[](symbol){column_name}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){column_type}<LSEP>[argument 1; litteral](str){Integer}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getIntegerColumn}<LEND>[](symbol){column_name}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){column_type}<LSEP>[argument 1; litteral](str){Long}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getLongColumn}<LEND>[](symbol){column_name}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){column_type}<LSEP>[argument 1; litteral](str){Double}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getDoubleColumn}<LEND>[](symbol){column_name}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){column_type}<LSEP>[argument 1; litteral](str){Boolean}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj}<LSEP>[](symbol){getBooleanColumn}<LEND>[](symbol){column_name}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){v}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDT}<LEND>[](symbol){dt}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setnames}<LEND>[](symbol){dt}<LSEP>[](symbol){columns} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){accessibility}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){origins}<LSEP>[](symbol){destinations}<LSEP>[](symbol){opportunities_colname}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LSEP>[](symbol){departure_datetime}<LSEP>[](symbol){time_window}<LSEP>[](symbol){percentiles}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){cutoffs}<LSEP>[](symbol){decay_value}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){max_trip_duration}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_rides}<LSEP>[](symbol){max_lts}<LSEP>[](symbol){n_threads}<LSEP>[](symbol){verbose}<LSEP>[](symbol){progress}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){old_options}<LEND>[call](){}<LSEP>[](symbol){options}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){old_dt_threads}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){getDTthreads}<LEND>[statement 2; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){old_options}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setDTthreads}<LEND>[](symbol){old_dt_threads}<LEND>[statement 3; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](real){inf}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_class}<LEND>[](symbol){r5r_core}<LSEP>[argument 1; litteral](str){jobjRef}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mode_list}<LEND>[call](){}<LSEP>[](symbol){select_mode}<LSEP>[](symbol){mode}<LSEP>[](symbol){mode_egress}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){departure}<LEND>[call](){}<LSEP>[](symbol){posix_to_string}<LSEP>[](symbol){departure_datetime}<LEND>[statement 7; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){max_trip_duration}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){max_trip_duration}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){max_walk_time}<LEND>[call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[](symbol){max_walk_dist}<LSEP>[](symbol){walk_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){max_bike_time}<LEND>[call](){}<LSEP>[](symbol){set_max_street_time}<LSEP>[](symbol){max_bike_dist}<LSEP>[](symbol){bike_speed}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){origins}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){origins}<LSEP>[argument 1; litteral](str){origins}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){destinations}<LEND>[call](){}<LSEP>[](symbol){assert_points_input}<LSEP>[](symbol){destinations}<LSEP>[argument 1; litteral](str){destinations}<LEND>[statement 13; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_character}<LEND>[](symbol){opportunities_colname}<LEND>[statement 14; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_names}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){destinations}<LEND>[](symbol){opportunities_colname}<LSEP>[argument 2; litteral](str){destinations}<LEND>[statement 15; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){destinations}<LSEP>[](symbol){opportunities_colname}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){opportunities_data}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){destinations}<LSEP>[](symbol){opportunities_colname}<LEND>[statement 17; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){time_window}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){time_window}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){time_window}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){draws_per_minute}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){r5r.montecarlo_draws}<LSEP>[argument 1; litteral](integer){5}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){draws}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){time_window}<LSEP>[](symbol){draws_per_minute}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){draws}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){draws}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){percentiles}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentiles}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){percentiles}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentiles}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){percentiles}<LEND>[statement 24; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){percentiles}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){percentiles}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){percentiles}<LEND>[statement 26; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){checkmate}<LSEP>[](symbol){assert_numeric}<LEND>[](symbol){cutoffs}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){cutoffs}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){cutoffs}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){decay_list}<LEND>[call](){}<LSEP>[](symbol){assert_decay_function}<LSEP>[](symbol){decay_function}<LSEP>[](symbol){decay_value}<LEND>[statement 29; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setTimeWindowSize}<LEND>[](symbol){time_window}<LEND>[statement 30; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setPercentiles}<LEND>[](symbol){percentiles}<LEND>[statement 31; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setCutoffs}<LEND>[](symbol){cutoffs}<LEND>[statement 32; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){setNumberOfMonteCarloDraws}<LEND>[](symbol){draws}<LEND>[statement 33; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){walk_speed}<LSEP>[argument 2; litteral](str){walk}<LEND>[statement 34; call](){}<LSEP>[](symbol){set_speed}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){bike_speed}<LSEP>[argument 2; litteral](str){bike}<LEND>[statement 35; call](){}<LSEP>[](symbol){set_max_rides}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_rides}<LEND>[statement 36; call](){}<LSEP>[](symbol){set_max_lts}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){max_lts}<LEND>[statement 37; call](){}<LSEP>[](symbol){set_n_threads}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){n_threads}<LEND>[statement 38; call](){}<LSEP>[](symbol){set_verbose}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){verbose}<LEND>[statement 39; call](){}<LSEP>[](symbol){set_progress}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){progress}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){accessibility}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){r5r_core}<LSEP>[](symbol){accessibility}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){origins}<LSEP>[](symbol){lon}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){id}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lat}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){destinations}<LSEP>[](symbol){lon}<LEND>[](symbol){opportunities_data}<LEND>[argument 7; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){decay_list}<LSEP>[](symbol){fun}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){decay_list}<LSEP>[](symbol){value}<LEND>[argument 9; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){direct_modes}<LEND>[argument 10; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){transit_mode}<LEND>[argument 11; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){access_mode}<LEND>[argument 12; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mode_list}<LSEP>[](symbol){egress_mode}<LEND>[argument 13; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departure}<LSEP>[](symbol){date}<LEND>[argument 14; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){departure}<LSEP>[](symbol){time}<LEND>[](symbol){max_walk_time}<LSEP>[](symbol){max_bike_time}<LSEP>[](symbol){max_trip_duration}<LEND>[statement 41; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){verbose}<LEND>[](symbol){progress}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Preparing final output...}<LEND>[statement 42; assign](){<-}<LSEP>[](symbol){accessibility}<LEND>[call](){}<LSEP>[](symbol){java_to_dt}<LSEP>[](symbol){accessibility}<LEND>[statement 43; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){verbose}<LEND>[](symbol){progress}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ DONE!\n}<LEND>[statement 44; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){accessibility} |
[](){expression}<LSEP>[litteral](str){_PACKAGE}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){getRversion}<LEND>[argument 1; litteral](str){2.15.1}<LEND>[true branch; 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){is}<LSEP>[argument 1; litteral](str){duration}<LSEP>[argument 2; litteral](str){fromId}<LSEP>[argument 3; litteral](str){toId}<LSEP>[argument 4; litteral](str){option}<LSEP>[argument 5; litteral](str){option}<LSEP>[argument 6; litteral](str){.SD}<LSEP>[argument 7; litteral](str){geometry}<LSEP>[argument 8; litteral](str){route}<LSEP>[argument 9; litteral](str){temp_duration}<LSEP>[argument 10; litteral](str){temp_route}<LSEP>[argument 11; litteral](str){route}<LSEP>[argument 12; litteral](str){temp_sign}<LSEP>[argument 13; litteral](str){.I}<LSEP>[argument 14; litteral](str){segment_duration}<LSEP>[argument 15; litteral](str){total_duration}<LSEP>[argument 16; litteral](str){wait}<LSEP>[argument 17; litteral](str){release_date}<LSEP>[argument 18; litteral](str){con}<LSEP>[argument 19; litteral](str){start_lon}<LSEP>[argument 20; litteral](str){start_lat}<LSEP>[argument 21; litteral](str){end_lon}<LSEP>[argument 22; litteral](str){end_lat}<LSEP>[argument 23; litteral](str){slope}<LSEP>[argument 24; litteral](str){lat}<LSEP>[argument 25; litteral](str){lon}<LSEP>[argument 26; litteral](str){walk_multiplier}<LSEP>[argument 27; litteral](str){bike_multiplier}<LSEP>[argument 28; litteral](str){found}<LSEP>[argument 29; litteral](str){.}<LSEP>[argument 30; litteral](str){%>%}<LSEP>[argument 31; litteral](str){:=}<LSEP>[argument 32; litteral](str){%like%}<LSEP>[argument 33; litteral](str){%chin%}<LSEP>[argument 34; litteral](str){set}<LEND>[assign](){=}<LSEP>[](symbol){.onLoad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lib}<LSEP>[](symbol){pkg}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){sf}<LEND>[statement 1; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){rJava}<LEND>[statement 2; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){data.table}<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){paste0}<LSEP>[argument 0; litteral](str){Please make sure you have alre...}<LSEP>[argument 1; litteral](str){some memory to Java by running:\n}<LSEP>[argument 2; litteral](str){ options(java.parameters = '-...}<LSEP>[argument 3; litteral](str){Currently, Java memory is set to }<LEND>[argument 4; call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){java.parameters} |
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[assign](){<-}<LSEP>[](symbol){existing_files}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LEND>[assign](){<-}<LSEP>[](symbol){files_to_keep}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){poa_hexgrid.csv}<LSEP>[argument 1; litteral](str){poa_osm.pbf}<LSEP>[argument 2; litteral](str){poa_points_of_interest.csv}<LSEP>[argument 3; litteral](str){poa.zip}<LEND>[assign](){<-}<LSEP>[](symbol){files_to_remove}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){existing_files}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){existing_files}<LSEP>[](symbol){files_to_keep}<LEND>[call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.remove}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[](symbol){files_to_remove}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){r5r}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){sf}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){data.table}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){mapview}<LEND>[call](){}<LSEP>[](symbol){mapviewOptions}<LSEP>[argument 0; litteral](str){leafgl}<LEND>[assign](){<-}<LSEP>[](symbol){data_path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/poa}<LSEP>[argument 1; litteral](str){r5r}<LEND>[call](){}<LSEP>[](symbol){list.files}<LSEP>[](symbol){data_path}<LEND>[assign](){<-}<LSEP>[](symbol){poi}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){poa_points_of_interest.csv}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){poi}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){data_path}<LSEP>[argument 1; litteral](str){poa_hexgrid.csv}<LEND>[assign](){<-}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){points}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){points}<LEND>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){head}<LSEP>[](symbol){points}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://github.com/ipeaGIT/r5r...}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://github.com/ipeaGIT/r5r...}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://github.com/ipeaGIT/r5r...}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://github.com/ipeaGIT/r5r...} |
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://github.com/ipeaGIT/r5r...} |
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://github.com/ipeaGIT/r5r...} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){CoxWeights}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){marker}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){predict.time}<LSEP>[](symbol){entry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eta}<LSEP>[](symbol){marker}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Target}<LSEP>[](symbol){predict.time}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){entry}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){entry}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){Stime}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){at.risk}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){Stime}<LSEP>[](symbol){Target}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){entry}<LSEP>[](symbol){Target}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){the.eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){eta}<LSEP>[](symbol){at.risk}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){the.eta}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){the.dead}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Stime}<LSEP>[](symbol){Target}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){the.dead}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){the.dead}<LSEP>[](symbol){at.risk}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){n.dead}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){the.dead}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){p0}<LEND>[call](){}<LSEP>[](symbol){rep}<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){n}<LSEP>[](symbol){n.dead}<LEND>[](symbol){n}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n.dead}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){p0}<LSEP>[](symbol){the.dead}<LEND>[litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){the.eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){the.eta}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ooo}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){the.eta}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){eta.out}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){the.eta}<LSEP>[](symbol){ooo}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){TP}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){p1}<LSEP>[](symbol){ooo}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){FP}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){p0}<LSEP>[](symbol){ooo}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){dFP}<LEND>[call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FP}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FP}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){FP}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){aTP}<LEND>[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){TP}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){TP}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){TP}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){area}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){dFP}<LSEP>[](symbol){aTP}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){eta.out}<LSEP>[](symbol){TP}<LSEP>[](symbol){FP}<LSEP>[](symbol){area}<LEND>[statement 20; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){IntegrateAUC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){AUC}<LSEP>[](symbol){utimes}<LSEP>[](symbol){St}<LSEP>[](symbol){tmax}<LSEP>[](symbol){weight}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){wChoice}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){weight}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){rescale}<LSEP>[argument 1; litteral](str){conditional}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){wChoice}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){error in weight choice}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ft}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){St}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ft}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){St}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){St}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ft}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){St}<LSEP>[](symbol){j}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mIndex}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){utimes}<LSEP>[](symbol){tmax}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){www}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){ft}<LEND>[](symbol){St}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){iAUC}<LSEP>[litteral](real){0.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){wTotal}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){www}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){mIndex}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){Smax}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mIndex}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){St}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){wChoice}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){=}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){ft}<LEND>[](symbol){St}<LEND>[](symbol){wTotal}<LEND>[false branch; assign](){=}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){ft}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){St}<LSEP>[](symbol){Smax}<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){1.000000}<LSEP>[](symbol){Smax}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){iAUC}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){mIndex}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){AUC}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){mIndex}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){iAUC}<LEND>[assign](){<-}<LSEP>[](symbol){llCoxReg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Stime}<LSEP>[](symbol){entry}<LSEP>[](symbol){status}<LSEP>[](symbol){marker}<LSEP>[](symbol){span}<LSEP>[](symbol){p}<LSEP>[](symbol){window}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LSEP>[](symbol){marker}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){shrink}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){TheTime}<LSEP>[](symbol){Stime}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){TheStatus}<LSEP>[](symbol){status}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){survival.status}<LSEP>[](symbol){TheStatus}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){survival.time}<LSEP>[](symbol){TheTime}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){eta}<LSEP>[](symbol){x}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){TheTime}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){TheStatus}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){utimes}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){utimes}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){grid.t}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){window}<LSEP>[argument 1; litteral](str){asymmetric}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nt}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nd}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){span}<LSEP>[](symbol){nt}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){keep}<LEND>[call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){delta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){keep}<LEND>[](symbol){nd}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta}<LSEP>[](symbol){keep}<LEND>[](symbol){nd}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta}<LSEP>[](symbol){keep}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){keep}<LEND>[call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){delta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){keep}<LEND>[](symbol){nd}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta}<LSEP>[](symbol){keep}<LEND>[](symbol){nd}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){delta}<LSEP>[](symbol){keep}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nt}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nd}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){span}<LSEP>[](symbol){nt}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){i}<LEND>[](symbol){nd}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){entry}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){entry}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){time}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){entry}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){eta}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ooo}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){survival.time}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tp}<LSEP>[](symbol){ooo}<LSEP>[](symbol){}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){tpp}<LEND>[call](){}<LSEP>[](symbol){riskset}<LSEP>[](symbol){tp}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){nc}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){tpp}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){betat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nu}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){betat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nu}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){shrinkage}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nu}<LEND>[statement 22; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){window}<LSEP>[argument 1; litteral](str){asymmetric}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lLow}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000001}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lHigh}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.000001}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){u}<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){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[](symbol){lLow}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[](symbol){lHigh}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){iu}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){wt}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){iu}<LSEP>[argument 1; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){u}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){iu}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wt}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){iu}<LSEP>[argument 1; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){u}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wt}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){wt}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){wt}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tpcox}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[](symbol){wt}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tpfit}<LEND>[call](){}<LSEP>[](symbol){coxph}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){Surv}<LSEP>[](symbol){start}<LSEP>[](symbol){finish}<LSEP>[](symbol){status}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tpx}<LSEP>[](symbol){tpxt}<LEND>[](symbol){tpcox}<LSEP>[](symbol){wt}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){loglik}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){loglik}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ddd}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){coef}<LEND>[](symbol){ddd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){betat}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){shrink}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){betat}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ddd}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){shrinkage}<LSEP>[](symbol){j}<LEND>[](symbol){ddd}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tpcox}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[argument 5; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){tt}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){wt}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tpfit}<LEND>[call](){}<LSEP>[](symbol){coxph}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){Surv}<LSEP>[](symbol){start}<LSEP>[](symbol){finish}<LSEP>[](symbol){status}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tpx}<LSEP>[](symbol){tpxt}<LEND>[](symbol){tpxt2}<LEND>[](symbol){tpcox}<LSEP>[](symbol){wt}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){loglik}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){loglik}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ddd}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){coef}<LEND>[](symbol){ddd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){betat}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){shrink}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){betat}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ddd}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tpfit}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){shrinkage}<LSEP>[](symbol){j}<LEND>[](symbol){ddd}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){utimes}<LSEP>[](symbol){betat}<LEND>[statement 24; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){riskset}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dat}<LSEP>[](symbol){entry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){time2}<LSEP>[](symbol){entry}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tChoice}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){TRUE}<LSEP>[argument 1; litteral](str){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tChoice}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){nobs}<LEND>[call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){dat}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nobs}<LEND>[](symbol){dat}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){time}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){time2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){status}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 6; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000100}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){time2}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){tp}<LSEP>[](symbol){dat}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){ooo}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){time2}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tp}<LSEP>[](symbol){ooo}<LSEP>[](symbol){}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){utimes}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){nutimes}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){nt}<LSEP>[](symbol){nutimes}<LEND>[statement 15; assign](){=}<LSEP>[](symbol){nobs}<LEND>[call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){tp}<LEND>[statement 16; assign](){=}<LSEP>[](symbol){nc}<LSEP>[](symbol){nobs}<LEND>[statement 17; assign](){=}<LSEP>[](symbol){t.evaluate}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){time}<LEND>[](symbol){utimes}<LEND>[statement 18; assign](){=}<LSEP>[](symbol){newdata}<LSEP>[litteral](NULL){NULL}<LEND>[statement 19; assign](){=}<LSEP>[](symbol){tpnew}<LSEP>[litteral](NULL){NULL}<LEND>[statement 20; assign](){=}<LSEP>[](symbol){newStatus}<LSEP>[litteral](NULL){NULL}<LEND>[statement 21; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t.evaluate}<LSEP>[](symbol){i}<LEND>[](symbol){nc}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){finish}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t.evaluate}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nc}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){newStatus}<LEND>[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){tp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t.evaluate}<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){tp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){keeps}<LEND>[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){tp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t.evaluate}<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){tp}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){t.evaluate}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){ncl}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){tp}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){tpnew}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){start}<LSEP>[](symbol){finish}<LSEP>[](symbol){newStatus}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){ncl}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){tpnew}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tpnew}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keeps}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){newdata}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){newdata}<LSEP>[](symbol){tpnew}<LEND>[statement 22; assign](){=}<LSEP>[](symbol){rs.tp}<LSEP>[](symbol){newdata}<LEND>[statement 23; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){rs.tp}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){start}<LSEP>[argument 1; litteral](str){finish}<LSEP>[argument 2; litteral](str){newStatus}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){tp}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){ncl}<LEND>[statement 24; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){rs.tp}<LEND>[assign](){<-}<LSEP>[](symbol){weightedKM}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){wt}<LSEP>[](symbol){entry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Sstatus}<LSEP>[](symbol){status}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){entry}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){entry}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){time}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){wt}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){wt}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Stime}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Stime}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Sstatus}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){dt}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){dt}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){survival}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){dt}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){current}<LSEP>[litteral](real){1.000000}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){dt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){at.risk}<LEND>[call](){}<LSEP>[](symbol){as.logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){entry}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){Stime}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dead}<LEND>[call](){}<LSEP>[](symbol){as.logical}<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){entry}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Stime}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dt}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Sstatus}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){at.risk}<LSEP>[](symbol){wt}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){dead}<LSEP>[](symbol){wt}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){current}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){current}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){d}<LSEP>[](symbol){n}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){survival}<LSEP>[](symbol){j}<LEND>[](symbol){current}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dt}<LSEP>[](symbol){survival}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){KM.plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Stime}<LSEP>[](symbol){survival}<LSEP>[](symbol){max.T}<LSEP>[](symbol){lty}<LSEP>[](symbol){all}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){times}<LSEP>[](symbol){Stime}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){times}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){times}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){survival}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){survival}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){max.T}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){max.T}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){times}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lty}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){lty}<LSEP>[litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){times}<LSEP>[](symbol){max.T}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){survival}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){survival}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){all}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){times}<LSEP>[](symbol){survival}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){max.T}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){lty}<LSEP>[argument 5; litteral](str){l}<LSEP>[argument 6; litteral](str){Time}<LSEP>[argument 7; litteral](str){Survival}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){times}<LSEP>[](symbol){survival}<LSEP>[](symbol){lty}<LEND>[assign](){<-}<LSEP>[](symbol){SchoenSmooth}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fit}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){span}<LSEP>[](symbol){order}<LSEP>[](symbol){entry}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){shrink}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){survival.time}<LSEP>[](symbol){Stime}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){survival.status}<LSEP>[](symbol){status}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){phtest}<LEND>[call](){}<LSEP>[](symbol){cox.zph}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](str){identity}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){survival.time}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){survival.status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){utimes}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coef}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bbb}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){shrinkage}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bbb}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[](symbol){p}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){shrinkage}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[](symbol){p}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){utimes}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){grid.t}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nt}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nd}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){span}<LSEP>[](symbol){nt}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){i}<LEND>[](symbol){nd}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){utimes}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){iu}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wt}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){iu}<LSEP>[argument 1; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){u}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lambda}<LSEP>[](symbol){j}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){www}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){wt}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){wt}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){order}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){phtest}<LSEP>[](symbol){y}<LEND>[](symbol){www}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nnn}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){www}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nnn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nnn}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){shrink}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ddd}<LSEP>[](symbol){beta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){order}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cTime}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){phtest}<LSEP>[](symbol){x}<LEND>[](symbol){target}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){phtest}<LSEP>[](symbol){y}<LEND>[](symbol){cTime}<LEND>[](symbol){www}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nnn}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){www}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nnn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nnn}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){shrink}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ddd}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bbb}<LSEP>[](symbol){j}<LEND>[](symbol){beta}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){shrinkage}<LSEP>[](symbol){j}<LEND>[](symbol){ddd}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){order}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){phtest}<LSEP>[](symbol){y}<LEND>[](symbol){}<LSEP>[](symbol){k}<LEND>[](symbol){www}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nnn}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){www}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nnn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nnn}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){shrink}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ddd}<LSEP>[](symbol){beta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){order}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cTime}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){phtest}<LSEP>[](symbol){x}<LEND>[](symbol){target}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){phtest}<LSEP>[](symbol){y}<LEND>[](symbol){}<LSEP>[](symbol){k}<LEND>[](symbol){cTime}<LEND>[](symbol){www}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){nnn}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){www}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ddd}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nnn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nnn}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){shrink}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ddd}<LSEP>[](symbol){beta}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bbb}<LSEP>[](symbol){j}<LSEP>[](symbol){k}<LEND>[](symbol){beta}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){shrinkage}<LSEP>[](symbol){j}<LSEP>[](symbol){k}<LEND>[](symbol){ddd}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){utimes}<LSEP>[](symbol){bbb}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){risksetROC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Stime}<LSEP>[](symbol){entry}<LSEP>[](symbol){status}<LSEP>[](symbol){marker}<LSEP>[](symbol){predict.time}<LSEP>[](symbol){method}<LSEP>[](symbol){span}<LSEP>[](symbol){order}<LSEP>[](symbol){window}<LSEP>[](symbol){prop}<LSEP>[](symbol){plot}<LSEP>[](symbol){type}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mChoice}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Cox}<LSEP>[argument 1; litteral](str){LocalCox}<LSEP>[argument 2; litteral](str){Schoenfeld}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){mChoice}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){error in method choice}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){span}<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){mChoice}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Need span for methods = "Loca...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){p}<LSEP>[litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){eta}<LSEP>[](symbol){marker}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){entry}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){entry}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){Stime}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){time}<LSEP>[](symbol){entry}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){time2}<LSEP>[](symbol){Stime}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){coxph}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){Surv}<LSEP>[](symbol){time}<LSEP>[](symbol){time2}<LSEP>[](symbol){status}<LEND>[](symbol){eta}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){new.eta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coefficients}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){time2}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){nd}<LSEP>[](symbol){prop}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grid.t}<LSEP>[](symbol){predict.time}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){keep}<LEND>[call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){delta}<LSEP>[](symbol){nd}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){bfnx.ll}<LEND>[call](){}<LSEP>[](symbol){llCoxReg}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keep}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){time2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keep}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){status}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keep}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){keep}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){span}<LSEP>[](symbol){p}<LSEP>[](symbol){window}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){gamma.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.ll}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.ll}<LSEP>[](symbol){time}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.ll}<LSEP>[](symbol){time}<LEND>[](symbol){predict.time}<LEND>[](symbol){}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){new.eta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gamma.t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){coxph}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){Surv}<LSEP>[](symbol){time}<LSEP>[](symbol){time2}<LSEP>[](symbol){status}<LEND>[](symbol){eta}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){bfnx.SS}<LEND>[call](){}<LSEP>[](symbol){SchoenSmooth}<LSEP>[](symbol){fit}<LSEP>[](symbol){time2}<LSEP>[](symbol){status}<LSEP>[](symbol){span}<LSEP>[](symbol){order}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){gamma.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.SS}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.SS}<LSEP>[](symbol){time}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.SS}<LSEP>[](symbol){time}<LEND>[](symbol){predict.time}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){new.eta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){eta}<LSEP>[](symbol){gamma.t}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){CoxWeights}<LSEP>[](symbol){new.eta}<LSEP>[](symbol){time}<LSEP>[](symbol){status}<LSEP>[](symbol){predict.time}<LSEP>[](symbol){time2}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){FP}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){TP}<LEND>[](symbol){type}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){risksetAUC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Stime}<LSEP>[](symbol){entry}<LSEP>[](symbol){status}<LSEP>[](symbol){marker}<LSEP>[](symbol){method}<LSEP>[](symbol){span}<LSEP>[](symbol){order}<LSEP>[](symbol){window}<LSEP>[](symbol){tmax}<LSEP>[](symbol){weight}<LSEP>[](symbol){plot}<LSEP>[](symbol){type}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mChoice}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Cox}<LSEP>[argument 1; litteral](str){LocalCox}<LSEP>[argument 2; litteral](str){Schoenfeld}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){mChoice}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){error in method choice}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){span}<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){mChoice}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Need span for methods = "Loca...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){p}<LSEP>[litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){eta}<LSEP>[](symbol){marker}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){entry}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){time}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Stime}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){time}<LSEP>[](symbol){entry}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){Stime}<LSEP>[](symbol){Stime}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){time2}<LSEP>[](symbol){Stime}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Stime}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){status}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){utimes}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){utimes}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){new.eta}<LSEP>[litteral](NULL){NULL}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){km.out}<LEND>[call](){}<LSEP>[](symbol){weightedKM}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){time}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){coxph}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){Surv}<LSEP>[](symbol){time}<LSEP>[](symbol){time2}<LSEP>[](symbol){status}<LEND>[](symbol){eta}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){gamma.t}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fit}<LSEP>[](symbol){coefficients}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){utimes}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){bfnx.ll}<LEND>[call](){}<LSEP>[](symbol){llCoxReg}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){eta}<LSEP>[](symbol){span}<LSEP>[](symbol){p}<LSEP>[](symbol){window}<LSEP>[](symbol){entry}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){gamma.t}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.ll}<LSEP>[](symbol){beta}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mChoice}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){coxph}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){Surv}<LSEP>[](symbol){time}<LSEP>[](symbol){time2}<LSEP>[](symbol){status}<LEND>[](symbol){eta}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){bfnx.SS}<LEND>[call](){}<LSEP>[](symbol){SchoenSmooth}<LSEP>[](symbol){fit}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LSEP>[](symbol){span}<LSEP>[](symbol){order}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){gamma.t}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bfnx.SS}<LSEP>[](symbol){beta}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){gamma.t}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gamma.t}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){gamma.t}<LEND>[statement 15; assign](){=}<LSEP>[](symbol){AUC}<LSEP>[litteral](NULL){NULL}<LEND>[statement 16; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){gamma.t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){new.eta}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gamma.t}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){CoxWeights}<LSEP>[](symbol){new.eta}<LSEP>[](symbol){Stime}<LSEP>[](symbol){status}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){utimes}<LSEP>[](symbol){i}<LEND>[](symbol){entry}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){AUC}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){AUC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){AUC}<LEND>[statement 17; assign](){=}<LSEP>[](symbol){Cindex}<LEND>[call](){}<LSEP>[](symbol){IntegrateAUC}<LSEP>[](symbol){AUC}<LSEP>[](symbol){utimes}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){km.out}<LSEP>[](symbol){survival}<LEND>[](symbol){tmax}<LSEP>[](symbol){weight}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){utimes}<LSEP>[](symbol){AUC}<LSEP>[](symbol){type}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){tmax}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.400000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){abline}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[statement 19; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){utimes}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){km.out}<LSEP>[](symbol){survival}<LEND>[](symbol){AUC}<LSEP>[](symbol){Cindex} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){testthat}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pathviewr}<LEND>[call](){}<LSEP>[](symbol){test_check}<LSEP>[argument 0; litteral](str){pathviewr} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){rotate_tunnel}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](str){autodetect}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){v}<LSEP>[argument 1; litteral](real){0.385500}<LSEP>[argument 2; litteral](real){90.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[assign](){<-}<LSEP>[](symbol){motive_min_dist}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_v}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){calc_min_dist_v() fails when n...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_v}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_v}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_v}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_v}<LSEP>[](symbol){motive_full}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_v}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){calc_min_dist_v() adds variabl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){34.000000}<LSEP>[argument 1; litteral](real){42.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){vertical_2_vertex}<LSEP>[argument 1; litteral](str){vertical_2_screen}<LSEP>[argument 2; litteral](str){horizontal_2_screen_pos}<LSEP>[argument 3; litteral](str){horizontal_2_screen_neg}<LSEP>[argument 4; litteral](str){min_dist_pos}<LSEP>[argument 5; litteral](str){min_dist_neg}<LSEP>[argument 6; litteral](str){bound_pos}<LSEP>[argument 7; litteral](str){bound_neg}<LSEP>[argument 8; litteral](str){min_dist_end}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){motive_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){449.000000}<LSEP>[argument 1; litteral](real){42.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){calc_min_dist_v() makes correc...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_min_dist}<LSEP>[](symbol){min_dist_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){223.000000}<LSEP>[argument 1; litteral](real){227.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.447449}<LSEP>[argument 1; litteral](real){0.152587}<LSEP>[argument 2; litteral](real){0.150569}<LSEP>[argument 3; litteral](real){0.149736}<LSEP>[argument 4; litteral](real){0.148108}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_min_dist}<LSEP>[](symbol){min_dist_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){223.000000}<LSEP>[argument 1; litteral](real){227.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.189752}<LSEP>[argument 1; litteral](real){0.332944}<LSEP>[argument 2; litteral](real){0.333095}<LSEP>[argument 3; litteral](real){0.333641}<LSEP>[argument 4; litteral](real){0.333109}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_min_dist}<LSEP>[](symbol){min_dist_end}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){223.000000}<LSEP>[argument 1; litteral](real){227.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.344587}<LSEP>[argument 1; litteral](real){1.656489}<LSEP>[argument 2; litteral](real){1.630593}<LSEP>[argument 3; litteral](real){1.603437}<LSEP>[argument 4; litteral](real){1.577032}<LEND>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_gathered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){standardize_tunnel() fails whe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[](symbol){motive_data} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){redefine_tunnel_center}<LSEP>[argument 4; litteral](str){middle}<LSEP>[argument 5; litteral](str){user-defined}<LSEP>[argument 6; litteral](real){1.440000}<LSEP>[argument 7; litteral](logical){FALSE}<LSEP>[argument 8; litteral](logical){TRUE}<LSEP>[argument 9; litteral](real){60.000000}<LSEP>[argument 10; litteral](logical){FALSE}<LSEP>[argument 11; litteral](logical){TRUE}<LSEP>[argument 12; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){box}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.100000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](str){latB}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_min_dist}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_box}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){calc_min_dist_box() fails when...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_box}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_box}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_box}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_box}<LSEP>[](symbol){flydra_full}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){calc_min_dist_box}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){calc_min_dist_box() adds varia...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){flydra_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){24.000000}<LSEP>[argument 1; litteral](real){26.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){min_dist_pos}<LSEP>[argument 1; litteral](str){min_dist_neg}<LSEP>[argument 2; litteral](str){min_dist_end}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){flydra_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){381.000000}<LSEP>[argument 1; litteral](real){26.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_vis_angle() makes correct ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_min_dist}<LSEP>[](symbol){min_dist_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.493629}<LSEP>[argument 1; litteral](real){0.498155}<LSEP>[argument 2; litteral](real){0.501480}<LSEP>[argument 3; litteral](real){0.504829}<LSEP>[argument 4; litteral](real){0.508783}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_min_dist}<LSEP>[](symbol){min_dist_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.506371}<LSEP>[argument 1; litteral](real){0.501845}<LSEP>[argument 2; litteral](real){0.498520}<LSEP>[argument 3; litteral](real){0.495171}<LSEP>[argument 4; litteral](real){0.491217}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_min_dist}<LSEP>[](symbol){min_dist_end}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.420628}<LSEP>[argument 1; litteral](real){2.402764}<LSEP>[argument 2; litteral](real){2.384981}<LSEP>[argument 3; litteral](real){2.367326}<LSEP>[argument 4; litteral](real){2.349635}<LEND>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_gathered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rename_viewr_characters() fail...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rename_viewr_characters}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rename_viewr_characters}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rename_viewr_characters}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[](symbol){motive_gathered}<LSEP>[argument 1; litteral](str){bob}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rename_viewr_characters}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_gathered}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_renamed}<LEND>[call](){}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[](symbol){motive_gathered}<LSEP>[argument 1; litteral](str){subject}<LSEP>[argument 2; litteral](str){device}<LSEP>[argument 3; litteral](str){subject}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rename_viewr_characters() repl...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_renamed}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](str){subject02} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){rotate_tunnel}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](str){autodetect}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_treat}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){v}<LSEP>[argument 1; litteral](real){0.385500}<LSEP>[argument 2; litteral](real){90.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){redefine_tunnel_center}<LSEP>[argument 4; litteral](str){middle}<LSEP>[argument 5; litteral](str){user-defined}<LSEP>[argument 6; litteral](real){1.440000}<LSEP>[argument 7; litteral](logical){FALSE}<LSEP>[argument 8; litteral](logical){TRUE}<LSEP>[argument 9; litteral](real){60.000000}<LSEP>[argument 10; litteral](logical){FALSE}<LSEP>[argument 11; litteral](logical){TRUE}<LSEP>[argument 12; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_treat}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){box}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.100000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](str){latB}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){insert_treatments() fails when...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){insert_treatments}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){insert_treatments}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[](symbol){flydra_treat}<LSEP>[argument 1; litteral](str){box}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](real){3.000000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[](symbol){flydra_treat}<LSEP>[argument 1; litteral](str){box}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[](symbol){flydra_treat}<LSEP>[argument 1; litteral](str){box}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.050000}<LEND>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){insert_treatments() adds varia...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_treat}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tunnel_config}<LSEP>[argument 1; litteral](str){perch_2_vertex}<LSEP>[argument 2; litteral](str){vertex_angle}<LSEP>[argument 3; litteral](str){tunnel_length}<LSEP>[argument 4; litteral](str){stim_param_lat_pos}<LSEP>[argument 5; litteral](str){stim_param_lat_neg}<LSEP>[argument 6; litteral](str){stim_param_end_pos}<LSEP>[argument 7; litteral](str){stim_param_end_neg}<LSEP>[argument 8; litteral](str){treatment}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){flydra_treat}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tunnel_config}<LSEP>[argument 1; litteral](str){tunnel_width}<LSEP>[argument 2; litteral](str){tunnel_length}<LSEP>[argument 3; litteral](str){stim_param_lat_pos}<LSEP>[argument 4; litteral](str){stim_param_lat_neg}<LSEP>[argument 5; litteral](str){stim_param_end_pos}<LSEP>[argument 6; litteral](str){stim_param_end_neg}<LSEP>[argument 7; litteral](str){treatment}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){motive_treat}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){449.000000}<LSEP>[argument 1; litteral](real){33.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){flydra_treat}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){381.000000}<LSEP>[argument 1; litteral](real){23.000000} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){rotate_tunnel}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](str){autodetect}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){v}<LSEP>[argument 1; litteral](real){0.385500}<LSEP>[argument 2; litteral](real){90.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_v}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[assign](){<-}<LSEP>[](symbol){motive_sf}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_sf}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){redefine_tunnel_center}<LSEP>[argument 4; litteral](str){middle}<LSEP>[argument 5; litteral](str){user-defined}<LSEP>[argument 6; litteral](real){1.440000}<LSEP>[argument 7; litteral](logical){FALSE}<LSEP>[argument 8; litteral](logical){TRUE}<LSEP>[argument 9; litteral](real){60.000000}<LSEP>[argument 10; litteral](logical){FALSE}<LSEP>[argument 11; litteral](logical){TRUE}<LSEP>[argument 12; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){box}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.100000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](str){latB}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_box}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_sf}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_sf}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_sf() fails when nonsense i...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_sf}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_sf}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_sf}<LSEP>[](symbol){flydra_full}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_sf}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_sf() adds variables approp...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){33.000000}<LSEP>[argument 1; litteral](real){35.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){sf_pos}<LSEP>[argument 1; litteral](str){sf_neg}<LSEP>[argument 2; litteral](str){sf_end}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){43.000000}<LSEP>[argument 1; litteral](real){45.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){sf_pos}<LSEP>[argument 1; litteral](str){sf_neg}<LSEP>[argument 2; litteral](str){sf_end}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){flydra_sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){381.000000}<LSEP>[argument 1; litteral](real){35.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){motive_sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){449.000000}<LSEP>[argument 1; litteral](real){45.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_sf makes correct calculati...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_sf}<LSEP>[](symbol){sf_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){210.000000}<LSEP>[argument 1; litteral](real){214.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.103098}<LSEP>[argument 1; litteral](real){0.105285}<LSEP>[argument 2; litteral](real){0.107103}<LSEP>[argument 3; litteral](real){0.171255}<LSEP>[argument 4; litteral](real){0.167207}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_sf}<LSEP>[](symbol){sf_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){210.000000}<LSEP>[argument 1; litteral](real){214.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.246317}<LSEP>[argument 1; litteral](real){0.244126}<LSEP>[argument 2; litteral](real){0.242305}<LSEP>[argument 3; litteral](real){0.178102}<LSEP>[argument 4; litteral](real){0.182150}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_sf}<LSEP>[](symbol){sf_end}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){210.000000}<LSEP>[argument 1; litteral](real){214.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.105967}<LSEP>[argument 1; litteral](real){0.103229}<LSEP>[argument 2; litteral](real){0.100856}<LSEP>[argument 3; litteral](real){0.388172}<LSEP>[argument 4; litteral](real){0.385656}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_sf}<LSEP>[](symbol){sf_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){66.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.200079}<LSEP>[argument 1; litteral](real){0.198791}<LSEP>[argument 2; litteral](real){0.072363}<LSEP>[argument 3; litteral](real){0.072970}<LSEP>[argument 4; litteral](real){0.072497}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_sf}<LSEP>[](symbol){sf_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){66.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.027112}<LSEP>[argument 1; litteral](real){0.028674}<LSEP>[argument 2; litteral](real){0.049416}<LSEP>[argument 3; litteral](real){0.048244}<LSEP>[argument 4; litteral](real){0.047077}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_sf}<LSEP>[](symbol){sf_end}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){62.000000}<LSEP>[argument 1; litteral](real){66.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.064808}<LSEP>[argument 1; litteral](real){0.060514}<LSEP>[argument 2; litteral](real){0.286816}<LSEP>[argument 3; litteral](real){0.281722}<LSEP>[argument 4; litteral](real){0.276922}<LEND>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_test_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){motive_cleaned_renamed}<LEND>[call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){subject}<LSEP>[argument 3; litteral](str){device}<LSEP>[argument 4; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){motive_cleaned_filled}<LEND>[call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){aicc}<LSEP>[argument 1; litteral](str){gcv}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gaussian}<LSEP>[argument 1; litteral](str){symmetric}<LEND>[argument 5; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_redefined_cleaned}<LEND>[call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](str){redefine_tunnel_center}<LSEP>[argument 5; litteral](str){median}<LSEP>[argument 6; litteral](real){0.500000}<LSEP>[argument 7; litteral](real){1.000000}<LSEP>[argument 8; litteral](real){0.900000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_import_and_clean}<LEND>[call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](real){50.000000}<LSEP>[argument 2; litteral](str){autodetect}<LSEP>[argument 3; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_import_and_clean2}<LEND>[call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){aicc}<LSEP>[argument 1; litteral](str){gcv}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gaussian}<LSEP>[argument 1; litteral](str){symmetric}<LEND>[argument 5; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){motive_import_and_clean3}<LEND>[call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){subject}<LSEP>[argument 3; litteral](str){device}<LSEP>[argument 4; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){a message is made even if inpu...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){motive_import_and_clean}<LEND>[call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](real){50.000000}<LSEP>[argument 2; litteral](str){autodetect}<LSEP>[argument 3; litteral](real){0.950000}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){aicc}<LSEP>[argument 1; litteral](str){gcv}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gaussian}<LSEP>[argument 1; litteral](str){symmetric}<LEND>[argument 8; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when no fi...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when unrec...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](str){steve}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when relab...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){_z}<LSEP>[argument 3; litteral](str){_x}<LSEP>[argument 4; litteral](str){_y}<LSEP>[argument 5; litteral](str){_w}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when gathe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when trim_...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.400000}<LEND>[argument 5; litteral](real){0.800000}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 7; litteral](real){0.500000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when get_v...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){time_sec}<LSEP>[argument 3; litteral](str){position_length}<LSEP>[argument 4; litteral](str){position_width}<LSEP>[argument 5; litteral](str){position_height}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when selec...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){33.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when renam...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){subject}<LSEP>[argument 3; litteral](str){device}<LSEP>[argument 4; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when separ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.100000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when get_f...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){0.800000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when fill_...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){aicc}<LSEP>[argument 1; litteral](str){gcv}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gaussian}<LSEP>[argument 1; litteral](str){symmetric}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() fails when stand...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](str){help_pls}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr() reports when unu...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){motive_test_data}<LSEP>[argument 1; litteral](str){stuff}<LSEP>[argument 2; litteral](str){chewie}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LSEP>[argument 0; litteral](str){nope.csv}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LSEP>[argument 0; litteral](str){steve}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){_z}<LSEP>[argument 3; litteral](str){_x}<LSEP>[argument 4; litteral](str){_y}<LSEP>[argument 5; litteral](str){_w}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.400000}<LEND>[argument 5; litteral](real){0.800000}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 7; litteral](real){0.500000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){time_sec}<LSEP>[argument 3; litteral](str){position_length}<LSEP>[argument 4; litteral](str){position_width}<LSEP>[argument 5; litteral](str){position_height}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){33.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){subject}<LSEP>[](symbol){pattern}<LSEP>[argument 4; litteral](str){}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.100000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){0.800000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){aicc}<LSEP>[argument 1; litteral](str){gcv}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gaussian}<LSEP>[argument 1; litteral](str){symmetric}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() repor...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){stuff}<LSEP>[argument 2; litteral](str){chewie}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_viewr() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){chewie} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rescale_tunnel_data() fails wh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_gathered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rescale_tunnel_data() rescales...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LSEP>[](symbol){motive_gathered}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.249000}<LSEP>[argument 2; litteral](real){0.001000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LSEP>[](symbol){motive_gathered}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_gathered}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){0.010000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rescale_tunnel_data() rescales...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LSEP>[](symbol){motive_gathered}<LSEP>[argument 1; litteral](str){a}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rescale_tunnel_data}<LSEP>[](symbol){motive_gathered}<LSEP>[argument 1; litteral](str){b} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){read_flydra_mat() fails when n...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){read_flydra_mat}<LSEP>[argument 0; litteral](str){birdie_wooster}<LEND>[argument 1; litteral](str){A mat_file is required}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){read_flydra_mat() stops when n...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){A subject_name is required}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_test_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){read_flydra_mat() reads data i...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){flydra_test_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LSEP>[argument 1; litteral](str){time_sec}<LSEP>[argument 2; litteral](str){subject}<LSEP>[argument 3; litteral](str){position_length}<LSEP>[argument 4; litteral](str){position_width}<LSEP>[argument 5; litteral](str){position_height}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){flydra_test_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){7744.000000}<LSEP>[argument 1; litteral](real){6.000000} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){as_viewr() fails when nothing ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_viewr}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_viewr}<LSEP>[argument 0; litteral](str){bob}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.010000}<LSEP>[argument 2; litteral](real){100.000000}<LEND>[argument 2; litteral](str){birdie_sanders}<LEND>[argument 3; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){asviewr_example}<LEND>[call](){}<LSEP>[](symbol){as_viewr}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){3.000000}<LSEP>[argument 5; litteral](real){5.000000}<LSEP>[argument 6; litteral](real){6.000000}<LSEP>[argument 7; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){as_viewr() interprets data in ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){asviewr_example}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LSEP>[argument 1; litteral](str){time_sec}<LSEP>[argument 2; litteral](str){subject}<LSEP>[argument 3; litteral](str){position_length}<LSEP>[argument 4; litteral](str){position_width}<LSEP>[argument 5; litteral](str){position_height}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){asviewr_example}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){100.000000}<LSEP>[argument 1; litteral](real){6.000000} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_dist_point_line() fails wh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; 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}<LEND>[argument 2; 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}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 2; 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}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; 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}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 2; 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}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_dist_point_line() returns ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_dist_point_line() returns ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; 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}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){find_curve_elbow() fails when ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_curve_elbow}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_curve_elbow}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){df2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){find_curve_elbow() returns the...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_curve_elbow}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){find_curve_elbow() fails when ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){find_curve_elbow}<LSEP>[](symbol){df2}<LSEP>[argument 1; litteral](logical){FALSE} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){read_motive_csv() fails when n...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[assign](){<-}<LSEP>[](symbol){motive_test_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){read_motive_csv() reads data i...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_test_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LSEP>[argument 1; litteral](str){time_sec}<LSEP>[argument 2; litteral](str){device02_rotation_z}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){motive_test_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){934.000000}<LSEP>[argument 1; litteral](real){26.000000} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_import_and_clean}<LEND>[call](){}<LSEP>[](symbol){suppressMessages}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](real){50.000000}<LSEP>[argument 2; litteral](str){autodetect}<LSEP>[argument 3; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_vel_filtered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_import_and_clean}<LEND>[argument 1; call](){}<LSEP>[](symbol){exclude_by_velocity}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_vel_filtered2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_import_and_clean}<LEND>[argument 1; call](){}<LSEP>[](symbol){exclude_by_velocity}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){exclude_by_velocity() fails wh...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){exclude_by_velocity}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){exclude_by_velocity}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){exclude_by_velocity}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){exclude_by_velocity}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){exclude_by_velocity}<LSEP>[](symbol){motive_import_and_clean}<LSEP>[argument 1; litteral](str){6}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){exclude_by_velocity}<LSEP>[](symbol){motive_import_and_clean}<LSEP>[argument 1; litteral](str){6}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){exclude_by_velocity() produces...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_vel_filtered}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){12.000000}<LEND>[argument 1; litteral](real){2.774914}<LSEP>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rotate_tunnel() fails when non...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_trimmed}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[assign](){<-}<LSEP>[](symbol){motive_rotated}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rotate_tunnel() handles argume...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rm_by_trajnum() fails when dat...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_by_trajnum}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](real){50.000000}<LSEP>[argument 1; litteral](str){autodetect}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_rm_unmirrored}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[argument 0; litteral](real){150.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rm_by_trajnum() counts traject...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[](symbol){motive_full}<LSEP>[argument 1; litteral](real){150.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){25.000000}<LEND>[](symbol){n}<LEND>[argument 1; litteral](real){223.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[](symbol){motive_full}<LSEP>[argument 1; litteral](real){150.000000}<LEND>[argument 1; litteral](real){187.000000}<LSEP>[argument 2; litteral](real){25.000000}<LEND>[](symbol){n}<LEND>[argument 1; litteral](real){223.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rm_by_trajnum() removes subjec...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[](symbol){motive_full}<LSEP>[argument 1; litteral](real){150.000000}<LEND>[](symbol){subject}<LEND>[argument 1; litteral](str){device02}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){treatment}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latA}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latB}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latA}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latB}<LSEP>[argument 1; litteral](real){149.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_rm_mirrored}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){latA}<LSEP>[argument 3; litteral](str){latB}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rm_by_trajnum() removes mirror...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){rm_by_trajnum}<LSEP>[](symbol){motive_full}<LSEP>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){latA}<LSEP>[argument 4; litteral](str){latB}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){device02}<LSEP>[argument 1; litteral](str){device03} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){visualize_frame_gap_choice() f...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_selected}<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){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 1; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[assign](){<-}<LSEP>[](symbol){mfg}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){cts}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){trajectory_count}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){double}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){frame_gap_allowed}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){double}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){vectors are empty before looping}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mfg}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cts}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){trajectory_count}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){frame_gap_allowed}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){visualize_frame_gap_choice() t...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[](symbol){motive_selected}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){trajectory_count}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){13.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[](symbol){motive_selected}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){frame_gap_allowed}<LEND>[argument 1; litteral](real){8.000000}<LEND>[argument 1; litteral](real){8.000000}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[](symbol){motive_selected}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){visualize_frame_gap_choice() f...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[](symbol){motive_selected}<LSEP>[](symbol){jobin} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){gather_tunnel_data() fails whe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_gathered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[assign](){<-}<LSEP>[](symbol){motive_garbage}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LSEP>[](symbol){time_sec}<LEND>[assign](){<-}<LSEP>[](symbol){motive_garbage2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LSEP>[](symbol){time_sec}<LSEP>[](symbol){device02_position_length}<LSEP>[](symbol){device02_position_width}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){gather_tunnel_data() reorganiz...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_gathered}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){subject}<LSEP>[argument 1; litteral](str){position_length}<LSEP>[argument 2; litteral](str){position_width}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){motive_gathered}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2613.000000}<LSEP>[argument 1; litteral](real){11.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){gather_tunnel_data() reorganiz...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[](symbol){motive_garbage}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[](symbol){motive_garbage2} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_test_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){import_list}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){import_list_flydra}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_batch_imports}<LEND>[call](){}<LSEP>[](symbol){import_batch}<LSEP>[](symbol){import_list}<LSEP>[argument 1; litteral](str){motive}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_batch_imports}<LEND>[call](){}<LSEP>[](symbol){import_batch}<LSEP>[](symbol){import_list_flydra}<LSEP>[argument 1; litteral](str){flydra}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){bob}<LSEP>[argument 4; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_batch_cleaned}<LEND>[call](){}<LSEP>[](symbol){clean_viewr_batch}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[](symbol){motive_batch_imports}<LSEP>[argument 2; litteral](real){50.000000}<LSEP>[argument 3; litteral](str){autodetect}<LSEP>[argument 4; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_batch_import_and_clean}<LEND>[call](){}<LSEP>[](symbol){import_and_clean_batch}<LSEP>[](symbol){import_list}<LSEP>[argument 1; litteral](str){motive}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){motive_batch_imports}<LSEP>[argument 4; litteral](real){50.000000}<LSEP>[argument 5; litteral](str){autodetect}<LSEP>[argument 6; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_bound_one}<LEND>[call](){}<LSEP>[](symbol){bind_viewr_objects}<LSEP>[](symbol){motive_batch_cleaned}<LEND>[assign](){<-}<LSEP>[](symbol){motive_bound_two}<LEND>[call](){}<LSEP>[](symbol){bind_viewr_objects}<LSEP>[](symbol){motive_batch_import_and_clean}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_batch() fails when no f...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_batch}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_batch() fails when impo...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_batch}<LSEP>[](symbol){import_list}<LSEP>[argument 1; litteral](str){magic}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_batch() gives messages ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_batch}<LSEP>[](symbol){import_list}<LSEP>[argument 1; litteral](str){motive}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_batch}<LSEP>[](symbol){import_list_flydra}<LSEP>[argument 1; litteral](str){flydra}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){bob}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr_batch() fails when...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr_batch}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr_batch}<LSEP>[](symbol){motive_test_data}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){clean_viewr_batch() announces ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){clean_viewr_batch}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[](symbol){motive_batch_imports}<LSEP>[argument 2; litteral](real){50.000000}<LSEP>[argument 3; litteral](str){autodetect}<LSEP>[argument 4; litteral](real){0.950000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_batch() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_batch}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_batch}<LSEP>[](symbol){import_list}<LSEP>[argument 1; litteral](str){magic}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_batch}<LSEP>[](symbol){motive_test_data}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){import_and_clean_batch() gives...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_message}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_batch}<LSEP>[](symbol){import_list}<LSEP>[argument 1; litteral](str){motive}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){import_and_clean_batch}<LSEP>[](symbol){import_list_flydra}<LSEP>[argument 1; litteral](str){flydra}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){bob}<LSEP>[argument 4; litteral](real){100.000000}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){bind_viewr_objects() fails whe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){bind_viewr_objects}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){bind_viewr_objects}<LSEP>[](symbol){motive_test_data}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){bind_viewr_objects() binds dat...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){bind_viewr_objects}<LSEP>[](symbol){motive_batch_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1347.000000}<LSEP>[argument 1; litteral](real){24.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){bind_viewr_objects() handles a...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){bind_viewr_objects}<LSEP>[](symbol){motive_batch_cleaned}<LEND>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){viewr}<LSEP>[argument 1; litteral](str){bound_viewr_objects} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){magrittr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){plot_by_subject() fails when d...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_by_subject}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_by_subject}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_by_subject}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](real){50.000000}<LSEP>[argument 1; litteral](str){autodetect}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){height_limits}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_height}<LEND>[assign](){<-}<LSEP>[](symbol){width_limits}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){base functions set axes correctly}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.243158}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){width_limits}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){top_view}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[](symbol){width_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){identity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[](symbol){width_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[assign](){<-}<LSEP>[](symbol){top_all_plots}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){top_view}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){paths}<LSEP>[](symbol){hist}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[argument 0; litteral](str){plot_type}<LSEP>[argument 1; litteral](str){allplots}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){top views created correctly vi...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<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){top_view}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){data}<LEND>[argument 1; litteral](str){position_width}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.116356}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<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){top_view}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](str){facet}<LEND>[argument 1; litteral](str){super}<LEND>[argument 1; litteral](str){args}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){top views wrangled correctly v...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){top_all_plots}<LSEP>[](symbol){plot_type}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){paths}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){top_all_plots}<LSEP>[](symbol){subject}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](str){device03}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_match}<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){top_all_plots}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){labels}<LEND>[argument 1; litteral](str){x}<LEND>[argument 1; litteral](str){position_width}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_by_subject}<LSEP>[](symbol){motive_full}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){treatment}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latA}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latB}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latA}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){latB}<LSEP>[argument 1; litteral](real){149.000000}<LEND>[assign](){<-}<LSEP>[](symbol){elev_view}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_height}<LSEP>[](symbol){treatment}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[](symbol){height_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_height}<LSEP>[](symbol){treatment}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){identity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[](symbol){height_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[assign](){<-}<LSEP>[](symbol){elev_all_plots}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elev_view}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){paths}<LSEP>[](symbol){hist}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[argument 0; litteral](str){plot_type}<LSEP>[argument 1; litteral](str){allplots}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){elev views created correctly v...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<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){elev_view}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){data}<LEND>[argument 1; litteral](str){position_width}<LEND>[argument 1; litteral](real){98.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.099912}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){environment}<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){elev_view}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](str){facet}<LEND>[argument 1; litteral](str){super}<LEND>[argument 1; litteral](str){args}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){elev views wrangled correctly ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){elev_all_plots}<LSEP>[](symbol){plot_type}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](str){paths}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){elev_all_plots}<LSEP>[](symbol){subject}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){device02}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_match}<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){elev_all_plots}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){labels}<LEND>[argument 1; litteral](str){x}<LEND>[argument 1; litteral](str){position_height}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_by_subject}<LSEP>[](symbol){motive_full}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){plot_by_subject() fails when n...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_by_subject}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){jobin} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){trim_tunnel_outliers() fails w...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_gathered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[assign](){<-}<LSEP>[](symbol){motive_trimmed}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_gathered}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.400000}<LEND>[argument 3; litteral](real){0.800000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 5; litteral](real){0.500000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){trim_tunnel_outliers() handles...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_gathered}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_gathered}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_gathered}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_velocity() fails when non-...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_cleaned}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[argument 1; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[assign](){<-}<LSEP>[](symbol){motive_velocity_added}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){motive_velocity_standalone}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){motive_velocity_minfilt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_velocity_maxfilt}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_velocity() returns the cor...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){motive_cleaned}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){15.000000}<LEND>[](symbol){height_inst_vel}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){motive_cleaned}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){14.000000}<LEND>[](symbol){width_inst_vel}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.387000}<LEND>[argument 2; litteral](real){0.001000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_velocity() filtering works}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){motive_cleaned}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){15.000000}<LEND>[](symbol){height_inst_vel}<LEND>[argument 1; litteral](real){0.335700}<LSEP>[argument 2; litteral](real){0.001000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){motive_cleaned}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){14.000000}<LEND>[](symbol){width_inst_vel}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.387397}<LEND>[argument 2; litteral](real){0.001000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_velocity() fails when velo...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){motive_cleaned}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){bob}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_velocity() fails when velo...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){motive_cleaned}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){bob}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_velocity() fails when colu...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_cleaned}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){bob}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_cleaned}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){bob}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_velocity}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_cleaned}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){bob} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_centered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){middle}<LSEP>[argument 1; litteral](str){user-defined}<LSEP>[argument 2; litteral](real){1.440000}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_middle}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){middle}<LSEP>[argument 1; litteral](str){middle}<LSEP>[argument 2; litteral](str){middle}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_median}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){median}<LSEP>[argument 1; litteral](str){median}<LSEP>[argument 2; litteral](str){median}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_original}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){original}<LSEP>[argument 1; litteral](str){original}<LSEP>[argument 2; litteral](str){original}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_ud}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){user-defined}<LSEP>[argument 1; litteral](real){1.350000}<LSEP>[argument 2; litteral](str){user-defined}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.170000}<LEND>[argument 4; litteral](str){user-defined}<LSEP>[argument 5; litteral](real){1.300000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){redefine_tunnel_center() fails...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_data}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 9; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 10; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LEND>[statement 11; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LEND>[statement 12; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LEND>[statement 13; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LSEP>[argument 2; litteral](str){a}<LEND>[statement 14; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LSEP>[argument 2; litteral](logical){NA}<LEND>[statement 15; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LSEP>[argument 2; litteral](str){a}<LEND>[statement 16; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LSEP>[argument 2; litteral](logical){NA}<LEND>[statement 17; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LSEP>[argument 2; litteral](str){a}<LEND>[statement 18; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LSEP>[argument 2; litteral](logical){NA}<LEND>[statement 19; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){user_defined}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){redefine_tunnel_center() produ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_centered}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.256542}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_middle}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.256542}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_median}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.018383}<LSEP>[argument 2; litteral](real){0.000010}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_original}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.868874}<LSEP>[argument 2; litteral](real){0.000010}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){flydra_ud}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.481126}<LEND>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_header_viewr() fails when ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_header_viewr}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_header_viewr}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_header_viewr() parses head...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_header_viewr}<LSEP>[](symbol){motive_data}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){Take Notes} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_2d_angle() fails when non-...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_2d_angle}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_2d_angle}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_2d_angle() returns the cor...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_2d_angle}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.000000}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](real){0.000000}<LEND>[argument 1; litteral](real){90.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_3d_angle() fails when non-...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_3d_angle}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_3d_angle}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_3d_angle() returns the cor...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_3d_angle}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.000000}<LSEP>[argument 4; litteral](real){0.000000}<LSEP>[argument 5; litteral](real){0.000000}<LSEP>[argument 6; litteral](real){1.000000}<LSEP>[argument 7; litteral](real){0.000000}<LSEP>[argument 8; litteral](real){0.000000}<LEND>[argument 1; litteral](real){90.000000} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){test_mat}<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){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){middle}<LSEP>[argument 1; litteral](str){user-defined}<LSEP>[argument 2; litteral](real){1.440000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 0; litteral](real){0.950000}<LEND>[argument 1; call](){}<LSEP>[](symbol){section_tunnel_by}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test_mat2}<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){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){middle}<LSEP>[argument 1; litteral](str){user-defined}<LSEP>[argument 2; litteral](real){1.440000}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 0; litteral](real){0.950000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){section_tunnel_by() fails when...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){section_tunnel_by}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){section_tunnel_by}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){section_tunnel_by}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){section_tunnel_by}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){section_tunnel_by}<LSEP>[](symbol){test_mat2}<LSEP>[argument 1; litteral](str){what}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){section_tunnel_by() produces c...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_mat}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){16.000000}<LEND>[argument 1; litteral](real){10.000000}<LSEP>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){standardize_tunnel() fails whe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_trimmed}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[assign](){<-}<LSEP>[](symbol){motive_rotated}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[argument 0; litteral](str){device02}<LSEP>[argument 1; litteral](str){device03}<LEND>[assign](){<-}<LSEP>[](symbol){motive_rotated2}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[argument 0; litteral](str){device03}<LSEP>[argument 1; litteral](str){device02}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){standardize_tunnel() handles a...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[](symbol){motive_trimmed}<LSEP>[argument 1; litteral](str){bob}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[](symbol){motive_trimmed}<LSEP>[argument 1; litteral](str){device02}<LSEP>[argument 2; litteral](str){bob} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){plot_viewr_trajectories() fail...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[argument 0; litteral](str){jobin}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](real){50.000000}<LSEP>[argument 1; litteral](str){autodetect}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){obj_name_trajs}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){file_sub_traj}<LEND>[assign](){<-}<LSEP>[](symbol){sqrt_traj_count}<LEND>[call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){wrangle for plots OK}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; litteral](real){6.000000}<LEND>[argument 1; litteral](str){pathviewr_motive_example_data....}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[argument 1; litteral](real){4.000000}<LEND>[assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){aspects of plotting loop are f...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](real){14.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](str){device05}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){traj_id}<LEND>[argument 1; litteral](real){20.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](real){7.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){105069.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){plot info (axes, titles, etc.)...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[argument 1; litteral](str){pathviewr_motive_example_data....}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_match}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](str){trajectory #5}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.660555}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){height}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){width}<LSEP>[argument 1; litteral](str){length}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){width}<LSEP>[argument 1; litteral](str){height}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){height}<LSEP>[argument 1; litteral](str){length}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){height}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){height}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){width}<LSEP>[argument 1; litteral](str){length}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){width}<LSEP>[argument 1; litteral](str){height}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){height}<LSEP>[argument 1; litteral](str){length}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){pdf}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){height}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){dev.off}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){plot_viewr_trajectories() fail...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){width}<LEND>[](symbol){jobin}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){height}<LEND>[](symbol){jobin}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){width}<LSEP>[argument 1; litteral](str){length}<LEND>[](symbol){jobin}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){width}<LSEP>[argument 1; litteral](str){height}<LEND>[](symbol){jobin}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){height}<LSEP>[argument 1; litteral](str){length}<LEND>[](symbol){jobin}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){height}<LSEP>[argument 1; litteral](str){width}<LEND>[](symbol){jobin} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){rotate_tunnel}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](str){autodetect}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){v}<LSEP>[argument 1; litteral](real){0.385500}<LSEP>[argument 2; litteral](real){90.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_v}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){motive_vis_angle}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){redefine_tunnel_center}<LSEP>[argument 4; litteral](str){middle}<LSEP>[argument 5; litteral](str){user-defined}<LSEP>[argument 6; litteral](real){1.440000}<LSEP>[argument 7; litteral](logical){FALSE}<LSEP>[argument 8; litteral](logical){TRUE}<LSEP>[argument 9; litteral](real){60.000000}<LSEP>[argument 10; litteral](logical){FALSE}<LSEP>[argument 11; litteral](logical){TRUE}<LSEP>[argument 12; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_test}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){box}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.100000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](str){latB}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_box}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_vis_angle}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_test}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_vis_angle() fails when non...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_vis_angle}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_vis_angle}<LSEP>[](symbol){flydra_full}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_vis_angle}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_vis_angle() adds variables...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){flydra_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){27.000000}<LSEP>[argument 1; litteral](real){32.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){vis_angle_pos_rad}<LSEP>[argument 1; litteral](str){vis_angle_neg_rad}<LSEP>[argument 2; litteral](str){vis_angle_end_rad}<LSEP>[argument 3; litteral](str){vis_angle_pos_deg}<LSEP>[argument 4; litteral](str){vis_angle_neg_deg}<LSEP>[argument 5; litteral](str){vis_angle_end_deg}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){43.000000}<LSEP>[argument 1; litteral](real){48.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){vis_angle_pos_rad}<LSEP>[argument 1; litteral](str){vis_angle_neg_rad}<LSEP>[argument 2; litteral](str){vis_angle_end_rad}<LSEP>[argument 3; litteral](str){vis_angle_pos_deg}<LSEP>[argument 4; litteral](str){vis_angle_neg_deg}<LSEP>[argument 5; litteral](str){vis_angle_end_deg}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){flydra_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){381.000000}<LSEP>[argument 1; litteral](real){32.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){motive_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){449.000000}<LSEP>[argument 1; litteral](real){48.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_vis_angle() makes correct ...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_vis_angle}<LSEP>[](symbol){vis_angle_pos_deg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){5.798571}<LSEP>[argument 1; litteral](real){5.745982}<LSEP>[argument 2; litteral](real){5.707942}<LSEP>[argument 3; litteral](real){5.670134}<LSEP>[argument 4; litteral](real){5.626141}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_vis_angle}<LSEP>[](symbol){vis_angle_neg_deg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){5.652901}<LSEP>[argument 1; litteral](real){5.703794}<LSEP>[argument 2; litteral](real){5.741779}<LSEP>[argument 3; litteral](real){5.780551}<LSEP>[argument 4; litteral](real){5.827000}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_vis_angle}<LSEP>[](symbol){vis_angle_end_deg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.366643}<LSEP>[argument 1; litteral](real){2.384234}<LSEP>[argument 2; litteral](real){2.402006}<LSEP>[argument 3; litteral](real){2.419914}<LSEP>[argument 4; litteral](real){2.438129}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 3; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_vis_angle}<LSEP>[](symbol){vis_angle_pos_deg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){8.774155}<LSEP>[argument 1; litteral](real){8.613625}<LSEP>[argument 2; litteral](real){8.419272}<LSEP>[argument 3; litteral](real){8.162377}<LSEP>[argument 4; litteral](real){8.000238}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 4; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_vis_angle}<LSEP>[](symbol){vis_angle_neg_deg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){17.049040}<LSEP>[argument 1; litteral](real){16.987020}<LSEP>[argument 2; litteral](real){17.037910}<LSEP>[argument 3; litteral](real){17.596000}<LSEP>[argument 4; litteral](real){17.977080}<LEND>[argument 2; litteral](real){0.000010}<LEND>[statement 5; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_vis_angle}<LSEP>[](symbol){vis_angle_end_deg}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.477492}<LSEP>[argument 1; litteral](real){3.535738}<LSEP>[argument 2; litteral](real){3.596469}<LSEP>[argument 3; litteral](real){3.655746}<LSEP>[argument 4; litteral](real){3.716369}<LEND>[argument 2; litteral](real){0.000010} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_3d_cross_prod() fails when...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_3d_cross_prod}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_3d_cross_prod}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[assign](){<-}<LSEP>[](symbol){v1}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[assign](){<-}<LSEP>[](symbol){v2}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){get_3d_cross_prod() returns th...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){get_3d_cross_prod}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rad_2_deg() fails when non-num...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rad_2_deg}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){rad_2_deg}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){rad_2_deg() returns the correc...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){rad_2_deg}<LSEP>[](symbol){pi}<LEND>[argument 1; litteral](real){180.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){rad_2_deg}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){57.295780}<LSEP>[argument 2; litteral](real){0.001000}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){deg_2_rad() fails when non-num...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){deg_2_rad}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){deg_2_rad}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){deg_2_rad() returns the correc...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){deg_2_rad}<LSEP>[argument 0; litteral](real){180.000000}<LEND>[argument 1; litteral](real){3.141593}<LSEP>[argument 2; litteral](real){0.001000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_equal}<LEND>[argument 0; call](){}<LSEP>[](symbol){deg_2_rad}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.017453}<LSEP>[argument 2; litteral](real){0.001000} |
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){relabel_viewr_axes() fails whe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[argument 0; litteral](str){steve}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){a}<LSEP>[argument 1; litteral](str){b}<LSEP>[argument 2; litteral](str){c}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[call](){}<LSEP>[](symbol){test_that}<LSEP>[argument 0; litteral](str){relabel_viewr_axes() fails whe...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){expect_error}<LEND>[argument 0; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](real){5.000000} |
[](){expression}<LSEP>[litteral](str){_PACKAGE} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){import_batch}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file_path_list}<LSEP>[](symbol){import_method}<LSEP>[](symbol){file_id}<LSEP>[](symbol){subject_name}<LSEP>[](symbol){frame_rate}<LSEP>[](symbol){simplify_marker_naming}<LSEP>[](symbol){import_messaging}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){imp_meth}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){import_method}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_list}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){imp_meth}<LSEP>[argument 1; litteral](str){flydra}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file_path_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file_path_list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){subject_name}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](real){100.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){import_messaging}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ imported.}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){imp_meth}<LSEP>[argument 1; litteral](str){motive}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file_path_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file_path_list}<LSEP>[](symbol){i}<LEND>[](symbol){simplify_marker_naming}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){import_messaging}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ imported.}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_list}<LEND>[assign](){<-}<LSEP>[](symbol){clean_viewr_batch}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){file_announce}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){obj_list}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){obj_list must be a list of fil...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cleaned_list}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cleaned_list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_announce}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ has been cleaned successfully.}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){cleaned_list}<LEND>[assign](){<-}<LSEP>[](symbol){import_and_clean_batch}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file_path_list}<LSEP>[](symbol){import_method}<LSEP>[](symbol){file_id}<LSEP>[](symbol){subject_name}<LSEP>[](symbol){frame_rate}<LSEP>[](symbol){simplify_marker_naming}<LSEP>[](symbol){import_messaging}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){imp_meth}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){import_method}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_list}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){imp_meth}<LSEP>[argument 1; litteral](str){flydra}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file_path_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file_path_list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){subject_name}<LSEP>[](symbol){i}<LEND>[](symbol){frame_rate}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){import_messaging}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ imported.}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){imp_meth}<LSEP>[argument 1; litteral](str){motive}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file_path_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file_path_list}<LSEP>[](symbol){i}<LEND>[](symbol){simplify_marker_naming}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){import_messaging}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ imported.}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){obj_cleaned}<LEND>[call](){}<LSEP>[](symbol){clean_viewr_batch}<LSEP>[](symbol){obj_list}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_cleaned}<LEND>[assign](){<-}<LSEP>[](symbol){bind_viewr_objects}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){obj_list}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){obj_list must be a list of vie...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){bound_obj}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_rows}<LEND>[](symbol){obj_list}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){bound_obj}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){viewr}<LSEP>[argument 1; litteral](str){bound_viewr_objects}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){bound_obj} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){get_velocity}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){time_col}<LSEP>[](symbol){length_col}<LSEP>[](symbol){width_col}<LSEP>[](symbol){height_col}<LSEP>[](symbol){add_to_viewr}<LSEP>[](symbol){velocity_min}<LSEP>[](symbol){velocity_max}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){time_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){time_col not found.\nPlease ch...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){length_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){length_col not found.\nPlease ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){width_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){width_col not found.\nPlease c...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){height_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){height_col not found.\nPlease ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){obj_name}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){time_diffs}<LEND>[call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){time_col}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){length_inst}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){length_col}<LEND>[](symbol){time_diffs}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){width_inst}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){width_col}<LEND>[](symbol){time_diffs}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){height_inst}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[](symbol){height_col}<LEND>[](symbol){time_diffs}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vel}<LEND>[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){^}<LSEP>[](symbol){length_inst}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){width_inst}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){height_inst}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){vel}<LSEP>[](symbol){length_inst}<LSEP>[](symbol){width_inst}<LSEP>[](symbol){height_inst}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){add_to_viewr}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){obj_name}<LSEP>[](symbol){res}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){velocity_computed}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){res}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){velocity_min}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_new}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){velocity}<LSEP>[](symbol){velocity_min}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){velocity_min}<LEND>[](symbol){velocity_min}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_new}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){velocity_min}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){velocity_min is character.\n ...}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){velocity_max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_new}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){velocity}<LSEP>[](symbol){velocity_max}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){velocity_max}<LEND>[](symbol){velocity_max}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_new}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){velocity_max}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){velocity_max is character.\n ...}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){get_dist_point_line}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){point}<LSEP>[](symbol){line_coord1}<LSEP>[](symbol){line_coord2}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){point}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){line_coord1}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All coordinates must be either...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){line_coord2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All coordinates must be either...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){v1}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){line_coord1}<LSEP>[](symbol){line_coord2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){v2}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){point}<LSEP>[](symbol){line_coord1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v1}<LSEP>[](symbol){v1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){point}<LEND>[argument 1; litteral](real){3.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){length}<LSEP>[](symbol){line_coord1}<LEND>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All coordinates must be either...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){line_coord2}<LEND>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All coordinates must be either...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){v1}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){line_coord1}<LSEP>[](symbol){line_coord2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){v2}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){point}<LSEP>[](symbol){line_coord1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){v3}<LEND>[call](){}<LSEP>[](symbol){get_3d_cross_prod}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){area}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v3}<LSEP>[](symbol){v3}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){area}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v1}<LSEP>[](symbol){v1}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dist}<LEND>[assign](){<-}<LSEP>[](symbol){get_3d_cross_prod}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){v3}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v3}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v2}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v1}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v3}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v1}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v2}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v3}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){v3}<LEND>[assign](){<-}<LSEP>[](symbol){rad_2_deg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){rad}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rad}<LSEP>[argument 1; litteral](real){180.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){pi}<LEND>[assign](){<-}<LSEP>[](symbol){deg_2_rad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){deg}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){deg}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[argument 0; litteral](real){180.000000}<LEND>[assign](){<-}<LSEP>[](symbol){get_2d_angle}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){y1}<LSEP>[](symbol){x2}<LSEP>[](symbol){y2}<LSEP>[](symbol){x3}<LSEP>[](symbol){y3}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i1}<LSEP>[](symbol){x1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){i2}<LSEP>[](symbol){x2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i3}<LSEP>[](symbol){x3}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){j1}<LSEP>[](symbol){y1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){j2}<LSEP>[](symbol){y2}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){j3}<LSEP>[](symbol){y3}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i1}<LSEP>[](symbol){j1}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i2}<LSEP>[](symbol){j2}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i3}<LSEP>[](symbol){j3}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i2}<LSEP>[](symbol){j2}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){acos}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){b}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){180.000000}<LSEP>[](symbol){pi}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){get_3d_angle}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){y1}<LSEP>[](symbol){z1}<LSEP>[](symbol){x2}<LSEP>[](symbol){y2}<LSEP>[](symbol){z2}<LSEP>[](symbol){x3}<LSEP>[](symbol){y3}<LSEP>[](symbol){z3}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i1}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x2}<LSEP>[](symbol){x1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x2}<LSEP>[](symbol){x3}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){j1}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y2}<LSEP>[](symbol){y1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){j2}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y2}<LSEP>[](symbol){y3}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k1}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){z2}<LSEP>[](symbol){z1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){k2}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){z2}<LSEP>[](symbol){z3}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){dotprod}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){i1}<LSEP>[](symbol){i2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){j1}<LSEP>[](symbol){j2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k1}<LSEP>[](symbol){k2}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){len1}<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){i1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){j1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){len2}<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){i2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){j2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){acos}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){dotprod}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){len1}<LSEP>[](symbol){len2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){180.000000}<LSEP>[](symbol){pi}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){find_curve_elbow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data_frame}<LSEP>[](symbol){export_type}<LSEP>[](symbol){plot_curve}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){data_frame}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input data has more than t...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data_matrix}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){data_frame}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){first_col}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_matrix}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){second_col}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_matrix}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){len}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){data_matrix}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){first_point}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){first_col}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){second_col}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){end_point}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){first_col}<LSEP>[](symbol){len}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){second_col}<LSEP>[](symbol){len}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mfg_dists}<LSEP>[litteral](NULL){NULL}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){len}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mfg_dists}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){get_dist_point_line}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){first_col}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){second_col}<LSEP>[](symbol){k}<LEND>[](symbol){first_point}<LSEP>[](symbol){end_point}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){elbow}<LEND>[call](){}<LSEP>[](symbol){which.max}<LSEP>[](symbol){mfg_dists}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot_curve}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){data_matrix}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){abline}<LEND>[](symbol){elbow}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){export_type}<LSEP>[argument 1; litteral](str){row_num}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){elbow}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_matrix}<LSEP>[](symbol){elbow}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){calc_min_dist_v}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){simplify_output}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){treatments_added}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please run insert_treatments()...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){obj_simplify}<LSEP>[](symbol){obj_name}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_vertex}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){perch_2_vertex}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_screen}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_vertex}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){horizontal_2_screen_pos}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_screen}<LEND>[argument 1; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_screen}<LEND>[argument 1; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){horizontal_2_screen_neg}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_screen}<LEND>[argument 1; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_screen}<LEND>[argument 1; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_pos}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){horizontal_2_screen_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_neg}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){horizontal_2_screen_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){bound_pos}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_vertex}<LEND>[argument 1; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){bound_neg}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_vertex}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){tan}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertex_angle}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_pos}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){bound_neg}<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){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_vertex}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_pos}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_neg}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){bound_pos}<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){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vertical_2_vertex}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_neg}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_end}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){end_length_sign}<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){obj_name}<LSEP>[](symbol){tunnel_length}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){tunnel_length}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_simplify}<LSEP>[](symbol){min_dist_pos}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_pos}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_simplify}<LSEP>[](symbol){min_dist_neg}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_neg}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_simplify}<LSEP>[](symbol){min_dist_end}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_end}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){simplify_output}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_simplify}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){min_dist_calculated}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_simplify}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){min_dist_calculated}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){calc_min_dist_box}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){treatments_added}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please run insert_treatments()...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_pos}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){tunnel_width}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_neg}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){tunnel_width}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_end}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){end_length_sign}<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){obj_name}<LSEP>[](symbol){tunnel_length}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){tunnel_length}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){min_dist_calculated}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){get_vis_angle}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){min_dist_calculated}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please run calc_min_dist_v() o...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_pos_rad}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){atan}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){stim_param_lat_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_pos}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_neg_rad}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){atan}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){stim_param_lat_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_neg}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_end_rad}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){end_length_sign}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){atan}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){stim_param_end_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_end}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){atan}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){stim_param_end_neg}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){min_dist_end}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_pos_deg}<LEND>[call](){}<LSEP>[](symbol){rad_2_deg}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_pos_rad}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_neg_deg}<LEND>[call](){}<LSEP>[](symbol){rad_2_deg}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_neg_rad}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_end_deg}<LEND>[call](){}<LSEP>[](symbol){rad_2_deg}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_end_rad}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){vis_angles_calculated}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){get_sf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){vis_angles_calculated}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please run get_vis_angle() pri...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){sf_pos}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_pos_deg}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){sf_neg}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_neg_deg}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){sf_end}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vis_angle_end_deg}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){sf_calculated}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){clean_viewr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[](symbol){standardization_option}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){select_x_percent}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[](symbol){separate_trajectories}<LSEP>[](symbol){get_full_trajectories}<LSEP>[](symbol){fill_traj_gaps}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){relabel_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tunnel_length}<LSEP>[argument 1; litteral](str){tunnel_width}<LSEP>[argument 2; litteral](str){tunnel_height}<LSEP>[argument 3; litteral](str){real}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gather_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NA_drop}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){trim_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lengths_min}<LSEP>[argument 1; litteral](str){lengths_max}<LSEP>[argument 2; litteral](str){widths_min}<LSEP>[argument 3; litteral](str){widths_max}<LSEP>[argument 4; litteral](str){heights_min}<LSEP>[argument 5; litteral](str){heights_max}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){rotate_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){all_heights_min}<LSEP>[argument 1; litteral](str){all_heights_max}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){standardize_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){landmark_one}<LSEP>[argument 1; litteral](str){landmark_two}<LSEP>[argument 2; litteral](str){perch1_len_min}<LSEP>[argument 3; litteral](str){perch1_len_max}<LSEP>[argument 4; litteral](str){perch2_len_min}<LSEP>[argument 5; litteral](str){perch2_len_max}<LSEP>[argument 6; litteral](str){perch1_wid_min}<LSEP>[argument 7; litteral](str){perch1_wid_max}<LSEP>[argument 8; litteral](str){perch2_wid_min}<LSEP>[argument 9; litteral](str){perch2_wid_max}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){center_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){axes}<LSEP>[argument 1; litteral](str){length_method}<LSEP>[argument 2; litteral](str){width_method}<LSEP>[argument 3; litteral](str){height_method}<LSEP>[argument 4; litteral](str){length_zero}<LSEP>[argument 5; litteral](str){width_zero}<LSEP>[argument 6; litteral](str){height_zero}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){velocity_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){time_col}<LSEP>[argument 1; litteral](str){length_col}<LSEP>[argument 2; litteral](str){width_col}<LSEP>[argument 3; litteral](str){height_col}<LSEP>[argument 4; litteral](str){add_to_viewr}<LSEP>[argument 5; litteral](str){velocity_min}<LSEP>[argument 6; litteral](str){velocity_max}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){select_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){desired_percent}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){rename_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){target_column}<LSEP>[argument 1; litteral](str){pattern}<LSEP>[argument 2; litteral](str){replacement}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){separate_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){max_frame_gap}<LSEP>[argument 1; litteral](str){frame_rate_proportion}<LSEP>[argument 2; litteral](str){frame_gap_messaging}<LSEP>[argument 3; litteral](str){frame_gap_plotting}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){get_full_traj_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){span}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){fill_traj_gaps_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){loess_degree}<LSEP>[argument 1; litteral](str){loess_criterion}<LSEP>[argument 2; litteral](str){loess_family}<LSEP>[argument 3; litteral](str){loess_user_span}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){valid_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){relabel_args}<LSEP>[](symbol){trim_args}<LSEP>[](symbol){rotate_args}<LSEP>[](symbol){standardize_args}<LSEP>[](symbol){center_args}<LSEP>[](symbol){velocity_args}<LSEP>[](symbol){select_args}<LSEP>[](symbol){rename_args}<LSEP>[](symbol){separate_args}<LSEP>[](symbol){get_full_traj_args}<LSEP>[](symbol){fill_traj_gaps_args}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){arg_names}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){unrecog_params}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){valid_args}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){unrecog_params}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unrecognized arguments: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){unrecog_params}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){\nAny arguments that are unrec...}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){valid_stands}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){rotate_tunnel}<LSEP>[argument 1; litteral](str){standardize_tunnel}<LSEP>[argument 2; litteral](str){redefine_tunnel_center}<LSEP>[argument 3; litteral](str){none}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){standardization_option}<LSEP>[](symbol){valid_stands}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){standardization_option must be...}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj_name}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){relabel_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for rela...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){gather_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for gath...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){trim_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for trim...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){rotate_tunnel}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){rotate_tunnel}<LSEP>[](symbol){...}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){standardize_tunnel}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[](symbol){...}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){redefine_tunnel_center}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){...}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){none}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){get_velocity}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){velocity_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for get_...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){select_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for sele...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename_viewr_characters}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){target_column}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){pattern}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){replacement}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){rename_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for rena...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){separate_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for sepa...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){get_full_traj_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for get_...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 31; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){fill_traj_gaps}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){fill_traj_gaps}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_degree}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_criterion}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_family}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_user_span}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){fill_traj_gaps_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for fill...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){optional_param_names}<LSEP>[](symbol){valid_args}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){unused_params}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){params}<LEND>[](symbol){optional_param_names}<LEND>[statement 35; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){unused_params}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unused parameters: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){unused_params}<LSEP>[argument 1; litteral](str){, }<LEND>[statement 36; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj}<LEND>[assign](){<-}<LSEP>[](symbol){import_and_clean_viewr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file_name}<LSEP>[](symbol){file_id}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[](symbol){standardization_option}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){select_x_percent}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[](symbol){separate_trajectories}<LSEP>[](symbol){get_full_trajectories}<LSEP>[](symbol){fill_traj_gaps}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){file_name}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){A file_name is required}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){file_name}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){File }<LSEP>[](symbol){file_name}<LSEP>[argument 2; litteral](str){ not found!}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){read_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){file_name}<LSEP>[argument 1; litteral](str){file_id}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){relabel_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tunnel_length}<LSEP>[argument 1; litteral](str){tunnel_width}<LSEP>[argument 2; litteral](str){tunnel_height}<LSEP>[argument 3; litteral](str){real}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gather_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NA_drop}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){trim_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lengths_min}<LSEP>[argument 1; litteral](str){lengths_max}<LSEP>[argument 2; litteral](str){widths_min}<LSEP>[argument 3; litteral](str){widths_max}<LSEP>[argument 4; litteral](str){heights_min}<LSEP>[argument 5; litteral](str){heights_max}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){rotate_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){all_heights_min}<LSEP>[argument 1; litteral](str){all_heights_max}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){standardize_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){landmark_one}<LSEP>[argument 1; litteral](str){landmark_two}<LSEP>[argument 2; litteral](str){perch1_len_min}<LSEP>[argument 3; litteral](str){perch1_len_max}<LSEP>[argument 4; litteral](str){perch2_len_min}<LSEP>[argument 5; litteral](str){perch2_len_max}<LSEP>[argument 6; litteral](str){perch1_wid_min}<LSEP>[argument 7; litteral](str){perch1_wid_max}<LSEP>[argument 8; litteral](str){perch2_wid_min}<LSEP>[argument 9; litteral](str){perch2_wid_max}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){center_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){axes}<LSEP>[argument 1; litteral](str){length_method}<LSEP>[argument 2; litteral](str){width_method}<LSEP>[argument 3; litteral](str){height_method}<LSEP>[argument 4; litteral](str){length_zero}<LSEP>[argument 5; litteral](str){width_zero}<LSEP>[argument 6; litteral](str){height_zero}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){velocity_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){time_col}<LSEP>[argument 1; litteral](str){length_col}<LSEP>[argument 2; litteral](str){width_col}<LSEP>[argument 3; litteral](str){height_col}<LSEP>[argument 4; litteral](str){add_to_viewr}<LSEP>[argument 5; litteral](str){velocity_min}<LSEP>[argument 6; litteral](str){velocity_max}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){select_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){desired_percent}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){rename_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){target_column}<LSEP>[argument 1; litteral](str){pattern}<LSEP>[argument 2; litteral](str){replacement}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){separate_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){max_frame_gap}<LSEP>[argument 1; litteral](str){frame_rate_proportion}<LSEP>[argument 2; litteral](str){frame_gap_messaging}<LSEP>[argument 3; litteral](str){frame_gap_plotting}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){get_full_traj_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){span}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){fill_traj_gaps_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){loess_degree}<LSEP>[argument 1; litteral](str){loess_criterion}<LSEP>[argument 2; litteral](str){loess_family}<LSEP>[argument 3; litteral](str){loess_user_span}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){valid_args}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){read_args}<LSEP>[](symbol){relabel_args}<LSEP>[](symbol){trim_args}<LSEP>[](symbol){rotate_args}<LSEP>[](symbol){standardize_args}<LSEP>[](symbol){center_args}<LSEP>[](symbol){velocity_args}<LSEP>[](symbol){select_args}<LSEP>[](symbol){rename_args}<LSEP>[](symbol){separate_args}<LSEP>[](symbol){get_full_traj_args}<LSEP>[](symbol){fill_traj_gaps_args}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){arg_names}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){unrecog_params}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){valid_args}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){unrecog_params}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unrecognized arguments: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){unrecog_params}<LSEP>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){\nAny arguments that are unrec...}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){valid_stands}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){rotate_tunnel}<LSEP>[argument 1; litteral](str){standardize_tunnel}<LSEP>[argument 2; litteral](str){redefine_tunnel_center}<LSEP>[argument 3; litteral](str){none}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){standardization_option}<LSEP>[](symbol){valid_stands}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){standardization_option must be...}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){file_name}<LEND>[argument 1; call](){}<LSEP>[](symbol){read_motive_csv}<LSEP>[](symbol){...}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){relabel_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for rela...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){gather_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for gath...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){trim_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for trim...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){rotate_tunnel}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){rotate_tunnel}<LSEP>[](symbol){...}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){standardize_tunnel}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){standardize_tunnel}<LSEP>[](symbol){...}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){redefine_tunnel_center}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[](symbol){...}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){standardization_option}<LSEP>[argument 1; litteral](str){none}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){get_velocity}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){velocity_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for get_...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){select_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for sele...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 31; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rename_viewr_characters}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){rename_viewr_characters}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){target_column}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){pattern}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){replacement}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){rename_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for rena...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){separate_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for sepa...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 33; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){get_full_traj_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for get_...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 34; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){fill_traj_gaps}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){fill_traj_gaps}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_degree}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_criterion}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_family}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){loess_user_span}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){arg_names}<LSEP>[](symbol){fill_traj_gaps_args}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one argument for fill...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj}<LSEP>[](symbol){obj}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){optional_param_names}<LSEP>[](symbol){valid_args}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){unused_params}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){params}<LEND>[](symbol){optional_param_names}<LEND>[statement 38; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){unused_params}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unused parameters: }<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){unused_params}<LSEP>[argument 1; litteral](str){, }<LEND>[statement 39; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj} |
[](){expression}<LSEP>[litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){visualize_frame_gap_choice}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){loops}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mfg}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){loops}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cts}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){loops}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){trajectory_count}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){double}<LSEP>[](symbol){loops}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){frame_gap_allowed}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){double}<LSEP>[](symbol){loops}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){1.000000}<LEND>[statement 6; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){loops}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mfg}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){quick_separate_trajectories}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cts}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){count}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mfg}<LSEP>[](symbol){i}<LEND>[](symbol){traj_id}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){trajectory_count}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cts}<LSEP>[](symbol){i}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){frame_gap_allowed}<LSEP>[](symbol){i}<LEND>[](symbol){i}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mfg_tib}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){frame_gap_allowed}<LSEP>[](symbol){trajectory_count}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){max_fg}<LEND>[call](){}<LSEP>[](symbol){find_curve_elbow}<LSEP>[](symbol){mfg_tib}<LSEP>[argument 1; litteral](str){row_num}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){obj_name_arg}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){obj_name}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mfg_tib}<LSEP>[](symbol){file_id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){obj_name_arg}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){mfg_plot}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mfg_tib}<LSEP>[](symbol){frame_gap_allowed}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mfg_tib}<LSEP>[](symbol){trajectory_count}<LEND>[statement 12; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){abline}<LEND>[](symbol){max_fg}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mfg_tib}<LSEP>[](symbol){mfg_plot}<LEND>[assign](){<-}<LSEP>[](symbol){plot_viewr_trajectories}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){plot_axes}<LSEP>[](symbol){multi_plot}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_name_trajs}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sqrt_traj_count}<LEND>[call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 3; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){length}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){width}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){multi_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 2; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; 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>[statement 3; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sqrt_traj_count}<LSEP>[](symbol){sqrt_traj_count}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){height}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){multi_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 2; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; 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>[statement 3; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sqrt_traj_count}<LSEP>[](symbol){sqrt_traj_count}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_height}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){width}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){length}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){multi_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 2; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; 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>[statement 3; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sqrt_traj_count}<LSEP>[](symbol){sqrt_traj_count}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_length}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){height}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){multi_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 2; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; 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>[statement 3; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sqrt_traj_count}<LSEP>[](symbol){sqrt_traj_count}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_height}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){height}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){length}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){multi_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; 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>[statement 1; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sqrt_traj_count}<LSEP>[](symbol){sqrt_traj_count}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_length}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){plot_axes}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){width}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){multi_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oldpar}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[statement 2; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; 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>[statement 3; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sqrt_traj_count}<LSEP>[](symbol){sqrt_traj_count}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_name_trajs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name_trajs}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){trajectory #}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 7; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){oldpar}<LEND>[assign](){<-}<LSEP>[](symbol){plot_by_subject}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){col_by_treat}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){height_limits}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){width_limits}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){col_by_treat}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){top_view}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[](symbol){width_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){identity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[](symbol){width_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){top_all_plots}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){top_view}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){paths}<LSEP>[](symbol){hist}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[argument 0; litteral](str){plot_type}<LSEP>[argument 1; litteral](str){allplots}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p1}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cowA}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[](symbol){p1}<LSEP>[argument 1; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){cowB}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){top_all_plots}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){top_all_plots}<LSEP>[](symbol){subject}<LEND>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){1.100000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){birdseye_view}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[](symbol){cowA}<LSEP>[](symbol){cowB}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){elev_view}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[](symbol){height_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){identity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[](symbol){height_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){elev_all_plots}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elev_view}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){paths}<LSEP>[](symbol){hist}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[argument 0; litteral](str){plot_type}<LSEP>[argument 1; litteral](str){allplots}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){cowC}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){elev_all_plots}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){elev_all_plots}<LSEP>[](symbol){subject}<LEND>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){1.100000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){side_view}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[](symbol){cowA}<LSEP>[](symbol){cowC}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){birdseye_view}<LSEP>[](symbol){side_view}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){col_by_treat}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){top_view}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_width}<LSEP>[](symbol){treatment}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[](symbol){width_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_width}<LSEP>[](symbol){treatment}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){identity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[](symbol){width_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){top_all_plots}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){top_view}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){paths}<LSEP>[](symbol){hist}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[argument 0; litteral](str){plot_type}<LSEP>[argument 1; litteral](str){allplots}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p1}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cowA}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[](symbol){p1}<LSEP>[argument 1; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){cowB}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){top_all_plots}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){top_all_plots}<LSEP>[](symbol){subject}<LEND>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){1.100000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){birdseye_view}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[](symbol){cowA}<LSEP>[](symbol){cowB}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){elev_view}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_height}<LSEP>[](symbol){treatment}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[](symbol){height_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map}<LEND>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_height}<LSEP>[](symbol){treatment}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_density}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](str){identity}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[](symbol){height_limits}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){dotted}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){elev_all_plots}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){elev_view}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){paths}<LSEP>[](symbol){hist}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[argument 0; litteral](str){plot_type}<LSEP>[argument 1; litteral](str){allplots}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){cowC}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){elev_all_plots}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){elev_all_plots}<LSEP>[](symbol){subject}<LEND>[argument 2; litteral](real){8.000000}<LSEP>[argument 3; litteral](real){1.100000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){side_view}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){cowplot}<LSEP>[](symbol){plot_grid}<LEND>[](symbol){cowA}<LSEP>[](symbol){cowC}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.050000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){birdseye_view}<LSEP>[](symbol){side_view} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){get_header_viewr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){header}<LEND>[assign](){<-}<LSEP>[](symbol){relabel_viewr_axes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){tunnel_length}<LSEP>[](symbol){tunnel_width}<LSEP>[](symbol){tunnel_height}<LSEP>[](symbol){real}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){tunnel_length}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tunnel_length should be a char...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){tunnel_width}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tunnel_width should be a chara...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){tunnel_height}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tunnel_height should be a char...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){namez}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){names}<LEND>[](symbol){obj_name}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){namez}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[](symbol){real}<LSEP>[argument 1; litteral](str){_real}<LSEP>[](symbol){namez}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){namez}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[](symbol){tunnel_width}<LSEP>[argument 1; litteral](str){_width}<LSEP>[](symbol){namez}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){namez}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[](symbol){tunnel_length}<LSEP>[argument 1; litteral](str){_length}<LSEP>[](symbol){namez}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){namez}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[](symbol){tunnel_height}<LSEP>[argument 1; litteral](str){_height}<LSEP>[](symbol){namez}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj_name}<LEND>[](symbol){namez}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){renamed_tunnel}<LEND>[statement 11; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){gather_tunnel_data}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){NA_drop}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_length column(s) are ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_width column(s) are m...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_height column(s) are ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){bodiez}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){obj_name}<LEND>[](symbol){subject_names_simple}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){bodiez}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No rigid bodies or markers det...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){subbiez}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){obj_name}<LEND>[](symbol){subject_names_simple}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){gathered_data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){frame}<LEND>[](symbol){bodiez}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){time_sec}<LEND>[](symbol){bodiez}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){rb}<LSEP>[litteral](NULL){NULL}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){bodiez}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rb}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){rb}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){subbiez}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){obj_name}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){subject}<LEND>[](symbol){rb}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tmp_len}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_len}<LSEP>[](symbol){value}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tmp_wid}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_wid}<LSEP>[](symbol){value}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){tmp_hei}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_hei}<LSEP>[](symbol){value}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){tmp_rotl}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){rotation_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){rotation_length}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_rotl}<LSEP>[](symbol){value}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){tmp_rotw}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){rotation_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){rotation_width}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_rotw}<LSEP>[](symbol){value}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){tmp_roth}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){rotation_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){rotation_height}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_roth}<LSEP>[](symbol){value}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){tmp_rotw}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){rotation_real}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){rotation_real}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_rotw}<LSEP>[](symbol){value}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){tmp_mark}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){mean_marker_error}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){gather}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){mean_marker_error}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp_mark}<LSEP>[](symbol){value}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){NA_drop}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gathered_data}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){gathered_data}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){drop_na}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gathered_data}<LSEP>[](symbol){gathered_data}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){gathered_data}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[](symbol){gathered_data}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){attributes_list}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){file_id}<LSEP>[argument 1; litteral](str){file_mtime}<LSEP>[argument 2; litteral](str){frame_rate}<LSEP>[argument 3; litteral](str){header}<LSEP>[argument 4; litteral](str){Motive_IDs}<LSEP>[argument 5; litteral](str){subject_names_full}<LSEP>[argument 6; litteral](str){subject_names_simple}<LSEP>[argument 7; litteral](str){data_names}<LSEP>[argument 8; litteral](str){data_types_full}<LSEP>[argument 9; litteral](str){data_types_simple}<LSEP>[argument 10; litteral](str){d1}<LSEP>[argument 11; litteral](str){d2}<LSEP>[argument 12; litteral](str){import_method}<LEND>[statement 30; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){attributes_list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){gathered_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){attributes_list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){attributes_list}<LSEP>[](symbol){i}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){gathered_data}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){gathered_tunnel}<LEND>[statement 32; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){gathered_data}<LEND>[assign](){<-}<LSEP>[](symbol){rescale_tunnel_data}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){original_scale}<LSEP>[](symbol){desired_scale}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){original_scale}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){original_scale should be numeric}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){desired_scale}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){desired_scale should be a numeric}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){scale_ratio}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){desired_scale}<LSEP>[](symbol){original_scale}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_name}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){position_length}<LSEP>[](symbol){scale_ratio}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){position_width}<LSEP>[](symbol){scale_ratio}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){position_height}<LSEP>[](symbol){scale_ratio}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){mean_marker_error}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj_name}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_new}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){mean_marker_error}<LSEP>[](symbol){scale_ratio}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){data_rescaled}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){rename_viewr_characters}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){target_column}<LSEP>[](symbol){pattern}<LSEP>[](symbol){replacement}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){target_column}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj_name}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){target_column was not found}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){across}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyselect}<LSEP>[](symbol){all_of}<LEND>[](symbol){target_column}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_replace}<LEND>[](symbol){pattern}<LSEP>[](symbol){replacement}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){target_column}<LSEP>[argument 1; litteral](str){subject}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){snf}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){subject_names_full}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sns}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){subject_names_simple}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){snf_renamed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_replace}<LEND>[](symbol){snf}<LSEP>[](symbol){pattern}<LSEP>[](symbol){replacement}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sns_renamed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_replace}<LEND>[](symbol){sns}<LSEP>[](symbol){pattern}<LSEP>[](symbol){replacement}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){subject_names_full}<LEND>[](symbol){snf_renamed}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){subject_names_simple}<LEND>[](symbol){sns_renamed}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){renamed_characters}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){trim_tunnel_outliers}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){lengths_min}<LSEP>[](symbol){lengths_max}<LSEP>[](symbol){widths_min}<LSEP>[](symbol){widths_max}<LSEP>[](symbol){heights_min}<LSEP>[](symbol){heights_max}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_length column(s) are ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_width column(s) are m...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_height column(s) are ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){filt_heights}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){position_height}<LSEP>[](symbol){heights_max}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){position_height}<LSEP>[](symbol){heights_min}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){filt_lengths}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){filt_heights}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){position_length}<LSEP>[](symbol){lengths_max}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){position_length}<LSEP>[](symbol){lengths_min}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){filt_widths}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){filt_lengths}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){position_width}<LSEP>[](symbol){widths_max}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){position_width}<LSEP>[](symbol){widths_min}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){file_id}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){file_id}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){file_mtime}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){file_mtime}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){header}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){header}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){rigid_bodies}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){rigid_bodies}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){data_names}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){data_names}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){d1}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){d1}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){d2}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){d2}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){import_method}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){import_method}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){filt_widths}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){artifacts_removed}<LEND>[statement 17; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){filt_widths}<LEND>[assign](){<-}<LSEP>[](symbol){rotate_tunnel}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){all_heights_min}<LSEP>[](symbol){all_heights_max}<LSEP>[](symbol){perch1_len_min}<LSEP>[](symbol){perch1_len_max}<LSEP>[](symbol){perch2_len_min}<LSEP>[](symbol){perch2_len_max}<LSEP>[](symbol){perch1_wid_min}<LSEP>[](symbol){perch1_wid_max}<LSEP>[](symbol){perch2_wid_min}<LSEP>[](symbol){perch2_wid_max}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_length column(s) are ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_width column(s) are m...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_height column(s) are ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){perch1_len}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){perch1_len_min}<LSEP>[](symbol){perch1_len_max}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){perch1_wid}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){perch1_wid_min}<LSEP>[](symbol){perch1_wid_max}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){perch1_hei}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){all_heights_min}<LSEP>[](symbol){all_heights_max}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){perch1_midpoint}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){perch1_len}<LSEP>[](symbol){perch1_wid}<LSEP>[](symbol){perch1_hei}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){perch2_len}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){perch2_len_min}<LSEP>[](symbol){perch2_len_max}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){perch2_wid}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){perch2_wid_min}<LSEP>[](symbol){perch2_wid_max}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){perch2_hei}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LSEP>[](symbol){all_heights_min}<LSEP>[](symbol){all_heights_max}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){perch2_midpoint}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){perch2_len}<LSEP>[](symbol){perch2_wid}<LSEP>[](symbol){perch2_hei}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){perch1_len}<LSEP>[](symbol){perch2_len}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){perch1_wid}<LSEP>[](symbol){perch2_wid}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){perch1_hei}<LSEP>[](symbol){perch2_hei}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tunnel_arbitrary}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){tunnel_angle}<LEND>[call](){}<LSEP>[](symbol){get_2d_angle}<LSEP>[](symbol){perch1_len}<LSEP>[](symbol){perch1_wid}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_arbitrary}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_arbitrary}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){alpharad}<LEND>[call](){}<LSEP>[](symbol){deg_2_rad}<LSEP>[](symbol){tunnel_angle}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){perch1_midpoint_translated}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){perch1_midpoint}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){perch2_midpoint_translated}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){perch2_midpoint}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){tunnel_centerpoint_translated}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){tunnel_arbitrary_translated}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){tunnel_arbitrary}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){perch1_trans_prime}<LEND>[call](){}<LSEP>[](symbol){c}<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){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<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){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch1_midpoint}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){perch2_trans_prime}<LEND>[call](){}<LSEP>[](symbol){c}<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){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<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){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch2_midpoint}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_name}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[](symbol){obj_new}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){perch1_midpoint_original}<LEND>[](symbol){perch1_midpoint}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){perch2_midpoint_original}<LEND>[](symbol){perch2_midpoint}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){tunnel_centerpoint_original}<LEND>[](symbol){tunnel_centerpoint}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){rotation_degrees}<LEND>[](symbol){tunnel_angle}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){rotation_radians}<LEND>[](symbol){alpharad}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){perch1_midpoint_current}<LEND>[](symbol){perch1_trans_prime}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){perch2_midpoint_current}<LEND>[](symbol){perch2_trans_prime}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tunnel_rotated}<LSEP>[argument 1; litteral](str){tunnel_centered}<LEND>[statement 37; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){standardize_tunnel}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){landmark_one}<LSEP>[](symbol){landmark_two}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_length column(s) are ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_width column(s) are m...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){position_height column(s) are ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){landmark1_med_pos}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){subject}<LSEP>[](symbol){landmark_one}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_width}<LEND>[argument 2; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){landmark2_med_pos}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){subject}<LSEP>[](symbol){landmark_two}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_width}<LEND>[argument 2; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){landmark1_med_pos}<LSEP>[](symbol){med_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){landmark2_med_pos}<LSEP>[](symbol){med_length}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rename2}<LSEP>[](symbol){landmark_one}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){landmark_one}<LSEP>[](symbol){landmark_two}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){landmark_two}<LSEP>[](symbol){rename2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){landmark1_med_pos}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){subject}<LSEP>[](symbol){landmark_one}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_width}<LEND>[argument 2; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){landmark2_med_pos}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){subject}<LSEP>[](symbol){landmark_two}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_width}<LEND>[argument 2; call](){}<LSEP>[](symbol){median}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){landmark1_med_pos}<LSEP>[](symbol){landmark2_med_pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){colMeans}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tunnel_arbitrary}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tunnel_angle}<LEND>[call](){}<LSEP>[](symbol){get_2d_angle}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark1_med_pos}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark1_med_pos}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_arbitrary}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_arbitrary}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){alpharad}<LEND>[call](){}<LSEP>[](symbol){deg_2_rad}<LSEP>[](symbol){tunnel_angle}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){perch1_midpoint_translated}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark1_med_pos}<LEND>[](symbol){tunnel_centerpoint}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){perch2_midpoint_translated}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark2_med_pos}<LEND>[](symbol){tunnel_centerpoint}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){tunnel_centerpoint_translated}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){tunnel_arbitrary_translated}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){tunnel_arbitrary}<LSEP>[](symbol){tunnel_centerpoint}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){perch1_trans_prime}<LEND>[call](){}<LSEP>[](symbol){c}<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){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<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){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch1_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark1_med_pos}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){perch2_trans_prime}<LEND>[call](){}<LSEP>[](symbol){c}<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){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<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){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){perch2_midpoint_translated}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark2_med_pos}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_name}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){alpharad}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_centerpoint}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[](symbol){obj_new}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){landmark1_midpoint_original}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark1_med_pos}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){landmark2_midpoint_original}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){landmark2_med_pos}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){tunnel_centerpoint_original}<LEND>[](symbol){tunnel_centerpoint}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){rotation_degrees}<LEND>[](symbol){tunnel_angle}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){rotation_radians}<LEND>[](symbol){alpharad}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){landmark1_midpoint_current}<LEND>[](symbol){perch1_trans_prime}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){landmark2_midpoint_current}<LEND>[](symbol){perch2_trans_prime}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){tunnel_rotated}<LSEP>[argument 1; litteral](str){tunnel_centered}<LEND>[statement 32; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){redefine_tunnel_center}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){axes}<LSEP>[](symbol){length_method}<LSEP>[](symbol){width_method}<LSEP>[](symbol){height_method}<LSEP>[](symbol){length_zero}<LSEP>[](symbol){width_zero}<LSEP>[](symbol){height_zero}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj_name}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Length column not found.\nThis...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj_name}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Width column not found\nThis c...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj_name}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Height column not found\nThis ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){length_method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){length_method}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){width_method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){width_method}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){height_method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){height_method}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){length_min}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){length_max}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){length_middle}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){length_max}<LSEP>[](symbol){length_min}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){length_median}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){width_min}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){width_max}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){width_middle}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){width_max}<LSEP>[](symbol){width_min}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){width_median}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){height_min}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){height_max}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){height_middle}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){height_max}<LSEP>[](symbol){height_min}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){height_median}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_name}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){length_method}<LSEP>[argument 1; litteral](str){original}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){length_method}<LSEP>[argument 1; litteral](str){middle}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[](symbol){length_middle}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){length_method}<LSEP>[argument 1; litteral](str){median}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[](symbol){length_median}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){length_method}<LSEP>[argument 1; litteral](str){user-defined}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){length_zero}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){length_zero must be a numeric ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){length_zero}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You must supply a length_zero ...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_length}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[](symbol){length_zero}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){width_method}<LSEP>[argument 1; litteral](str){original}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){width_method}<LSEP>[argument 1; litteral](str){middle}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[](symbol){width_middle}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){width_method}<LSEP>[argument 1; litteral](str){median}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[](symbol){width_median}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){width_method}<LSEP>[argument 1; litteral](str){user-defined}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){width_zero}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){width_zero must be a numeric v...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){width_zero}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You must supply a width_zero a...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_width}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_width}<LEND>[](symbol){width_zero}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){height_method}<LSEP>[argument 1; litteral](str){original}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){height_method}<LSEP>[argument 1; litteral](str){middle}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[](symbol){height_middle}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){height_method}<LSEP>[argument 1; litteral](str){median}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[](symbol){height_median}<LEND>[statement 31; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){height_method}<LSEP>[argument 1; litteral](str){user-defined}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){height_zero}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){height_zero must be a numeric ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){height_zero}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You must supply a height_zero ...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){position_height}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_height}<LEND>[](symbol){height_zero}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){tunnel_centered}<LEND>[statement 33; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){select_x_percent}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){desired_percent}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){prop}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){desired_percent}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tunnel_range}<LEND>[call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tunnel_length}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tunnel_range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){lengths_needed}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tunnel_length}<LSEP>[](symbol){prop}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){position_length}<LSEP>[](symbol){lengths_needed}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){position_length}<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}<LEND>[](symbol){lengths_needed}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[](symbol){obj_name}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){roi}<LEND>[call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){obj_name}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){roi}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){region of interest does not co...}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){percent_selected}<LEND>[](symbol){desired_percent}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){full_tunnel_length}<LEND>[](symbol){tunnel_length}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){selected_tunnel_length}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tunnel_length}<LSEP>[](symbol){prop}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){percent_selected}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){quick_separate_trajectories}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){max_frame_gap}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sploot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){frame}<LEND>[](symbol){max_frame_gap}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){obj_name}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){traj_id}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sploot}<LSEP>[](symbol){seq_id}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){sub_traj}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){subject}<LEND>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_new}<LSEP>[](symbol){traj_id}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[](symbol){obj_new}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){max_frame_gap}<LEND>[](symbol){max_frame_gap}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){trajectories_labeled}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){separate_trajectories}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){max_frame_gap}<LSEP>[](symbol){frame_rate_proportion}<LSEP>[](symbol){frame_gap_messaging}<LSEP>[](symbol){frame_gap_plotting}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){subject_names_simple}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){subject}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){grouped_frames}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LSEP>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){splitz}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_split}<LEND>[](symbol){grouped_frames}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){subject_tibbles}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_split}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){frame_rate}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){flid}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){file_id}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){maxFGs_by_subject}<LSEP>[litteral](NULL){NULL}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){allFGs_by_subject}<LSEP>[litteral](NULL){NULL}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){splitz}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){maxFGs_by_subject}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){splitz}<LSEP>[](symbol){i}<LEND>[](symbol){frame}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){allFGs_by_subject}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){splitz}<LSEP>[](symbol){i}<LEND>[](symbol){frame}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){maxFG_across_subjects}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){maxFGs_by_subject}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){max_frame_gap}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){max_frame_gap}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){maxFG_across_subjects}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Largest frame gap detected exc...}<LSEP>[](symbol){maxFG_across_subjects}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){maxFG_across_subjects}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sploot}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LSEP>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){frame}<LEND>[](symbol){mufasa}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){flid}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){subject}<LSEP>[argument 3; litteral](str){_}<LSEP>[](symbol){traj_id}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){obj_tmp}<LSEP>[](symbol){obj_name}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){left_join}<LEND>[](symbol){obj_tmp}<LSEP>[](symbol){sploot}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LSEP>[argument 1; litteral](str){subject}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){max_frame_gap}<LEND>[](symbol){mufasa}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){trajectories_labeled}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){max_frame_gap}<LSEP>[argument 1; litteral](str){autodetect}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){autodetect is an experimental ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){frame_rate_proportion}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){frame_rate_proportion must be ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){frame_rate_proportion}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){frame_rate_proportion}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){frame_rate_proportion must be ...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){max_frame_gap_allowed}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){frame_rate_proportion}<LSEP>[](symbol){frame_rate}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sploot}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mufasa}<LSEP>[litteral](NULL){NULL}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){subject_tibbles}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mfg}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cts}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){trajectory_count}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){frame_gap_allowed}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){1.000000}<LEND>[statement 5; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){max_frame_gap_allowed}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mfg}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){quick_separate_trajectories}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){subject_tibbles}<LSEP>[](symbol){i}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cts}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){count}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mfg}<LSEP>[](symbol){j}<LEND>[](symbol){traj_id}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){trajectory_count}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cts}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){frame_gap_allowed}<LSEP>[](symbol){j}<LEND>[](symbol){j}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mfg_tib}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){frame_gap_allowed}<LSEP>[](symbol){trajectory_count}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){find_curve_elbow}<LSEP>[](symbol){mfg_tib}<LSEP>[argument 1; litteral](str){row_num}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){frame_gap_messaging}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){For subject: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){subject_names_simple}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){, estimated best value for max...}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){i}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){frame_gap_plotting}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){mfg_tib}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){i}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){sploot}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){subject_tibbles}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LSEP>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mufasa}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){flid}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){subject}<LSEP>[argument 3; litteral](str){_}<LSEP>[](symbol){traj_id}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){obj_tmp}<LSEP>[](symbol){obj_name}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){new_sploot}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_rows}<LEND>[](symbol){sploot}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){left_join}<LEND>[](symbol){obj_tmp}<LSEP>[](symbol){new_sploot}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LSEP>[argument 1; litteral](str){subject}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){max_frame_gap}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){mufasa}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){trajectories_labeled}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){get_full_trajectories}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){span}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){summary_obj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){summarise}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){position_length}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){position_length}<LSEP>[](symbol){traj_length}<LEND>[argument 3; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){end_length}<LSEP>[](symbol){start_length}<LEND>[argument 4; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){start_length}<LEND>[argument 5; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){end_length}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){summary_obj}<LSEP>[](symbol){direction}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){summary_obj}<LSEP>[](symbol){start_length}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](str){rightwards}<LSEP>[argument 2; litteral](str){leftwards}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){selected_tunnel_length}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){max_length}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){position_length}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){max_length}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){selected_tunnel_length}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){filt_summary}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){summary_obj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){length_diff}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){span}<LSEP>[](symbol){max_length}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){start_length_sign}<LSEP>[](symbol){end_length_sign}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){obj_continuous}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){filt_summary}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){obj_defined}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){right_join}<LEND>[](symbol){obj_continuous}<LSEP>[](symbol){filt_summary}<LSEP>[argument 2; litteral](str){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_defined}<LSEP>[argument 1; litteral](str){span}<LEND>[](symbol){span}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_defined}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){full_trajectories}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_defined}<LSEP>[argument 1; litteral](str){trajectories_removed}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){summary_obj}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){filt_summary}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_defined}<LEND>[assign](){<-}<LSEP>[](symbol){section_tunnel_by}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){axis}<LSEP>[](symbol){number_of_sections}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dimension}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){axis}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){obj_name}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vec}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){dimension}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){vec}<LEND>[litteral](str){x}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){section_id}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){cut}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){vec}<LSEP>[](symbol){x}<LEND>[](symbol){number_of_sections}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){tunnel_sectioned}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){exclude_by_velocity}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){vel_min}<LSEP>[](symbol){vel_max}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){unique_trajs}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){vel_min}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){below_thresh}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){velocity}<LSEP>[](symbol){vel_min}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){as_vector}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){file_sub_traj}<LSEP>[](symbol){below_thresh}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){obj_name}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){vel_min}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){vel_min is character.\n Ple...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){vel_max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){above_thresh}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){velocity}<LSEP>[](symbol){vel_max}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){as_vector}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){file_sub_traj}<LSEP>[](symbol){above_thresh}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){obj_name}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){vel_max}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){vel_max is character.\n Ple...}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[assign](){<-}<LSEP>[](symbol){fill_traj_gaps}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){loess_degree}<LSEP>[](symbol){loess_criterion}<LSEP>[](symbol){loess_family}<LSEP>[](symbol){loess_user_span}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_splits}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){obj_splits}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_splits}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){traj_gap_indicator}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){obj_splits}<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){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_splits}<LSEP>[](symbol){i}<LEND>[](symbol){frame}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){traj_gap_indicator}<LSEP>[](symbol){i}<LEND>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){traj_gap_indicator}<LSEP>[](symbol){i}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){traj_gap_indicator}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){traj_gap_indicator}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gap_dat}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_splits}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){add_column}<LEND>[argument 0; litteral](str){No}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){frame_seq}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){frame}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){time_seq}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){time_sec}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){time_sec}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){frame_seq}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){length_fit}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){fANCOVA}<LSEP>[](symbol){loess.as}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){position_length}<LEND>[](symbol){loess_degree}<LSEP>[](symbol){loess_criterion}<LSEP>[](symbol){loess_family}<LSEP>[](symbol){loess_user_span}<LSEP>[argument 6; litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){length_preds}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){length_fit}<LSEP>[](symbol){frame_seq}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){width_fit}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){fANCOVA}<LSEP>[](symbol){loess.as}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){position_width}<LEND>[](symbol){loess_degree}<LSEP>[](symbol){loess_criterion}<LSEP>[](symbol){loess_family}<LSEP>[](symbol){loess_user_span}<LSEP>[argument 6; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){width_preds}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){width_fit}<LSEP>[](symbol){frame_seq}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){height_fit}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){fANCOVA}<LSEP>[](symbol){loess.as}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gap_dat}<LSEP>[](symbol){position_height}<LEND>[](symbol){loess_degree}<LSEP>[](symbol){loess_criterion}<LSEP>[](symbol){loess_family}<LSEP>[](symbol){loess_user_span}<LSEP>[argument 6; litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){height_preds}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){height_fit}<LSEP>[](symbol){frame_seq}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){predicted_data}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){frame_seq}<LSEP>[](symbol){time_seq}<LSEP>[](symbol){length_preds}<LSEP>[](symbol){width_preds}<LSEP>[](symbol){height_preds}<LSEP>[argument 5; litteral](str){Yes}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_velocity}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){new_dat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){left_join}<LEND>[](symbol){predicted_data}<LSEP>[](symbol){gap_dat}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){new_dat}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){subject}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){subject}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){subject}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){gaps_filled.y}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){gaps_filled.y}<LEND>[](symbol){j}<LEND>[litteral](str){Yes}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_id}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_id}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_id}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){file_sub_traj}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){file_sub_traj}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){file_sub_traj}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_length}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_length}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){traj_length}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_diff}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_diff}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_diff}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_diff}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length_sign}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length_sign}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length_sign}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){start_length_sign}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length_sign}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length_sign}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length_sign}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){end_length_sign}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){direction}<LEND>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){direction}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){direction}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){direction}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){new_dat}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_length.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_length.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_length.x}<LEND>[](symbol){k}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_width.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_width.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_width.x}<LEND>[](symbol){k}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_height.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_height.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){position_height.x}<LEND>[](symbol){k}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){velocity.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){velocity.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){velocity.x}<LEND>[](symbol){k}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_inst_vel.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_inst_vel.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){length_inst_vel.x}<LEND>[](symbol){k}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){width_inst_vel.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){width_inst_vel.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){width_inst_vel.x}<LEND>[](symbol){k}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){height_inst_vel.y}<LEND>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){height_inst_vel.y}<LEND>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){new_dat}<LSEP>[](symbol){height_inst_vel.x}<LEND>[](symbol){k}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_splits}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){new_dat}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){frame}<LSEP>[](symbol){time_sec.x}<LSEP>[](symbol){subject}<LSEP>[](symbol){position_length.y}<LSEP>[](symbol){position_width.y}<LSEP>[](symbol){position_height.y}<LSEP>[](symbol){rotation_length}<LSEP>[](symbol){rotation_width}<LSEP>[](symbol){rotation_height}<LSEP>[](symbol){rotation_real}<LSEP>[](symbol){mean_marker_error}<LSEP>[](symbol){velocity.y}<LSEP>[](symbol){length_inst_vel.y}<LSEP>[](symbol){width_inst_vel.y}<LSEP>[](symbol){height_inst_vel.y}<LSEP>[](symbol){traj_id}<LSEP>[](symbol){file_sub_traj}<LSEP>[](symbol){traj_length}<LSEP>[](symbol){start_length}<LSEP>[](symbol){end_length}<LSEP>[](symbol){length_diff}<LSEP>[](symbol){start_length_sign}<LSEP>[](symbol){end_length_sign}<LSEP>[](symbol){direction}<LSEP>[](symbol){gaps_filled.y}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){rename}<LEND>[](symbol){time_sec.x}<LSEP>[](symbol){position_length.y}<LSEP>[](symbol){position_width.y}<LSEP>[](symbol){position_height.y}<LSEP>[](symbol){velocity.y}<LSEP>[](symbol){length_inst_vel.y}<LSEP>[](symbol){width_inst_vel.y}<LSEP>[](symbol){height_inst_vel.y}<LSEP>[](symbol){gaps_filled.y}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){traj_gap_indicator}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_splits}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj_splits}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){add_column}<LEND>[argument 0; litteral](str){No}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){obj_new}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_rows}<LEND>[](symbol){obj_splits}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_new}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){traj_gaps_filled}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_new}<LEND>[assign](){<-}<LSEP>[](symbol){rm_by_trajnum}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){trajnum}<LSEP>[](symbol){mirrored}<LSEP>[](symbol){treatment1}<LSEP>[](symbol){treatment2}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mirrored}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rm_bytraj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){subject}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map_dbl}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){bloob}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){rm_bytraj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){n}<LSEP>[](symbol){trajnum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){inner_join}<LEND>[](symbol){obj_name}<LSEP>[](symbol){bloob}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mirrored}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rm_bytraj}<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){obj_name}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){unite}<LEND>[](symbol){block}<LSEP>[argument 1; litteral](str){subject}<LSEP>[argument 2; litteral](str){treatment}<LSEP>[argument 3; litteral](str){_}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by}<LEND>[](symbol){block}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){nest}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){purrr}<LSEP>[](symbol){map_dbl}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.}<LSEP>[](symbol){file_sub_traj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){block}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){separate}<LEND>[](symbol){block}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){subject}<LSEP>[argument 1; litteral](str){treatment}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tidyr}<LSEP>[](symbol){pivot_wider}<LEND>[](symbol){treatment}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){treatment1}<LSEP>[](symbol){treatment2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rm_bytraj}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){rm_bytraj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){.data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){vars}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){trajnum}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){.data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){vars}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){trajnum}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){subject}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){inner_join}<LEND>[](symbol){obj_name}<LSEP>[](symbol){rm_bytraj}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){trajnum}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){trajnum is character.\n Ple...}<LEND>[assign](){<-}<LSEP>[](symbol){insert_treatments}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){tunnel_config}<LSEP>[](symbol){perch_2_vertex}<LSEP>[](symbol){vertex_angle}<LSEP>[](symbol){tunnel_width}<LSEP>[](symbol){tunnel_length}<LSEP>[](symbol){stim_param_lat_pos}<LSEP>[](symbol){stim_param_lat_neg}<LSEP>[](symbol){stim_param_end_pos}<LSEP>[](symbol){stim_param_end_neg}<LSEP>[](symbol){treatment}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){viewr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This doesn't seem to be a view...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){full_trajectories}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Run get_full_trajectories() pr...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tunnel_config}<LSEP>[argument 1; litteral](str){v}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){perch_2_vertex}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){perch_2_vertex must have a pos...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){vertex_angle}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){vertex_angle must have a posit...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tunnel_length}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tunnel_length must have a posi...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_lat_pos}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_lat_pos must have a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_lat_neg}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_lat_neg must have a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_end_pos}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_end_pos must have a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_end_neg}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_end_neg must have a...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){add_column}<LEND>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){frame}<LSEP>[](symbol){tunnel_config}<LSEP>[](symbol){perch_2_vertex}<LEND>[argument 4; call](){}<LSEP>[](symbol){deg_2_rad}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){vertex_angle}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tunnel_length}<LSEP>[](symbol){stim_param_lat_pos}<LSEP>[](symbol){stim_param_lat_neg}<LSEP>[](symbol){stim_param_end_pos}<LSEP>[](symbol){stim_param_end_neg}<LSEP>[](symbol){treatment}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tunnel_config}<LSEP>[argument 1; litteral](str){box}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tunnel_width}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tunnel_width must have a posit...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tunnel_length}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){tunnel_length must have a posi...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_lat_pos}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_lat_pos must have a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_lat_neg}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_lat_neg must have a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_end_pos}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_end_pos must have a...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){stim_param_end_neg}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){stim_param_end_neg must have a...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){obj_name}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){add_column}<LEND>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){frame}<LSEP>[](symbol){tunnel_config}<LSEP>[](symbol){tunnel_width}<LSEP>[](symbol){tunnel_length}<LSEP>[](symbol){stim_param_lat_pos}<LSEP>[](symbol){stim_param_lat_neg}<LSEP>[](symbol){stim_param_end_pos}<LSEP>[](symbol){stim_param_end_neg}<LSEP>[](symbol){treatment}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tunnel_config}<LSEP>[argument 1; litteral](str){v}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){tunnel_config}<LEND>[](symbol){tunnel_config}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){perch_2_vertex}<LEND>[](symbol){perch_2_vertex}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){vertex_angle}<LEND>[](symbol){vertex_angle}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){tunnel_width}<LEND>[](symbol){tunnel_width}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){tunnel_length}<LEND>[](symbol){tunnel_length}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_lat_pos}<LEND>[](symbol){stim_param_lat_pos}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_lat_neg}<LEND>[](symbol){stim_param_lat_neg}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_end_pos}<LEND>[](symbol){stim_param_end_pos}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_end_neg}<LEND>[](symbol){stim_param_end_neg}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){treatment}<LEND>[](symbol){treatment}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tunnel_config}<LSEP>[argument 1; litteral](str){box}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){tunnel_config}<LEND>[](symbol){tunnel_config}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){tunnel_width}<LEND>[](symbol){tunnel_width}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){tunnel_length}<LEND>[](symbol){tunnel_length}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_lat_pos}<LEND>[](symbol){stim_param_lat_pos}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_lat_neg}<LEND>[](symbol){stim_param_lat_neg}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_end_pos}<LEND>[](symbol){stim_param_end_pos}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){stim_param_end_neg}<LEND>[](symbol){stim_param_end_neg}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){treatment}<LEND>[](symbol){treatment}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){obj_name}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[argument 1; litteral](str){treatments_added}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj_name} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){read_motive_csv}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file_name}<LSEP>[](symbol){file_id}<LSEP>[](symbol){simplify_marker_naming}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){file_name}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){A file_name is required}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){file_con}<LEND>[call](){}<LSEP>[](symbol){file}<LSEP>[](symbol){file_name}<LSEP>[argument 1; litteral](str){r}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){file_id}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){file_id}<LEND>[call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file_name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mtime}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.info}<LSEP>[](symbol){file_name}<LEND>[](symbol){mtime}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){header}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){names_line}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){data_names_part_one}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){data_names_part_two}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 9; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){,Type}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){file_con}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){header}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){header}<LSEP>[](symbol){l}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){header}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){header}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){,}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){header}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){odds}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){seq_along}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){header}<LSEP>[](symbol){.}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){metadata}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){header}<LSEP>[](symbol){.}<LEND>[](symbol){odds}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){value}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){header}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){odds}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){header}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){metadata}<LSEP>[](symbol){value}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){1.23}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){This function was written to r...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){type_line}<LSEP>[](symbol){l}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){type_vec}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type_line}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){types}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type_vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 19; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){,ID}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){file_con}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){names_line}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){names_line}<LSEP>[](symbol){l}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){names_vec}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){names_line}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){names_vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){id_line}<LSEP>[](symbol){l}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){id_vec}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id_line}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){ids}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){id_vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){ids_types_names}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){id_vec}<LSEP>[](symbol){type_vec}<LSEP>[](symbol){names_vec}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 26; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){ids_types_names}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){type_vec}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){Marker}<LEND>[argument 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){simplify}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_split}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){names_vec}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){:}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){simplify}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){names_vec}<LEND>[](symbol){i}<LEND>[statement 27; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){ids_types_names}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){type_vec}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){Rigid Body}<LEND>[argument 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){subjects}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_split}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){names_vec}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){:}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){subjects}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){names_vec}<LEND>[](symbol){i}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){file_con}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){data_names_part_one}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){l}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){file_con}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){data_names_part_two}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){l}<LSEP>[argument 1; litteral](str){,}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){data_names_part_two}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){data_names_part_one}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_names_part_two}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){data_names_part_two}<LSEP>[argument 1; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_names_part_two}<LSEP>[](symbol){data_names_part_two}<LEND>[statement 33; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){simplify_marker_naming}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){marker_id_line}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ids_types_names}<LSEP>[](symbol){simplify}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){marker_id_line}<LSEP>[](symbol){names_vec}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){data_names_frame}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){marker_id_line}<LSEP>[](symbol){data_names_part_one}<LSEP>[](symbol){data_names_part_two}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 35; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){data_names_frame}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){data_names}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_names_frame}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_names_frame}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 3; litteral](str){_}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_names_frame}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){__Frame}<LSEP>[argument 1; litteral](str){frame}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Name__Time_\\(Seconds\\)}<LSEP>[argument 1; litteral](str){time_sec}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Mean Marker Error_}<LSEP>[argument 1; litteral](str){mean_marker_error}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Mean_Marker Error_}<LSEP>[argument 1; litteral](str){mean_marker_error}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Position_X}<LSEP>[argument 1; litteral](str){position_x}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 42; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Position_Y}<LSEP>[argument 1; litteral](str){position_y}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Position_Z}<LSEP>[argument 1; litteral](str){position_z}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 44; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Rotation_X}<LSEP>[argument 1; litteral](str){rotation_x}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 45; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Rotation_Y}<LSEP>[argument 1; litteral](str){rotation_y}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 46; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Rotation_Z}<LSEP>[argument 1; litteral](str){rotation_z}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 47; assign](){<-}<LSEP>[](symbol){data_names}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){Rotation_W}<LSEP>[argument 1; litteral](str){rotation_w}<LSEP>[](symbol){data_names}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 48; assign](){<-}<LSEP>[](symbol){dataz}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){file_con}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){,}<LSEP>[argument 3; litteral](str){.}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 49; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){dataz}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){The csv file includes non-nume...}<LEND>[statement 50; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dataz}<LEND>[](symbol){data_names}<LEND>[statement 51; call](){}<LSEP>[](symbol){close}<LSEP>[](symbol){file_con}<LEND>[statement 52; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){as_tibble}<LEND>[](symbol){dataz}<LEND>[statement 53; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[litteral](str){viewr}<LEND>[statement 54; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){file_id}<LEND>[](symbol){file_id}<LEND>[statement 55; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){file_mtime}<LEND>[](symbol){mtime}<LEND>[statement 56; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){header}<LSEP>[](symbol){value}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[statement 57; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){header}<LEND>[](symbol){header}<LEND>[statement 58; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){Motive_IDs}<LEND>[](symbol){ids}<LEND>[statement 59; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){subject_names_full}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){names_vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 60; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){subject_names_simple}<LEND>[](symbol){names}<LEND>[statement 61; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){data_names}<LEND>[](symbol){data_names}<LEND>[statement 62; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){data_types_full}<LEND>[](symbol){types}<LEND>[statement 63; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){data_types_simple}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){unique}<LEND>[](symbol){types}<LEND>[statement 64; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){d1}<LEND>[](symbol){data_names_part_one}<LEND>[statement 65; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){d2}<LEND>[](symbol){data_names_part_two}<LEND>[statement 66; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){import_method}<LEND>[litteral](str){motive}<LEND>[statement 67; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){read_flydra_mat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mat_file}<LSEP>[](symbol){file_id}<LSEP>[](symbol){subject_name}<LSEP>[](symbol){frame_rate}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){mat_file}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){A mat_file is required}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){subject_name}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){A subject_name is required}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){file_id}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){file_id}<LEND>[call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){mat_file}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mtime}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.info}<LSEP>[](symbol){mat_file}<LEND>[](symbol){mtime}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mat_read}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){R.matlab}<LSEP>[](symbol){readMat}<LEND>[](symbol){mat_file}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){kalm_tib}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat_read}<LSEP>[](symbol){kalman.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat_read}<LSEP>[](symbol){kalman.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat_read}<LSEP>[](symbol){kalman.y}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat_read}<LSEP>[](symbol){kalman.z}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){arrange}<LEND>[](symbol){kalman.frame}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){kalm_distinct}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){distinct}<LEND>[](symbol){kalm_tib}<LSEP>[](symbol){kalman.frame}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){framez}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kalm_distinct}<LSEP>[](symbol){kalman.frame}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){frame_tib}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){framez}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){frame_first}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){framez}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){frame_last}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){framez}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){frame_seq}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){frame_first}<LSEP>[](symbol){frame_last}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){time_interval}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){frame_rate}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){time_seq}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){time_interval}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){frame_seq}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){frame_time_seqs}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){frame_seq}<LSEP>[](symbol){time_seq}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){joined_frame_time_seq}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){left_join}<LEND>[](symbol){frame_tib}<LSEP>[](symbol){frame_time_seqs}<LSEP>[argument 2; litteral](str){frame}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){frame_tib}<LSEP>[](symbol){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){joined_frame_time_seq}<LSEP>[](symbol){time}<LEND>[](symbol){subject_name}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kalm_distinct}<LSEP>[](symbol){kalman.x}<LEND>[argument 4; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kalm_distinct}<LSEP>[](symbol){kalman.y}<LEND>[argument 5; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){kalm_distinct}<LSEP>[](symbol){kalman.z}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){viewr}<LSEP>[argument 1; litteral](str){renamed_tunnel}<LSEP>[argument 2; litteral](str){gathered_tunnel}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){file_id}<LEND>[](symbol){file_id}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){file_mtime}<LEND>[](symbol){mtime}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[](symbol){frame_rate}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){header}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mat_read}<LSEP>[argument 1; litteral](str){header}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){import_method}<LEND>[litteral](str){flydra}<LEND>[statement 23; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){as_viewr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){frame_rate}<LSEP>[](symbol){frame_col}<LSEP>[](symbol){time_col}<LSEP>[](symbol){subject_col}<LSEP>[](symbol){position_length_col}<LSEP>[](symbol){position_width_col}<LSEP>[](symbol){position_height_col}<LSEP>[](symbol){include_rotation}<LSEP>[](symbol){rotation_real_col}<LSEP>[](symbol){rotation_length_col}<LSEP>[](symbol){rotation_width_col}<LSEP>[](symbol){rotation_height_col}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){is_tibble}<LEND>[](symbol){obj_name}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){obj_name}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){A tibble or data.frame must be...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){frame_col}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){time_col}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){subject_col}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){position_length_col}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){position_width_col}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){position_height_col}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){frame}<LSEP>[argument 1; litteral](str){time_sec}<LSEP>[argument 2; litteral](str){subject}<LSEP>[argument 3; litteral](str){position_length}<LSEP>[argument 4; litteral](str){position_width}<LSEP>[argument 5; litteral](str){position_height}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){data}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){include_rotation}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){rotation_real}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){rotation_real_col}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){rotation_length}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){rotation_length_col}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){rotation_width}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){rotation_width_col}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){rotation_height}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){obj_name}<LSEP>[](symbol){}<LSEP>[](symbol){rotation_height_col}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){pathviewr_steps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){viewr}<LSEP>[argument 1; litteral](str){renamed_tunnel}<LSEP>[argument 2; litteral](str){gathered_tunnel}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){file_id}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){quote}<LSEP>[](symbol){obj_name}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[](symbol){frame_rate}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){data}<LSEP>[argument 1; litteral](str){import_method}<LEND>[litteral](str){as_viewr}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){data} |
[](){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){velocity}<LSEP>[argument 1; litteral](str){file_sub_traj}<LSEP>[argument 2; litteral](str){predict}<LSEP>[argument 3; litteral](str){frame}<LSEP>[argument 4; litteral](str){time_sec.x}<LSEP>[argument 5; litteral](str){subject}<LSEP>[argument 6; litteral](str){position_length.y}<LSEP>[argument 7; litteral](str){position_width.y}<LSEP>[argument 8; litteral](str){position_height.y}<LSEP>[argument 9; litteral](str){rotation_length}<LSEP>[argument 10; litteral](str){rotation_width}<LSEP>[argument 11; litteral](str){rotation_height}<LSEP>[argument 12; litteral](str){rotation_real}<LSEP>[argument 13; litteral](str){mean_marker_error}<LSEP>[argument 14; litteral](str){velocity.y}<LSEP>[argument 15; litteral](str){length_inst_vel.y}<LSEP>[argument 16; litteral](str){width_inst_vel.y}<LSEP>[argument 17; litteral](str){height_inst_vel.y}<LSEP>[argument 18; litteral](str){traj_id}<LSEP>[argument 19; litteral](str){start_length}<LSEP>[argument 20; litteral](str){end_length}<LSEP>[argument 21; litteral](str){length_diff}<LSEP>[argument 22; litteral](str){start_length_sign}<LSEP>[argument 23; litteral](str){end_length_sign}<LSEP>[argument 24; litteral](str){direction}<LSEP>[argument 25; litteral](str){gaps_filled.y}<LSEP>[argument 26; litteral](str){position_length}<LSEP>[argument 27; litteral](str){traj_length}<LSEP>[argument 28; litteral](str){data}<LSEP>[argument 29; litteral](str){.data}<LSEP>[argument 30; litteral](str){hist}<LSEP>[argument 31; litteral](str){paths}<LSEP>[argument 32; litteral](str){n}<LSEP>[argument 33; litteral](str){block}<LSEP>[argument 34; litteral](str){treatment}<LSEP>[argument 35; litteral](str){median}<LSEP>[argument 36; litteral](str){position_length}<LSEP>[argument 37; litteral](str){position_width}<LSEP>[argument 38; litteral](str){position_height}<LSEP>[argument 39; litteral](str){par}<LSEP>[argument 40; litteral](str){kalman.frame} |
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){include_graphics}<LEND>[argument 0; litteral](str){https://raw.githubusercontent....}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pathviewr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){magrittr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){rotate_tunnel}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](str){autodetect}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){0.950000}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){redefine_tunnel_center}<LSEP>[argument 4; litteral](str){middle}<LSEP>[argument 5; litteral](str){user-defined}<LSEP>[argument 6; litteral](real){1.440000}<LSEP>[argument 7; litteral](logical){FALSE}<LSEP>[argument 8; litteral](logical){TRUE}<LSEP>[argument 9; litteral](real){60.000000}<LSEP>[argument 10; litteral](logical){FALSE}<LSEP>[argument 11; litteral](logical){TRUE}<LSEP>[argument 12; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){motive_treatments}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){v}<LSEP>[argument 1; litteral](real){0.385500}<LSEP>[argument 2; litteral](real){90.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.050000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](real){0.100000}<LSEP>[argument 8; litteral](str){latB}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_treatments}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_treatments}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){insert_treatments}<LSEP>[argument 0; litteral](str){box}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){0.050000}<LSEP>[argument 4; litteral](real){0.050000}<LSEP>[argument 5; litteral](real){0.100000}<LSEP>[argument 6; litteral](real){0.100000}<LSEP>[argument 7; litteral](str){latB}<LEND>[assign](){<-}<LSEP>[](symbol){motive_min_dist}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_treatments}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_v}<LSEP>[argument 0; litteral](logical){FALSE}<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){motive_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_width}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){min_dist_pos}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.385500}<LEND>[argument 2; litteral](real){0.586900}<LSEP>[argument 3; litteral](real){0.201400}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.385500}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.586900}<LEND>[argument 3; litteral](real){0.201400}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_min_dist}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_treatments}<LEND>[argument 1; call](){}<LSEP>[](symbol){calc_min_dist_box}<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){flydra_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){min_dist_end}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_vis_angle}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_vis_angle}<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){motive_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_width}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){vis_angle_pos_deg}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.385500}<LEND>[argument 2; litteral](real){0.586900}<LSEP>[argument 3; litteral](real){0.201400}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.385500}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.586900}<LEND>[argument 3; litteral](real){0.201400}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_vis_angle}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_min_dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_vis_angle}<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){flydra_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){vis_angle_end_deg}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_sf}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_sf}<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){motive_sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_width}<LSEP>[](symbol){position_height}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){sf_pos}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.385500}<LEND>[argument 2; litteral](real){0.586900}<LSEP>[argument 3; litteral](real){0.201400}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.385500}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.586900}<LEND>[argument 3; litteral](real){0.201400}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_sf}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_vis_angle}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_sf}<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){flydra_sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){position_length}<LSEP>[](symbol){position_width}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){sf_end}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_segment}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){0.500000} |
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pathviewr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){magrittr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_cleaned}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](real){70.000000}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_cleaned}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_cleaned}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_mfg1}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg1}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg1}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg1}<LSEP>[](symbol){file_sub_traj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg1}<LSEP>[](symbol){file_sub_traj}<LEND>[assign](){<-}<LSEP>[](symbol){motive_mfg5}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5}<LSEP>[](symbol){file_sub_traj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5}<LSEP>[](symbol){file_sub_traj}<LEND>[assign](){<-}<LSEP>[](symbol){motive_mfg5_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_mfg5}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 0; litteral](real){0.600000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5_full}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5_full}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5_full}<LSEP>[](symbol){file_sub_traj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_mfg5_full}<LSEP>[](symbol){file_sub_traj}<LEND>[call](){}<LSEP>[](symbol){plot_viewr_trajectories}<LSEP>[](symbol){motive_mfg5_full}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){length}<LSEP>[argument 1; litteral](str){width}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){visualize_frame_gap_choice}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_auto}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_cleaned}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](str){autodetect}<LSEP>[argument 1; litteral](real){0.100000}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_auto}<LSEP>[](symbol){file_sub_traj} |
[](){expression}<LSEP>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){knitr}<LSEP>[](symbol){opts_chunk}<LEND>[](symbol){set}<LEND>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](str){#>}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){pathviewr}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){ggplot2}<LEND>[call](){}<LSEP>[](symbol){library}<LSEP>[](symbol){magrittr}<LEND>[assign](){<-}<LSEP>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){read_motive_csv}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_motive_example_data.csv}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[](symbol){motive_data}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](str){header}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](str){subject_names_simple}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](str){data_types_simple}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){motive_data}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){read_flydra_mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata}<LSEP>[argument 1; litteral](str){pathviewr_flydra_example_data.mat}<LSEP>[argument 2; litteral](str){pathviewr}<LEND>[argument 1; litteral](str){birdie_wooster}<LEND>[](symbol){flydra_data}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){flydra_data}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.010000}<LSEP>[argument 2; litteral](real){100.000000}<LEND>[argument 2; litteral](str){birdie_sanders}<LEND>[argument 3; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){rnorm}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){as_viewr}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](real){100.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){3.000000}<LSEP>[argument 5; litteral](real){5.000000}<LSEP>[argument 6; litteral](real){6.000000}<LSEP>[argument 7; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){frame_rate}<LEND>[assign](){<-}<LSEP>[](symbol){motive_relabeled}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){relabel_viewr_axes}<LSEP>[argument 0; litteral](str){_z}<LSEP>[argument 1; litteral](str){_x}<LSEP>[argument 2; litteral](str){_y}<LSEP>[argument 3; litteral](str){_w}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_relabeled}<LEND>[assign](){<-}<LSEP>[](symbol){motive_gathered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_relabeled}<LEND>[argument 1; call](){}<LSEP>[](symbol){gather_tunnel_data}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){motive_gathered}<LEND>[assign](){<-}<LSEP>[](symbol){motive_trimmed}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_gathered}<LEND>[argument 1; call](){}<LSEP>[](symbol){trim_tunnel_outliers}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.400000}<LEND>[argument 3; litteral](real){0.800000}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[argument 5; litteral](real){0.500000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_rotated}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){rotate_tunnel}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.060000}<LEND>[argument 1; litteral](real){0.060000}<LSEP>[argument 2; litteral](real){2.480000}<LSEP>[argument 3; litteral](real){2.600000}<LSEP>[argument 4; litteral](real){0.090000}<LSEP>[argument 5; litteral](real){0.310000}<LSEP>[argument 6; litteral](real){0.130000}<LSEP>[argument 7; litteral](real){0.350000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_trimmed}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_rotated}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_rotated}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_centered}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){redefine_tunnel_center}<LSEP>[argument 0; litteral](str){middle}<LSEP>[argument 1; litteral](str){user-defined}<LSEP>[argument 2; litteral](real){1.440000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_data}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_data}<LSEP>[](symbol){position_height}<LEND>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_centered}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_centered}<LSEP>[](symbol){position_height}<LEND>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_selected}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_rotated}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_selected}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_selected}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_selected}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_centered}<LEND>[argument 1; call](){}<LSEP>[](symbol){select_x_percent}<LSEP>[argument 0; litteral](real){50.000000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_selected}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_selected}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_labeled}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_selected}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](str){autodetect}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_labeled}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_selected}<LEND>[argument 1; call](){}<LSEP>[](symbol){separate_trajectories}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){motive_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_labeled}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 0; litteral](real){0.950000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_full}<LSEP>[](symbol){file_sub_traj}<LEND>[assign](){<-}<LSEP>[](symbol){flydra_full}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){flydra_labeled}<LEND>[argument 1; call](){}<LSEP>[](symbol){get_full_trajectories}<LSEP>[argument 0; litteral](real){0.950000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_full}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_full}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){flydra_full}<LSEP>[](symbol){file_sub_traj}<LEND>[assign](){<-}<LSEP>[](symbol){motive_allinone}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){motive_data}<LEND>[argument 1; call](){}<LSEP>[](symbol){clean_viewr}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){rotate_tunnel}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](real){50.000000}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[argument 7; litteral](logical){TRUE}<LSEP>[argument 8; litteral](str){autodetect}<LSEP>[argument 9; litteral](logical){TRUE}<LSEP>[argument 10; litteral](real){0.950000}<LEND>[call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_allinone}<LSEP>[](symbol){position_length}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_allinone}<LSEP>[](symbol){position_width}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){motive_allinone}<LSEP>[](symbol){file_sub_traj} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){model_selection}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){name_dir}<LSEP>[](symbol){name_results}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){data}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){No data available. Stop running}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){name_dir}<LEND>[true branch; assign](){=}<LSEP>[](symbol){name_dir}<LEND>[call](){}<LSEP>[](symbol){tempdir}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){name_results}<LEND>[true branch; assign](){=}<LSEP>[](symbol){name_results}<LSEP>[litteral](str){nlMS_results}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){o}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){o}<LSEP>[](symbol){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){var_names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){var_names}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AIC}<LSEP>[argument 1; litteral](str){RSE}<LSEP>[argument 2; litteral](str){R2}<LSEP>[argument 3; litteral](str){residuals}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){X}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){models}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){linear}<LSEP>[argument 1; litteral](str){quadratic}<LSEP>[argument 2; litteral](str){cubic}<LSEP>[argument 3; litteral](str){logistic}<LSEP>[argument 4; litteral](str){exponential}<LSEP>[argument 5; litteral](str){power}<LSEP>[argument 6; litteral](str){monod}<LSEP>[argument 7; litteral](str){haldane}<LSEP>[argument 8; litteral](str){logit}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){formulas}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){b}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){b}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){c}<LSEP>[](symbol){X2}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){b}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){c}<LSEP>[](symbol){X2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LSEP>[](symbol){X3}<LEND>[argument 3; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){a}<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){X}<LSEP>[](symbol){X0}<LEND>[](symbol){b}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){b}<LSEP>[](symbol){X}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){X}<LSEP>[](symbol){b}<LEND>[](symbol){c}<LEND>[argument 6; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<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){b}<LSEP>[](symbol){X}<LEND>[argument 7; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<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){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){c}<LSEP>[](symbol){X}<LEND>[](symbol){X2}<LEND>[argument 8; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X0}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<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){X}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){formulas}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){formulas}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){as.formula}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){file_name_global}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){name_dir}<LSEP>[argument 1; litteral](str){/}<LSEP>[](symbol){name_results}<LSEP>[argument 3; litteral](str){.csv}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){variable}<LSEP>[argument 1; litteral](str){index}<LSEP>[](symbol){models}<LSEP>[argument 3; litteral](str){best fit}<LSEP>[argument 4; litteral](str){\n}<LSEP>[](symbol){file_name_global}<LSEP>[argument 6; litteral](str){;}<LSEP>[argument 7; litteral](logical){FALSE}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){models}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AIC}<LSEP>[argument 1; litteral](str){RSE}<LSEP>[argument 2; litteral](str){R2}<LSEP>[argument 3; litteral](str){res.norm}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){X2}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){X3}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){starts}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LSEP>[](symbol){X}<LEND>[](symbol){coefficients}<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){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LSEP>[](symbol){X}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){coefficients}<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){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){X3}<LEND>[](symbol){coefficients}<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){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){X3}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){X3}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){X}<LSEP>[](symbol){X2}<LEND>[](symbol){X3}<LEND>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){sd}<LEND>[](symbol){X}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){X}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.001000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){Y}<LEND>[argument 1; litteral](real){0.001000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){X}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000100}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000100}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000100}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){Y}<LEND>[argument 2; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000100}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){Y}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){X}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Y}<LEND>[argument 8; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){sd}<LEND>[](symbol){Y}<LEND>[argument 9; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){Y}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){var}<LEND>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){var}<LEND>[](symbol){Y}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){var(Y)=0}<LSEP>[argument 2; litteral](str){\n}<LSEP>[](symbol){file_name_global}<LSEP>[argument 4; litteral](str){;}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){SST}<LEND>[call](){}<LSEP>[](symbol){sum}<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){mean}<LSEP>[](symbol){Y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){table}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){file_name}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){name_dir}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 3; litteral](str){.txt}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){plot_name}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){name_dir}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 3; litteral](str){.png}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){grDevices}<LSEP>[](symbol){png}<LEND>[](symbol){plot_name}<LSEP>[argument 1; litteral](real){1000.000000}<LSEP>[argument 2; litteral](real){1000.000000}<LSEP>[argument 3; litteral](real){100.000000}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](real){1.000000}<LSEP>[argument 6; litteral](real){0.800000}<LSEP>[argument 7; litteral](str){serif}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ variable }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){\n\n}<LSEP>[](symbol){file_name}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){m}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){models}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){mod}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mes}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){capture.output}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){nlme}<LSEP>[](symbol){gnls}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){formulas}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){starts}<LSEP>[](symbol){m}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){mod}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){starts}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){func}<LSEP>[](symbol){mod}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){models}<LSEP>[](symbol){m}<LEND>[](symbol){k}<LSEP>[](symbol){SST}<LSEP>[](symbol){N}<LSEP>[](symbol){file_name}<LEND>[argument 8; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){formulas}<LSEP>[](symbol){m}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){AIC_val}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){RSE_val}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){R2_val}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){norm}<LEND>[statement 8; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){grDevices}<LSEP>[](symbol){dev.off}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){line}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){line}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){min_mod}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){subset}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[](symbol){line}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[](symbol){line}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){min_mod}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){models}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[](symbol){line}<LSEP>[](symbol){}<LEND>[](symbol){min_mod}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){table}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){table}<LEND>[argument 1; litteral](str){is nan; for }<LSEP>[](symbol){name_results}<LSEP>[argument 3; litteral](str){and variable}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 5; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){table}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){table}<LEND>[argument 1; litteral](str){ is infinite; for }<LSEP>[](symbol){name_results}<LSEP>[argument 3; litteral](str){ and variable }<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 5; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){line}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){index}<LSEP>[](symbol){line}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[](symbol){line}<LSEP>[](symbol){}<LEND>[argument 3; litteral](str){\t}<LSEP>[](symbol){file_name_global}<LSEP>[argument 5; litteral](str){;}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){line}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){min_mod}<LSEP>[](symbol){file_name_global}<LSEP>[argument 2; litteral](str){;}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){line}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var_names}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){index}<LSEP>[](symbol){line}<LEND>[argument 2; call](){}<LSEP>[](symbol){replace}<LEND>[argument 0; call](){}<LSEP>[](symbol){replace}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){table}<LSEP>[](symbol){line}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){norm}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){no norm}<LEND>[argument 3; litteral](str){\t}<LSEP>[](symbol){file_name_global}<LSEP>[argument 5; litteral](str){;}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LSEP>[](symbol){file_name_global}<LSEP>[argument 2; litteral](str){;}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LSEP>[](symbol){file_name_global}<LSEP>[argument 2; litteral](str){;}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){func}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mod}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){name_mod}<LSEP>[](symbol){k}<LSEP>[](symbol){SST}<LSEP>[](symbol){N}<LSEP>[](symbol){file_name}<LSEP>[](symbol){form}<LSEP>[](symbol){make_plot}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){b}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){c}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){d}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){X0}<LSEP>[litteral](NULL){NULL}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){fitted}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){fitted}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Y}<LSEP>[](symbol){fitted}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){AIC_val}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){AIC}<LEND>[](symbol){mod}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){SSE}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){residuals}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){RSE_val}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){SSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[](symbol){k}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){R2_val}<LSEP>[litteral](real){0.000000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){file_name}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n \n model: }<LSEP>[](symbol){name_mod}<LSEP>[argument 2; litteral](str){ \n}<LSEP>[](symbol){file_name}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cmd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){tail}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){form}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){exp0}<LEND>[call](){}<LSEP>[](symbol){parse}<LSEP>[](symbol){cmd}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ equation: }<LSEP>[](symbol){cmd}<LSEP>[argument 2; litteral](str){ \n}<LSEP>[](symbol){file_name}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ parameters: a = }<LSEP>[](symbol){a}<LSEP>[argument 2; litteral](str){; b = }<LSEP>[](symbol){b}<LSEP>[](symbol){file_name}<LSEP>[argument 5; litteral](str){}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){haldane}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){a}<LSEP>[](symbol){c}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){b}<LSEP>[](symbol){c}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){logistic}<LEND>[true branch; assign](){=}<LSEP>[](symbol){X0}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mod}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){c}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){c}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ ; c = }<LSEP>[](symbol){c}<LSEP>[](symbol){file_name}<LSEP>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){d}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ ; d = }<LSEP>[](symbol){d}<LSEP>[](symbol){file_name}<LSEP>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){logistic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){logit}<LEND>[true branch; assign](){=}<LSEP>[](symbol){X0}<LSEP>[](symbol){c}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){X0}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){X0}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ ; X0 = }<LSEP>[](symbol){X0}<LSEP>[](symbol){file_name}<LSEP>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){make_plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){plot}<LEND>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[argument 2; litteral](real){20.000000}<LSEP>[](symbol){name_mod}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){X}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){Y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){c}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LSEP>[](symbol){c}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LSEP>[](symbol){c}<LSEP>[](symbol){d}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){X0}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){a}<LSEP>[](symbol){b}<LSEP>[](symbol){X0}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){X}<LEND>[argument 2; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){100.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){X}<LEND>[](symbol){z}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){quadratic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){haldane}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){X2}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){cubic}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){X2}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){params}<LSEP>[](symbol){X3}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 9; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){lines}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){exp0}<LSEP>[](symbol){params}<LEND>[statement 16; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n AIC = }<LSEP>[](symbol){AIC_val}<LSEP>[argument 2; litteral](str){; RSE = }<LSEP>[](symbol){RSE_val}<LSEP>[](symbol){file_name}<LSEP>[argument 5; litteral](str){}<LSEP>[argument 6; litteral](logical){TRUE}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){linear}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){quadratic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){name_mod}<LSEP>[argument 1; litteral](str){cubic}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){; R^2 = }<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){SSE}<LSEP>[](symbol){SST}<LEND>[](symbol){file_name}<LSEP>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 18; assign](){=}<LSEP>[](symbol){a}<LSEP>[litteral](str){no-test}<LEND>[statement 19; assign](){=}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){var}<LEND>[](symbol){residuals}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){var}<LEND>[](symbol){residuals}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){shapiro.test}<LEND>[](symbol){residuals}<LEND>[](symbol){p.value}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){0.050000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a}<LSEP>[litteral](str){norm}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){b}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){0.050000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a}<LSEP>[litteral](str){no-norm}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){b}<LSEP>[litteral](real){0.000000}<LEND>[statement 21; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n residuals distr: }<LSEP>[](symbol){a}<LSEP>[argument 2; litteral](str){ p-value: }<LSEP>[](symbol){p}<LSEP>[argument 4; litteral](str){ \n}<LSEP>[](symbol){file_name}<LSEP>[argument 6; litteral](str){}<LSEP>[argument 7; litteral](logical){TRUE}<LEND>[statement 22; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){AIC_val}<LSEP>[](symbol){RSE_val}<LSEP>[](symbol){R2_val}<LSEP>[](symbol){b} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){DuoWPCCurve}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){main}<LSEP>[](symbol){ylim}<LSEP>[](symbol){xlim}<LSEP>[](symbol){type}<LSEP>[](symbol){col1}<LSEP>[](symbol){col2}<LSEP>[](symbol){lwd}<LSEP>[](symbol){legendloc}<LSEP>[](symbol){legendtxt}<LSEP>[](symbol){confi}<LSEP>[](symbol){ptsest}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){s}<LEND>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){main}<LSEP>[](symbol){ylim}<LSEP>[](symbol){xlim}<LSEP>[](symbol){type}<LSEP>[](symbol){col1}<LSEP>[](symbol){lwd}<LEND>[statement 1; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){s}<LEND>[](symbol){type}<LSEP>[](symbol){col2}<LSEP>[](symbol){lwd}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){confi}<LSEP>[argument 1; litteral](str){N}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){legend}<LSEP>[](symbol){legendloc}<LSEP>[](symbol){legendtxt}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){col1}<LSEP>[](symbol){col2}<LEND>[argument 3; litteral](str){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lwd}<LSEP>[](symbol){lwd}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){confi}<LSEP>[argument 1; litteral](str){Y}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){lb}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){col1}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 1; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){ub}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){col1}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){color_transparent}<LEND>[call](){}<LSEP>[](symbol){adjustcolor}<LSEP>[](symbol){col1}<LSEP>[argument 1; litteral](real){0.100000}<LEND>[statement 3; call](){}<LSEP>[](symbol){polygon}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){lb}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){ub}<LEND>[](symbol){color_transparent}<LSEP>[argument 3; litteral](logical){NA}<LEND>[statement 4; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){lb}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){col2}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 5; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){ub}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){col2}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){color_transparent}<LEND>[call](){}<LSEP>[](symbol){adjustcolor}<LSEP>[](symbol){col2}<LSEP>[argument 1; litteral](real){0.100000}<LEND>[statement 7; call](){}<LSEP>[](symbol){polygon}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){lb}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){ub}<LEND>[](symbol){color_transparent}<LSEP>[argument 3; litteral](logical){NA}<LEND>[statement 8; call](){}<LSEP>[](symbol){legend}<LSEP>[](symbol){legendloc}<LSEP>[](symbol){legendtxt}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){col1}<LSEP>[](symbol){col1}<LSEP>[](symbol){col2}<LSEP>[](symbol){col2}<LEND>[argument 3; litteral](str){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lwd}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){lwd}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ptsest}<LSEP>[argument 1; litteral](str){Y}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc1}<LSEP>[](symbol){y}<LEND>[argument 2; litteral](real){3.000000}<LSEP>[](symbol){col1}<LEND>[statement 1; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc2}<LSEP>[](symbol){y}<LEND>[argument 2; litteral](real){3.000000}<LSEP>[](symbol){col2} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ns.windows}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){event}<LSEP>[](symbol){censor}<LSEP>[](symbol){marker}<LSEP>[](symbol){nsub}<LSEP>[](symbol){sspeed}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){event}<LSEP>[](symbol){censor}<LSEP>[](symbol){marker}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){dataorder}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){marker}<LEND>[](symbol){}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){ntotal}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){marker}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){xtotal}<LEND>[call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){ntotal}<LSEP>[](symbol){sspeed}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){wdata}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){xtotal}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){wband}<LEND>[assign](){=}<LSEP>[](symbol){nsam}<LEND>[assign](){=}<LSEP>[](symbol){winsize}<LEND>[assign](){=}<LSEP>[](symbol){xwin}<LSEP>[litteral](logical){NA}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){i}<LEND>[assign](){=}<LSEP>[](symbol){j}<LSEP>[litteral](real){1.000000}<LEND>[statement 7; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wband}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nsub}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ntotal}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wdata}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dataorder}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wband}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wband}<LSEP>[](symbol){i}<LEND>[](symbol){}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nsam}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wdata}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xwin}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dataorder}<LSEP>[](symbol){marker}<LEND>[](symbol){j}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){winsize}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wdata}<LSEP>[](symbol){i}<LEND>[](symbol){marker}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wdata}<LSEP>[](symbol){i}<LEND>[](symbol){marker}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[](symbol){sspeed}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){j}<LSEP>[](symbol){ntotal}<LEND>[true branch; call](){}<LSEP>[call name; control flow](){break}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){xwin}<LSEP>[](symbol){xtotal}<LSEP>[](symbol){wdata}<LSEP>[](symbol){nsam}<LSEP>[](symbol){winsize} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){SoloWPCCurve}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){wpc}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){main}<LSEP>[](symbol){ylim}<LSEP>[](symbol){xlim}<LSEP>[](symbol){type}<LSEP>[](symbol){col}<LSEP>[](symbol){lwd}<LSEP>[](symbol){legendloc}<LSEP>[](symbol){legendtxt}<LSEP>[](symbol){confi}<LSEP>[](symbol){ptsest}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){s}<LEND>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){main}<LSEP>[](symbol){ylim}<LSEP>[](symbol){xlim}<LSEP>[](symbol){type}<LSEP>[](symbol){col}<LSEP>[](symbol){lwd}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){confi}<LSEP>[argument 1; litteral](str){N}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){legend}<LSEP>[](symbol){legendloc}<LSEP>[](symbol){legendtxt}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){col}<LEND>[argument 3; litteral](str){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lwd}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){confi}<LSEP>[argument 1; litteral](str){Y}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){lb}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){col}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 1; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){ub}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){col}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){color_transparent}<LEND>[call](){}<LSEP>[](symbol){adjustcolor}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](real){0.100000}<LEND>[statement 3; call](){}<LSEP>[](symbol){polygon}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){lb}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){ub}<LEND>[](symbol){color_transparent}<LSEP>[argument 3; litteral](logical){NA}<LEND>[statement 4; call](){}<LSEP>[](symbol){legend}<LSEP>[](symbol){legendloc}<LSEP>[](symbol){legendtxt}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){col}<LSEP>[](symbol){col}<LEND>[argument 3; litteral](str){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lwd}<LSEP>[](symbol){lwd}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ptsest}<LSEP>[argument 1; litteral](str){Y}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){wpc}<LSEP>[](symbol){y}<LEND>[argument 2; litteral](real){3.000000}<LSEP>[](symbol){col} |