Running ‘build.matches.test.R’
  Running ‘classes.test.R’
  Running ‘df.category.mean.test.R’
  Running ‘matchit.test.R’
  Running ‘nearest.multiple.test.R’
  Running ‘next.treatment.test.R’
  Running ‘portfolio.Arith.test.R’
  Running ‘portfolio.all.equal.test.R’
  Running ‘portfolio.calcShares.test.R’
  Running ‘portfolio.calcWeights.test.R’
  Running ‘portfolio.create.test.R’
  Running ‘portfolio.expandData.test.R’
  Running ‘portfolio.expose.test.R’
  Running ‘portfolio.matching.test.R’
  Running ‘portfolio.mvLong.test.R’
  Running ‘portfolio.mvShort.test.R’
  Running ‘portfolio.performance.test.R’
  Running ‘portfolio.updatePrices.test.R’
  Running ‘portfolioBasic.Arith.test.R’
  Running ‘portfolioBasic.all.equal.test.R’
  Running ‘portfolioBasic.contribution.test.R’
  Running ‘portfolioBasic.exposure.test.R’
  Running ‘portfolioBasic.performance.test.R’
  Running ‘portfolioBasic.test.R’
  Running ‘prob.matrix.test.R’
  Running ‘sample.matrix.test.R’
  Running ‘tradelist.calcActual.test.R’
  Running ‘tradelist.calcCandidates.test.R’
  Running ‘tradelist.calcChunks.test.R’
  Running ‘tradelist.calcChunksActual.test.R’
  Running ‘tradelist.calcRanks.test.R’
  Running ‘tradelist.calcSwaps.test.R’
  Running ‘tradelist.calcSwapsActual.test.R’
  Running ‘trades.test.R’
  Running ‘weight.test.R’
Running the tests in ‘tests/tradelist.calcSwaps.test.R’ failed.
Complete output:
  > ################################################################################
  > ##
  > ## $Id: tradelist.calcSwaps.test.R 346 2006-10-01 05:08:55Z enos $
  > ##
  > ## Tests "calcSwaps" method of "tradelist" class
  > ##
  > ################################################################################
  > 
  > library(portfolio)
  Loading required package: grid
  Loading required package: lattice
  > 
  > load("tradelist.calcSwaps.test.RData")
  > 
  > ## save(tl, tl.1, tl.2, tl.3, truth.swaps, truth.row.names, truth.row.names.2, truth.row.names.3, file = "tradelist.calcSwaps.test.RData", compress = TRUE)
  > 
  > tl  <- portfolio:::calcSwaps(tl)
  > 
  > stopifnot(all.equal(tl@swaps, truth.swaps))
  Error: tl@swaps and truth.swaps are not equal:
    Component "Row.names": Attributes: < target is NULL, current is list >
    Component "Row.names": target is character, current is AsIs
  Execution halted