I've read a similar post but couldn't apply the solution. Namely, I have a polygon of France's boundary and want to buffer it as follows:
fra_bound <- readOGR(dsn = "data/FRA_adm", layer = "FRA_adm0") fra_buf <- gBuffer(fra_bound, width = 1000, quadsegs = 10)
The problem is this executes too long and throws:
Error in gBuffer(fra_bound, width = 1000, quadsegs = 10) : std::bad_alloc
The projection of this shape is:
 "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
What am I doing wrong? Maybe I should use another way but I need it in R.