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
Function read_PSL2R() accepts either a single .psl file as input or a path to a directory where .psl files are searched. Note that we enter the second case also if a file with an extension other than .psl is given:
file<- list.files(file, pattern=".psl$", full.names=TRUE, ignore.case=TRUE)
if (!all(file.exists(file)))
stop(...)
If a directory path is given and if no .psl files are found, list.files() returns character(0), and in turn !all(file.exists(file)) is FALSE and the function doesn't stop!
The same failure occurs if the directory doesn't exist in the first place:
Function
read_PSL2R()
accepts either a single.psl
file as input or a path to a directory where.psl
files are searched. Note that we enter the second case also if a file with an extension other than.psl
is given:If a directory path is given and if no .psl files are found,
list.files()
returnscharacter(0)
, and in turn!all(file.exists(file))
isFALSE
and the function doesn't stop!The same failure occurs if the directory doesn't exist in the first place:
The text was updated successfully, but these errors were encountered: