Error in file(con, "wb") : cannot open the connection

i want download elevation data but get this error.
what is this and how can resolve it?
Error in file(con, "wb") : cannot open the connection
In addition: Warning message:
In file(con, "wb") :

Error in file(con, "wb") : cannot open the connection
3.
file(con, "wb")
2.
writeBin(img_bin, file)
1.
get_usgs_elevation_data(bbox, size = image_size$size, file = elev_file,
sr_bbox = 4326, sr_image = 4326)


the code example:

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