How to create a custom URL in R

How can I create a custom URL using R ?

For ex :
Date = 2020-08-08

URL = ...&date = Date

I tried to add date as variable in the URl , but it didn't work .

How can I accomplish this ?

Thank you so much

Does this help?

Date = 2020-08-08
Date = as.character(Date)

URL <- paste("...&date",Date)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

start_date = as.character("2020-04-01")
end_date = as.character("2020-04-02")

third_url <- "https://fred.stlouisfed.org/graph/fredgraph.xls?bgcolor=%23e1e9f0&chart_type=line&drp=0&fo=open%20sans&graph_bgcolor=%23ffffff&height=450&mode=fred&recession_bars=on&txtcolor=%23444444&ts=12&tts=12&width=1168&nt=0&thu=0&trc=0&show_legend=yes&show_axis_titles=yes&show_tooltip=yes&id=DCOILBRENTEU&scale=left?cosd="+start_date+"&coed="+end_date+"&line_color=%234572a7&link_values=false&line_style=solid&mark_type=none&mw=3&lw=2&ost=-99999&oet=99999&mma=0&fml=a&fq=Daily&fam=avg&fgst=lin&fgsnd=2009-06-01&line_index=1&transformation=lin&vintage_date=2020-05-04&revision_date=2020-05-04&nd=1987-05-20"

Here is my code . I want to add start_date after cosd and end_date after coed