Nothing
################################################################################
##
## $Id: simTrades.class.test.R 344 2006-10-01 05:06:05Z enos $
##
## Tests the validity function for the simTrades class
##
################################################################################
library(portfolioSim)
## save(test.trades, bad.trades, file = "simTrades.class.test.RData", compress = TRUE)
load("simTrades.class.test.RData")
result <- new("simTrades", period = as.Date("1995-01-01"), trades = test.trades)
stopifnot(
validObject(result)
)
trial.0 <- try(
new("simTrades", period = as.Date("1995-01-01"), trades = bad.trades),
silent = TRUE
)
stopifnot(
inherits(trial.0, "try-error"),
as.logical(grep("No NAs allowed in trades", trial.0))
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.