Use as.character() rather than format to preserve all digits R uses.