Running examples in ‘crp.CSFP-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: crp.CSFP-class
> ### Title: Class '"crp.CSFP"'
> ### Aliases: crp.CSFP-class
> ### Keywords: classes
> 
> ### ** Examples
> 
> MyModel=init(path.in=system.file("data",package="crp.CSFP"),loss.unit=1e6,
+ calc.rc=TRUE)
    CreditRisk+ portfolio model 
    Copyright (C) 2011  Dr. Matthias Fischer, Kevin Jakob & Stefan Kolb

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 2 as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA  02110-1301, USA.
                        
    Please note that this package will not be updated anymore.
    Instead we recommend to use the GCPM package which includes
    the functionality of this package as well as more flexible
    and more powerfull extensions.

> 
> # or pass portfolio directly and use random sector variances
> Path=system.file("data",package="crp.CSFP")
> portfolio=read.csv(paste(Path,"/portfolio.csv",sep=""))
> rating.scale=read.csv(paste(Path,"/rating_pd.csv",sep=""))
> sec.var=data.frame(Var=runif(3,0,2))
> 
> MyModel=init(portfolio=portfolio,rating.scale=rating.scale,sec.var=sec.var,
+ loss.unit=1e6,calc.rc=TRUE)
    CreditRisk+ portfolio model 
    Copyright (C) 2011  Dr. Matthias Fischer, Kevin Jakob & Stefan Kolb

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 2 as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA  02110-1301, USA.
                        
    Please note that this package will not be updated anymore.
    Instead we recommend to use the GCPM package which includes
    the functionality of this package as well as more flexible
    and more powerfull extensions.

> 
> # execute portfolio calculation
> MyModel=crp.CSFP(MyModel)
Importing risk information (Rating, PD, SD)....
Importing portfolio data....
Error in FUN(newX[, i], ...) : invalid 'type' (character) of argument
Calls: crp.CSFP ... crp.CSFP -> crp.CSFP -> read -> read -> cbind -> apply
Execution halted