Quality Control Charts template - some issues

Hello all, 

I'm new to spotfire and looking forward to work with it a lot and join this community. 

For my first project I'm tasked to set up an SPC dashboard. I'm trying to utialize the template "Quality Control Charts template" https://community.tibco.com/modules/quality-control-charts-template-tibc...

I've done the following. Realy hope one of you can help me :)

1. connect my own database

2. set up the data

3. Installed qcc using TERR

Errors im getting:

1) In the data function propperties-- it says path not found

2)When computing the limits 

Could not execute function call.

TIBCO Enterprise Runtime for R returned an error: 'Error in library("lubridate") : there is no package called 'lubridate'

    eval(expr, envir, enclos)

    eval(expr, envir, enclos)


    withCallingHandlers(expr, message = function(e)


    stop("there is no package called '", package, "'")'.

   at Spotfire.Dxp.Data.DataFunctions.Executors.LocalFunctionClient.OnExecuting()

   at Spotfire.Dxp.Data.DataFunctions.Executors.AbstractFunctionClient.<RunFunction>d__31.MoveNext()

   at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.<ExecuteFunction>d__12.MoveNext()

   at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d__3.MoveNext()




(2) Answers