useDynLib(terra, .registration=TRUE)
import(methods, Rcpp)
importFrom(stats, na.omit)

exportMethods("[", "[[", "!", "%in%", activeCat, "activeCat<-", "add<-", adjacent, aggregate, align, animate, app, area, Arith, as.contour, as.lines, as.points, as.polygons, as.raster, as.array, as.data.frame, as.factor, as.list, as.logical, as.matrix, as.numeric, atan2, autocor, barplot, bbox, boundaries, boxplot, buffer, cartogram, cats, catalyze, clamp, classify, cellSize, cells, cellFromXY, cellFromRowCol, cellFromRowColCombine, centroids, click, colFromX, colFromCell, coltab, "coltab<-", Compare, compareGeom, contour, convHull, crds, copy, cover, crop, crosstab, crs, "crs<-", datatype, delauny, density, depth, "depth<-", describe, diff, disaggregate, distance, dots, draw, erase, extend, ext, "ext<-", extract, expanse, fillHoles, flip, focal, focalValues, freq, geom, geomtype, global, hasValues, hist, head, ifel, init, image, inext, inMemory, inset, interpolate, intersect, is.lonlat, 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, minRect, modal, mosaic, na.omit, NAflag, "NAflag<-", nearby, nearest, ncell, ncol, "ncol<-", nlyr, "nlyr<-", nrow, "nrow<-", nsrc, origin, "origin<-", pairs, patches, perim, persp, plot, plotRGB, RGB, "RGB<-", RGB2col, polys, points, predict, project, quantile, rapp, rast, rasterize, readStart, readStop, readValues, rectify, relate, res, "res<-", resample, rescale, rev, rotate, rowFromY, rowColFromCell, rowFromCell, sapp, scale, sds, src, sel, selectRange, setMinMax, setValues, segregate, setCats, size, sharedPaths, shift, sources, spatSample, split, spin, stdev, stretch, subst, summary, Summary, subset, svc, symdif, t, tail, tapp, terrain, tighten, makeTiles, time, "time<-", text, trans, trim, units, union, "units<-", unique, vect, values, "values<-", voronoi, vrt, weighted.mean, which.lyr, which.min, which.max, which.lyr, window, "window<-", writeCDF, writeRaster, wrap, writeStart, writeStop, writeVector, writeValues, xmin, xmax, "xmin<-", "xmax<-", xres, xFromCol, xyFromCell, xFromCell, ymin, ymax, "ymin<-", "ymax<-", yres, yFromCell, yFromRow, zonal, zoom, cbind2)

S3method(cbind, SpatVector)
S3method(rbind, SpatVector)

export(focalMat, gdal, sbar, terraOptions, tmpFiles, mem_info, free_RAM, shade)

