R/KFtemplates.R

Defines functions KFtemplates

Documented in KFtemplates

##' KFtemplates function
##'
##' A function to print KFfit and KFparest templates to the console. See vignette("miscFuncs")
##' for more information
##'
##' @return Tust prints to the console. This can be copied and pasted into a text editor for further manipulation. 
##' @export

KFtemplates <- function(){
    #path <- file.path(find.package("miscFuncs", lib.loc=NULL, quiet = TRUE),"inst")
    fitpath <- system.file("templates/KFfit.R", package="miscFuncs") #file.path(path,"KFfit.R")
    parpath <- system.file("templates/KFparest.R", package="miscFuncs") #file.path(path,"KFparest.R")
    
    l <- readLines(fitpath)
    for(i in 1:length(l)){
        cat(l[[i]],"\n")
    }
    l <- readLines(parpath)
    for(i in 1:length(l)){
        cat(l[[i]],"\n")
    }
    cat("\n\n\n\n")
}

Try the miscFuncs package in your browser

Any scripts or data that you put into this service are public.

miscFuncs documentation built on Nov. 2, 2023, 5:21 p.m.