Closed GeorgFette closed 1 year ago
Can you see in your folder structure if there is filename customRF.R?
yes, it is there
Can you change the line number 33 of the script _4_modeling1_fixedwindowfalse.R
it still get's the error. Should I add that part in the file 5_modeling2_fixedwindow_true.R as well ?
Does the error now comes in ths file now 5_modeling2_fixedwindow_true.R ? Yes please.. That would be great
The error still stays. How can I see in which R-File the exception occurs ?
There are print statements added in the script while excution which can help us identify the source of error. If the 4_modeling1_fixedwindow_false.R script is finished, there will be a lot of model objects generated in the reults folder. Do you see that?
no, I think he is still in the 4-R-File
Can you try this: source("customRF.R", chdir = TRUE) ?
again the same error. Here is a bit longer output:
2023-02-06 13:37:49 Warning messages:
2023-02-06 13:37:49 1: In readLines(con, warn = readLines.warn) :
2023-02-06 13:37:49 incomplete final line found on '/config.yml'
2023-02-06 13:37:49 2: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:49 3: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:49 4: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:49 5: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:49 6: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:49 7: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 [1] "Feature extraction done"
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:49 8: funs()
was deprecated in dplyr 0.8.0.
2023-02-06 13:37:49 ℹ Please use a list of either functions or lambdas:
2023-02-06 13:37:49
2023-02-06 13:37:49 # Simple named list: list(mean = mean, median = median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Auto named with tibble::lst()
: tibble::lst(mean, median)
2023-02-06 13:37:49
2023-02-06 13:37:49 # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
2023-02-06 13:37:51 Error in file(filename, "r", encoding = encoding) :
2023-02-06 13:37:51 cannot open the connection
2023-02-06 13:37:51 Calls: source -> withVisible -> eval -> eval -> source -> file
2023-02-06 13:37:51 In addition: Warning messages:
2023-02-06 13:37:51 1: In readLines(con, warn = readLines.warn) :
2023-02-06 13:37:51 incomplete final line found on '/config.yml'
2023-02-06 13:37:51 2: In file(filename, "r", encoding = encoding) :
2023-02-06 13:37:51 cannot open file '//customRF.R': No such file or directory
2023-02-06 13:37:51 Execution halted
The issue is the file is added newly and it is missed to be added in the dockerfile. Therefore its not locating it while you are running through docker. I have made this change and pushed a new version. can you please pull the latest version and run it
hm, no, that didn't help. The error is still the same
Docker pruned and built again. It runs fine
I get this error during execution:
2023-02-06 10:04:59 Error in file(filename, "r", encoding = encoding) : 2023-02-06 10:04:59 cannot open the connection 2023-02-06 10:04:59 Calls: source -> withVisible -> eval -> eval -> source -> file 2023-02-06 10:04:59 In addition: Warning messages: 2023-02-06 10:04:59 1: In readLines(con, warn = readLines.warn) : 2023-02-06 10:04:59 incomplete final line found on '/config.yml' 2023-02-06 10:04:59 2: In file(filename, "r", encoding = encoding) : 2023-02-06 10:04:59 cannot open file '//customRF.R': No such file or directory 2023-02-06 10:04:59 Execution halted