'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘shinydashboard’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Running examples in ‘sstModel-Ex.R’ failed
The error most likely occurred in:

> ### Name: portfolio
> ### Title: Constructing a SST Portfolio
> ### Aliases: portfolio
> 
> ### ** Examples
> 
> # Creating a portofolio.
> asset1 <- asset("equity", "USD", 1000)
> asset2 <- asset("hedge fund", "EUR", 2000)
> life1 <- life(name        = c("pandemy", "longetivity", "storno"),
+               currency    = c("CHF", "CHF", "CHF"),
+               sensitivity = c(-100, -150, -130))
> health1 <- health(name        = c("pandemy", "longetivity", "storno"),
+                   currency    = c("CHF", "CHF", "CHF"),
+                   sensitivity = c(100, 150, 130))
> participation1 <- participation("CHF", 1000)
> # valid portfolio parameters
>    valid.param <- list(mvm = list(mvm.life = 2, mvm.health = 4, mvm.nonlife = 3),
+                        rtkr = 0,
+                        rtkg = 0,
+                        correction.term = 2,
+                        credit.risk = 3,
+                        expected.insurance.result =  10^6,
+                        expected.financial.result =  10^5)
> pf <- portfolio(market.items   = list(asset1, asset2),
+                 participation.item  = participation1,
+                 life.item       = life1,
+                 health.item     = health1,
+                 base.currency  = "CHF",
+                 portfolio.parameters = valid.param)
Error in names(mvm) %in% c("mvm.life", "mvm.health", "mvm.nonlife") ||  : 
  'length = 3' in coercion to 'logical(1)'
Calls: portfolio -> with -> with.default -> eval -> eval
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘packageAPI.Rmd’ using rmarkdown
Quitting from lines 580-596 (packageAPI.Rmd) 
Error: processing vignette 'packageAPI.Rmd' failed with diagnostics:
'length = 3' in coercion to 'logical(1)'
--- failed re-building ‘packageAPI.Rmd’

SUMMARY: processing the following file failed:
  ‘packageAPI.Rmd’

Error: Vignette re-building failed.
Execution halted
Namespace in Imports field not imported from: ‘shinydashboard’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Running examples in ‘sstModel-Ex.R’ failed
The error most likely occurred in:

> ### Name: portfolio
> ### Title: Constructing a SST Portfolio
> ### Aliases: portfolio
> 
> ### ** Examples
> 
> # Creating a portofolio.
> asset1 <- asset("equity", "USD", 1000)
> asset2 <- asset("hedge fund", "EUR", 2000)
> life1 <- life(name        = c("pandemy", "longetivity", "storno"),
+               currency    = c("CHF", "CHF", "CHF"),
+               sensitivity = c(-100, -150, -130))
> health1 <- health(name        = c("pandemy", "longetivity", "storno"),
+                   currency    = c("CHF", "CHF", "CHF"),
+                   sensitivity = c(100, 150, 130))
> participation1 <- participation("CHF", 1000)
> # valid portfolio parameters
>    valid.param <- list(mvm = list(mvm.life = 2, mvm.health = 4, mvm.nonlife = 3),
+                        rtkr = 0,
+                        rtkg = 0,
+                        correction.term = 2,
+                        credit.risk = 3,
+                        expected.insurance.result =  10^6,
+                        expected.financial.result =  10^5)
> pf <- portfolio(market.items   = list(asset1, asset2),
+                 participation.item  = participation1,
+                 life.item       = life1,
+                 health.item     = health1,
+                 base.currency  = "CHF",
+                 portfolio.parameters = valid.param)
Error in names(mvm) %in% c("mvm.life", "mvm.health", "mvm.nonlife") ||  : 
  'length = 3' in coercion to 'logical(1)'
Calls: portfolio -> with -> with.default -> eval -> eval
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘packageAPI.Rmd’ using rmarkdown
Quitting from lines 580-596 (packageAPI.Rmd) 
Error: processing vignette 'packageAPI.Rmd' failed with diagnostics:
'length = 3' in coercion to 'logical(1)'
--- failed re-building ‘packageAPI.Rmd’

SUMMARY: processing the following file failed:
  ‘packageAPI.Rmd’

Error: Vignette re-building failed.
Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘shinydashboard’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘shinydashboard’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘shinydashboard’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘shinydashboard’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory