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
zero<- tempfile(pattern="zero", fileext=".binx")
write(raw(), zero)
## this is fine
read_BIN2R(zero, verbose=FALSE)
# Error: [read_BIN2R()] BIN/BINX format version (0a) is not supported or file is broken. Supported# version numbers are: 03, 04, 05, 06, 07, 08## this crashes
read_BIN2R(zero, verbose=FALSE, forced.VersionNumber=8)
# Error in if (temp.RECTYPE != 0 & temp.RECTYPE != 1 & temp.RECTYPE != 128) { : # argument is of length zero
When we force the version number, the code keeps reading the input file for the next few fields, but it never checks whether they are valid, so it eventually crashes.
The text was updated successfully, but these errors were encountered:
See this example:
When we force the version number, the code keeps reading the input file for the next few fields, but it never checks whether they are valid, so it eventually crashes.
The text was updated successfully, but these errors were encountered: