useDynLib(terra, .registration=TRUE)
import(methods, Rcpp, raster)

exportMethods("[", "[[", "==", "!=", "!", "%in%", "add<-", adjacent, aggregate, align, animate, app, area, Arith, arith, as.contour, as.lines, as.points, as.polygons, as.array, as.data.frame, as.factor, as.list, as.logical, as.matrix, atan2, autocor, barplot, bbox, boundaries, boxplot, buffer, cartogram, cats, "cats<-", clamp, classify, cells, cellFromXY, cellFromRowCol, cellFromRowColCombine, centroids, click, colFromX, colFromCell, collapse, coltab, "coltab<-", Compare, compareGeom, contour, convexhull, coords, copy, cover, crop, crosstab, crs, "crs<-", datatype, delauny, density, depth, "depth<-", describe, diff, disaggregate, distance, dots, draw, erase, expand, extend, ext, "ext<-", extract, fill, flip, focal, freq, geom, geomtype, global, hasValues, hist, head, ifel, init, inset, interpolate, intersect, image, is.lonlat, isLonLat, isTRUE, isFALSE, is.factor, is.lines, is.points, is.polygons, is.valid, lapp, levels, linearUnits, lines, Logic, varnames, "varnames<-", longnames, "longnames<-", mask, match, Math, Math2, mean, median, merge, minmax, modal, mosaic, NAflag, "NAflag<-", near, ncell, ncol, "ncol<-", nlyr, "nlyr<-", nrow, "nrow<-", nsrc, origin, pack, pairs, perimeter, persp, plot, plotRGB, polys, points, predict, project, quantile, rapp, rast, rasterize, rats, "rats<-", readStart, readStop, readValues, rectify, relate, res, "res<-", resample, rescale, rev, rotate, rowFromY, rowColFromCell, rowFromCell, scale, sds, select, selectRange, setMinMax, setValues, separate, size, shift, sources, spatSample, spin, stdev, stretch, summary, Summary, subset, svc, symdif, t, tail, tapp, terrain, time, "time<-", text, transpose, trim, units, union, "units<-", unique, vect, values, "values<-", voronoi, which.min, which.max, window, "window<-", writeCDF, writeRaster, writeStart, writeStop, writeVector, writeValues, xmin, xmax, "xmin<-", "xmax<-", xres, xFromCol, xyFromCell, xFromCell, ymin, ymax, "ymin<-", "ymax<-", yres, yFromCell, yFromRow, zonal, zoom)

export(focalMat, gdal, gdal_version, sbar, terraOptions, tmpFiles, desc)

