I am simply trying to limit the decimals for my output. But the digits argument is giving me trouble. 
My code
#' @export
print.xts <- function(x) {
  print(x, digits = 5)
}
Gives the error when printing an xts object
Error in print.xts(x, digits = 5) : unused argument (digits = 5) 
What can be the issue?
 
     
    