You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will reply in case anyone else has this issue. This occurs only when trying to run the source code. If You run the script using command line, this issue will not appear.
It happens due to arguments provided in the command line not being available while running the source code, to fix it and run the script you can include input files like this(lines 23-25):
infile<-c("data.rds") ########## input file name
outfile<-c("age.pred") ########## output file name
agefile<-c("data.age") ########## file with individual ID and age
Hi, Dear Qian,
When I run source("pred.R"), I received this error message:
Error in if (args[i] == "-i") { : missing value where TRUE/FALSE needed
Do you know what this means and how can I solve it? Thank you!
Best wishes,
Shi
The text was updated successfully, but these errors were encountered: