SebastianKorinth / eyEdu

EyEdu - A Basic Eye Movement Analysis Package for Educational Purposes
7 stars 5 forks source link

load files when plotting #3

Closed DejanDraschkow closed 4 years ago

DejanDraschkow commented 5 years ago

should we not just always load the data, so that it always gets the latest version? or we plot some old stuf..

if(!exists("eyEdu.data")) { load(file = paste(raw.data.path, "eyEdu_data.Rda", sep = "")) }

SebastianKorinth commented 4 years ago

The problem that reloading data is too time consuming is more a conceptual problem. Namely, the function does not refer to the eyEdu.data in the global enviorment, but creates its "own" enviroment. For further reading: https://www.datamentor.io/r-programming/environment-scope/

Anyhow, a more convenient way of scrolling through data is the new shiny app, which can be loaded after updating the package with: eyEduTrialViewer()