# -- ffbit.R - functions related to package bit --
# -- fileutil.R - filename utitlities --
# --- fffactor.R - utilities for factors ---
# -- ffdf.R - dataframe class on top of ff --
# -- ffcsv.R - reading/writing csv into/from ff --
# -- fileresize.R (by Daniel Adler, ISC license) --
# -- fffactor.R - utilities for factors ---

# -- ffsave.R - saving / loading many ff objects WITH ff files --

# wish of CRAN maintainers: export another time here (now maintained and exported in bit)

importFrom(utils, memory.limit, packageDescription, read.fwf, read.table, str, write.table)

useDynLib(ff, .registration = TRUE, .fixes = "C_")

importFrom(utils, packageDescription, read.fwf, read.table, str, write.table)
# 'clone' and 'clone.default' are defined in package 'bit'
# ff wants to add methods 'clone.ff' and 'clone.ffdf'
# however but then clone(ff) dispatches to clone.default
# probably because 'clone' in bit does not find 'clone.ff' in ff
# hence it seems to be necessary to redefine 'clone' and 'clone.default' in ff
# hence it seems to be necessary to export 'clone' in ff again
# hence it seems to be necessary to export 'clone.default' and/or register S3method(clone, default) in ff
# for now I only S3method(clone, default) in ff

useDynLib(ffbase, .registration = TRUE, .fixes = "C_")

export( fftw, fftw2d, fftw3d, fftw_c2c, fftw_c2c_2d, fftw_c2c_3d, fftw_c2c_xd, fftw_c2r, fftw_r2c, fftw_r2c_2d, fftw_r2c_3d, mvfftw, mvfftw_c2c, mvfftw_c2r, mvfftw_r2c)

export( fftw, fftw2d, fftw_c2c, fftw_c2c_2d, fftw_c2r, fftw_r2c, fftw_r2c_2d, mvfftw, mvfftw_c2c, mvfftw_c2r, mvfftw_r2c)

guiTextEntry, guiSlider, guiFilename, guiOption, guiList, guiEdit, helpButton,

importFrom("stats", "as.dist", "cor", "dist", "hclust", "median","na.omit", "sd")

importFrom(graphics, abline, plot, hist, lines, par)
importFrom(stats, integrate, runif,optim, nlm,cor, var, qnorm, printCoefmat)
importFrom(parallel, parLapply, parSapply, makeCluster, detectCores, stopCluster)

importFrom("grDevices", "chull", "col2rgb", "colors", "palette", "rgb",
"contour", "hist", "lines", "locator", "matlines",
"matplot", "mtext", "pairs", "par", "persp", "plot",
"points", "polygon", "rect", "segments", "text", "title")
importFrom("stats", "D", "approx", "coef", "cor", "dist", "fft", "mad",
"median", "optim", "optimize", "predict", "quantile",