#' Exchange rate for a certain amount in the latest day
#' @param usd the amount in dollars
#' @return number (the amount in EUR)
#' @export
#' @importFrom httr GET content
#' @importFrom logger log_info log_debug log_trace
#' @examples
#' convert_usd_to_eur(54)
convert_usd_to_eur <- function(usd){
eurusd() * usd
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.