format(Sys.Date(),"%m") returns "07", but I'd like it to return "7" while still returning two characters when needed. adding width=8 to the argument list doesn't help, nor does anything else I've tried.
My end goal is to make the stock quote reading function on p. 182 of R in a Nutshell work properly.