Download records for amphibians for a country or region using the spocc package

Dear list members,

How I download all the georeferenced records for amphibians for a specific region or country from gbif using the spooc package?

I tried this but I got an error.

d ← occ_download(pred_in(“taxonKey”, 131),
pred(“hasCoordinate”, TRUE),
pred(“hasGeospatialIssue”, FALSE),
format = “SIMPLE_CSV”,
user = “manuel_spinola”,
pwd = “xxxxxxxxx”,
email = “”)

d ← occ_download_get(‘0204536-220831081235567’) %>%

Error: vector memory exhausted (limit reached?)