useDynLib(astrochron, .registration = TRUE)

importFrom("IDPmisc", "rfbaseline")
importFrom("multitaper", "spec.mtm", "dpss")
importFrom("fields", "image.plot", "tim.colors")       
importFrom("viridisLite", "viridis")
importFrom("grDevices", "boxplot.stats", "dev.new", "dev.off", "tiff", "jpeg", "pdf", "png", "bmp")
importFrom("grDevices", "xy.coords", "gray", "rainbow", "colors", "colorRampPalette", "gray.colors", "hcl.colors")
importFrom("graphics", "abline", "axis", "boxplot", "contour", "grid", "hist", "identify", "image", "layout", "lines", "locator", "mtext", "par", "plot", "points", "polygon", "rect", "segments", "text")
importFrom("stats", "approx", "approxfun", "ar", "arima.sim", "as.ts", "cor", "density", "dnorm", "fft", "ksmooth", "lm", "loess", "median", "nls", "optim", "pchisq", "pf", "pnorm")
importFrom("stats", "predict", "na.omit", "qchisq", "qqline", "qqnorm", "qt", "rnorm", "runif", "runmed", "sd", "spec.ar", "var", "p.adjust")
importFrom("utils", "download.file", "head", "read.table", "write.table", "setTxtProgressBar", "txtProgressBar")
importFrom("doParallel", "registerDoParallel")
importFrom("parallel", "makeCluster", "stopCluster")
importFrom("iterators", "icount")
importFrom("foreach", "foreach", "%dopar%")
importFrom("palinsol", "la04", "calins", "Insol", "Insol_l1l2", "thrins", "Milankovitch")
importFrom("grDevices", "colorRamp", "rgb")
importFrom("stats", "promax", "varimax")

export(accum,
       anchorTime,
       ar1,
       ar1etp,
       arcsinT,
       armaGen,
       asm,
       autoPlot,
       bandpass,
       bergerPeriods,
       bicoherence,
       bioturb,
       calcPeriods,
       cb,
       conv_fft, 
       clipIt,
       confAdjust,
       constantSedrate,
       cosTaper,
       cycles,
       deconv,
       delPts,
       demean,
       detrend,
       diffAccum,
       divTrend,
       dpssTaper,
       eAsm,
       eAsmTrack,
       eha,
       eTimeOpt,
       eTimeOptTrack,
       etp,
       extract,
       flip,
       freq2sedrate,
       gausTaper,
       getColor,
       getData,
       getLaskar,
       hannTaper,
       headn,
       hilbert,
       idPts,
       imbrie,
       impulseResponse,
       insoSeries,
       insoDiff,
       insoMap,
       integratePower,
       iso,
       linage,
       linterp,
       linterpLH13,
       logT,
       lowpass,
       lowspec,
       makeNoise,
       mtm,
       mtmAR,
       mtmML96,
       mtmPL,
       multiTest,
       mwCor,
       mwMinMax,
       mwStats,
       mwStatsGrid,
       mwin,
       mwinGrid,
       noLow,
       noKernel,
       pad,
       peak,
       periodogram,
       pl,
       plotEha,
       plS,
       prewhiteAR,
       prewhiteAR1,
       pwrLaw,
       pwrLawFit,
       rankSeries,
       read,
       readMatrix,
       repl0,
       replEps,
       resample,
       rmNA,
       s,
       sedRamp,
       sedrate2time,
       slideCor,
       sortNave,
       stepHeat,
       stratPCA,
       strats,
       surrogateCor,
       surrogates,
       synthStrat,
       taner,
       tanerFC,
       testBackground,
       testPrecession,
       testTilt,
       timeOpt,
       timeOptMCMC,
       timeOptPlot,
       timeOptSim,
       timeOptSimPwrLaw,
       timeOptTemplate,
       timeOptTemplatePlot,
       timeOptTemplateSim,
       tones,
       traceFreq,
       tracePeak,
       trackFreq,
       trackPeak,
       trim,
       trimAT,
       trough,
       tune,
       unbioturb,
       writeCSV,
       writeT,
       wtMean,
       xplot,
       zoomIn
       ) 