Manual,

If you find a bug, please always include your sessionInfo() and of
traceback() just after the error occurs.
This works for me, and I have no idea why it fails for you:

library(raster)
r <- raster(ncol=36,nrow=18)
r[] <- NA
r[500] <- 1
b <- buffer(r, width=5000000)

There is a workaround: use 'distance' followed by 'reclass'

Robert


On Fri, Mar 9, 2012 at 2:48 PM, Manuel Spínola <mspinola10@gmail.com> wrote:

> Dear list members,
>
>
> I am trying to recreate the example of the function buffer in the
> raster package but I got the following error:
>
>
> > library(raster)> r <- raster(ncol=36,nrow=18)> r[] <- NA> r[500] <- 1> b
> <- buffer(r, width=5000000)Error en buffer(r, width = 5e+06) :
>  el argumento(s) no fue utilizado(s) (width = 5e+06)
>
>
> Best,
>
> Manuel
>
> --
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola@una.ac.cr
> mspinola10@gmail.com
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río <
> https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
>        [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

	[[alternative HTML version deleted]]

