
###____________________ IMPORTS ___________________________________

## Base R - packages ----------------------
importFrom("graphics", abline, legend, matplot, plot)
importFrom("methods", as, is, new,
	   cbind2, rbind2)
importFrom("stats", approx, confint, integrate, median, nlminb,
	   optim, optimHess, pchisq, qchisq, qnorm, rnorm,
	   runif, sd, splinefun, uniroot, var)
importFrom("utils", as.relistable, relist,
	   head, tail)
## Windows specific imports
if(.Platform$OS.type == "windows"){
    importFrom("utils", shortPathName)
}
## TMB:::install.contrib
importFrom("utils", download.file, file_test, unzip)
## TMB:::.onLoad
importFrom("utils", packageVersion)

## Recommended R - packages ----------------------
importClassesFrom("Matrix")# all currently (FIXME) , corMatrix, dgCMatrix, dgTMatrix, dpoMatrix)
importMethodsFrom("Matrix", coerce, cov2cor, determinant, drop,
                  "%*%", crossprod,tcrossprod,
		  t, diag, chol2inv, solve, colSums,rowSums)
importFrom("Matrix",
	   Cholesky, forceSymmetric, invPerm,
	   tril, triu, Diagonal)

###____________________ EXPORTS ___________________________________

export(benchmark,
       checkConsistency,
       compile,
       config,
       dynlib,
       FreeADFun,
       gdbsource,
       MakeADFun,
       newton,
       newtonOption,
       normalize,
       oneStepPredict,
       openmp,
       plot.parallelBenchmark,
       plot.tmbprofile,
       precompile,
       print.backtrace,
       print.checkConsistency,
       print.sdreport,
       Rinterface,
       runExample,
       runSymbolicAnalysis,
       sdreport,
       SR,
       summary.checkConsistency,
       summary.sdreport,
       template,
       tmbprofile,
       tmbroot)

## Methods :
S3method(confint, tmbprofile)
S3method(plot, tmbprofile)

S3method(print, sdreport)
S3method(summary, sdreport)
S3method(as.list, sdreport)

S3method(plot, parallelBenchmark)

S3method(print, backtrace)

S3method(print, checkConsistency)
S3method(summary, checkConsistency)
