importFrom("grDevices", "col2rgb", "contourLines", "gray", "grey",
"heat.colors", "hsv", "rgb", "rgb2hsv", "terrain.colors",
importFrom("graphics", "arrows", "image", "legend", "lines", "locator",

importFrom("graphics", "abline", "plot", "axis", "barplot", "dotchart", "par", "text")

importFrom("raster", brick, stack, mask, extract, nlayers, raster, distance, rasterize, writeRaster, compareRaster, compareCRS, extent, crs)
importFrom("sf", st_is, st_crs, st_as_sf, st_combine)

importFrom("raster", brick, stack, mask, extract, nlayers, raster, distance, rasterize, writeRaster, compareRaster)

importFrom("graphics", "abline", "arrows", "axis", "box", "boxplot", "bxp", "grid",
"quantile", "qnorm", "runif", "sd", "supsmu", "var", "wilcox.test")

#exportMethods("show", "print", "plot", "summary", "identify")
#export everything except for functions beginning with .

# Exports everything from "extern C {}" brackets

importFrom("graphics", "arrows", "axis", "par", "points")
importFrom("stats", "median", "rchisq", "rnorm", "runif")

import(methods, grDevices, graphics, grid, ggplot2, lattice)

"dist", "dnorm", "dpois", "hclust", "lm", "pchisq",
"predict", "rnorm", "runif", "ts", "uniroot", "window")
"capture.output", "data", "head", "read.csv", "read.table")
"barchart", "canonical.theme", "cloud", "dotplot", "panel.abline",
"aes", "coord_polar", "coord_trans", "facet_wrap", "geom_abline",
"geom_bar", "geom_hline", "geom_line", "geom_point", "geom_smooth",

"predict", "rnorm", "runif", "time", "ts", "uniroot", "window")
"theme", "theme_bw", "element_blank", "element_text", "labs",
# Do not explicitly import readPicture() or grid.picture()
# because they conflict between 'grImport' and 'grImport2'

importFrom("grDevices", "getGraphicsEvent", "graphics.off", "dev.off", "devAskNewPage")

export("AddEpisodes", "AnalyzeHRbyEpisodes", "AvgIntegralCorrelation", "BuildNIHR", "BuildTakensVector", "CalculateApEn", "CalculateFracDim", "CalculatePowerBand", "CalculateRfromCorrelation", "CalculateSpectrogram", "CreateFreqAnalysis", "CreateHRVData", "CreateNonLinearAnalysis", "CreateTimeAnalysis", "EditNIHR", "FilterNIHR", "GenerateEpisodes", "IntegralCorrelation", "InterpolateNIHR", "LoadApneaWFDB", "LoadBeatAscii", "LoadBeatEDFPlus", "LoadBeatPolar", "LoadBeat", "LoadBeatRR", "LoadBeatSuunto", "LoadBeatWFDB", "LoadEpisodesAscii", "LoadHeaderWFDB", "PlotHR", "PlotNIHR", "PlotPowerBand", "PlotSpectrogram", "ReadFromFile", "SetVerbose", "SplitHRbyEpisodes", "SplitPowerBandByEpisodes", "WriteToFile"