I want to download a png file from a website and the code worked for me before. However, now it keeps showing an error as follows. Can you please help me with this? Thanks heaps.
url1 ="https://niwa.co.nz/static/climate/smd_anom.png?1234"
filename1 <-paste("NiwaSoil_", format(Sys.Date()-1 , "%Y_%m_%d"), ".png",sep="")
download.file(url1,filename1, mode = 'wb'
