Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
# Error in substring(paste("0", hh, sep = ""), nchar(paste(hh))) :
# invalid substring arguments
The issue is very likely in format.ITime. I think the behaviour should be similar to as.Date(), as.IDate() and as.POSIXct().
The text was updated successfully, but these errors were encountered:
x = as.ITime(character(0))
so it's print(x) causing the issue (more specifically, format.ITime, like you suggested).
#stylized from format.ITime
x = structure(integer(0), class = "ITime")
hh = x %/% 3600L
ss = paste("0", hh, sep = "")
nn = nchar(paste(hh))
#Error caused by:
We can just replace the substring bit with a sprintf call, I think... PRing now
Sorry, something went wrong.
Merge pull request #2035 from MichaelChirico/formatITime
Closes #2032 -- error in format.ITime edge case (0-length input)
Merge pull request #2174 from MichaelChirico/ITime_print_NA
Closes #2171 -- edge case missed in fix to #2032
No branches or pull requests