1#' Right strip a string. 2#' 3#' Return a copy of the string with trailing characters removed. 4#' 5#' The \code{chars} argument is a string specifying the set of characters to be removed. 6#' If omitted, the \code{chars} argument defaults to removing whitespace. The \code{chars} argument 7#' is not a suffix; rather, all combinations of its values are stripped. 8#' 9#' @param str A character vector. 10#' @param chars A character string. 11#' 12#' @return A character vector. 13#' 14#' @references \url{https://docs.python.org/3/library/stdtypes.html#str.rstrip} 15#' 16#' @seealso \code{\link{pystr_lstrip}} 17#' 18#' @examples 19#' pystr_rstrip(" spacious ") 20#' pystr_rstrip("www.example.com", ".omc") 21#' 22#' @export 23pystr_rstrip <- function(str, chars = " ") { 24 return( pystr_rstrip_(str,chars) ) 25} 26