Closed bastianilso closed 2 years ago
@bastianilso when i run the r loading order the result is this : And this is my csv file: log2022-9-28 15-16-30.479Event.csv Can you help me please?
OK, this looks like basic debugging. Have you verified that the column 'Timestamp' exists in the file? what about 'SessionID'
@hendrikknoche As you can see below: 'Timestamp' and 'SessionID' exist, this is Why i don't understand. I've used 'loadFromDirectory' following bastian's instructions and i think there is no read.csv function in the R logging loader :
@bilal-62210 you should not need to use absolute paths to load the data. why not use relative paths like i showed in the example? you can use getwd() in the R terminal to see what folder is the current working directory.
@hendrikknoche As you can see below: 'Timestamp' and 'SessionID' exist, this is Why i don't understand. I've used 'loadFromDirectory' following bastian's instructions and i think there is no read.csv function in the R logging loader :
OK, this is difficult to reproduce for me because the code cannot work on my end given that there's no utils folder in the repo currently.
the tidyverse library you need to load in R like this: library(tidyverse)
have a look here about differences between source() and library() https://stackoverflow.com/questions/55122477/what-is-the-difference-between-library-require-and-source-in-r
the`
@hendrikknoche As you can see below: 'Timestamp' and 'SessionID' exist, this is Why i don't understand. I've used 'loadFromDirectory' following bastian's instructions and i think there is no read.csv function in the R logging loader :
OK, this is difficult to reproduce for me because the code cannot work on my end given that there's no utils folder in the repo currently.
the tidyverse library you need to load in R like this: library(tidyverse)
have a look here about differences between source() and library() https://stackoverflow.com/questions/55122477/what-is-the-difference-between-library-require-and-source-in-r
the source("utils/..data.R") executes all the code inside the sourced files and in this case makes the functions inside available. So you can call 'loadFromDirectory'.
@bastianilso this is the csv file: log2022-9-28 15-16-30.479Event.csv
@bastianilso It's good for the stardardized csv file. It works so i think it's good for this issue.
great @bilal-62210, good to see. you can either pull request this or push directly to the repo, up to you. In these initial stages where we prototype code pushing to master is fine for me.
The R Shiny JS data capture will be part of an ecosystem, and have to adhere to some standardized ways in which we collect data in the HMI lab. This means:
;
as delimiter.SessionID
(a unique ID for the session),Timestamp
(in the formatyyyy-mm-dd hh:mm:ss.mmm
),Email
(by default with the valueanonymous
),Framecount
(default value:NA
). These columns are assumed to be existing by the R Logging Loader.*.csv
."log" + <timestamp> + <datatype>
. For examplelog2022-03-29 11-54-12.4138Event.csv
. There are three established datatypes:More requirements may appear as we iterate on it.
Testing whether the CSV files adhere to the requirements can be done by placing the CSV file in a folder called e.g.
data
and downloading the R Logging Loader and load the data from there in an R script:If it produces a datasat called
D
, then it succeeded:Otherwise, feel free to paste an error into this issue and we can try to take a look what's going on.
EDIT: Just to be clear, @bilal-62210 I would like you to address these parts in a separate pull request, than the current one. We should merge the current one. The convention is that a pull request should address one problem/issue.