* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/PerformanceAnalytics.Rcheck’ * using R Under development (unstable) (2024-03-15 r86142) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-13 (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘PerformanceAnalytics/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘PerformanceAnalytics’ version ‘2.0.4’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘PerformanceAnalytics’ can be installed ... [38s/38s] OK * used C compiler: ‘gcc-13 (GCC) 13.2.0’ * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [61s/62s] OK * checking Rd files ... NOTE checkRd: (-1) CAPM.RiskPremium.Rd:67: Escaped LaTeX specials: \& checkRd: (-1) Return.portfolio.Rd:109: Lost braces in \itemize; meant \describe ? checkRd: (-1) Return.portfolio.Rd:110-113: Lost braces in \itemize; meant \describe ? checkRd: (-1) Return.portfolio.Rd:114-118: Lost braces in \itemize; meant \describe ? checkRd: (-1) Return.portfolio.Rd:119-122: Lost braces in \itemize; meant \describe ? checkRd: (-1) Return.portfolio.Rd:123-129: Lost braces in \itemize; meant \describe ? checkRd: (-1) Return.portfolio.Rd:130-132: Lost braces in \itemize; meant \describe ? checkRd: (-1) chart.ECDF.Rd:31: Escaped LaTeX specials: \# checkRd: (-1) managers.Rd:8: Escaped LaTeX specials: \& * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking sizes of PDF files under ‘inst/doc’ ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘PerformanceAnalytics-Ex.R’ failed The error most likely occurred in: > ### Name: ETL > ### Title: calculates Expected Shortfall(ES) (or Conditional > ### Value-at-Risk(CVaR) for univariate and component, using a variety of > ### analytical methods. > ### Aliases: ETL ES CVaR > > ### ** Examples > > > if(!( Sys.info()[['sysname']]=="Windows") ){ + # if on Windows, cut and paste this example + + data(edhec) + + # first do normal ES calc + ES(edhec, p=.95, method="historical") + + # now use Gaussian + ES(edhec, p=.95, method="gaussian") + + # now use modified Cornish Fisher calc to take non-normal distribution into account + ES(edhec, p=.95, method="modified") + + # now use p=.99 + ES(edhec, p=.99) + # or the equivalent alpha=.01 + ES(edhec, p=.01) + + # now with outliers squished + ES(edhec, clean="boudt") + + # add Component ES for the equal weighted portfolio + ES(edhec, clean="boudt", portfolio_method="component") + + } # end CRAN Windows check Error in clean.boudt(na.omit(R[, column, drop = FALSE]), alpha = alpha, : requireNamespace("robustbase", quietly = TRUE) is not TRUE Calls: ES ... as.matrix -> Return.clean -> clean.boudt -> stopifnot Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘tinytest.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [154s/163s] ERROR Error(s) in re-building vignettes: --- re-building ‘PA_StandardErrors.pdf.asis’ using asis --- finished re-building ‘PA_StandardErrors.pdf.asis’ --- re-building ‘EstimationComoments.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following object is masked from ‘package:graphics’: legend --- finished re-building ‘EstimationComoments.Rnw’ --- re-building ‘PA-Bacon.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following object is masked from ‘package:graphics’: legend --- finished re-building ‘PA-Bacon.Rnw’ --- re-building ‘PA-charts.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following object is masked from ‘package:graphics’: legend --- finished re-building ‘PA-charts.Rnw’ --- re-building ‘PerformanceAnalyticsChartsPresentation-Meielisalp-2007.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following object is masked from ‘package:graphics’: legend --- finished re-building ‘PerformanceAnalyticsChartsPresentation-Meielisalp-2007.Rnw’ --- re-building ‘PerformanceAnalyticsPresentation-UseR-2007.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following object is masked from ‘package:graphics’: legend --- finished re-building ‘PerformanceAnalyticsPresentation-UseR-2007.Rnw’ --- re-building ‘portfolio_returns.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following objects are masked _by_ ‘.GlobalEnv’: prices, weights The following object is masked from ‘package:graphics’: legend --- finished re-building ‘portfolio_returns.Rnw’ --- re-building ‘textplotPresentation-CRUG-2011.Rnw’ using Sweave Loading required package: xts Loading required package: zoo Attaching package: ‘zoo’ The following objects are masked from ‘package:base’: as.Date, as.Date.numeric Attaching package: ‘PerformanceAnalytics’ The following object is masked from ‘package:graphics’: legend Error: processing vignette 'textplotPresentation-CRUG-2011.Rnw' failed with diagnostics: chunk 5 (label = Hmiscformat) Error in library(Hmisc) : there is no package called ‘Hmisc’ --- failed re-building ‘textplotPresentation-CRUG-2011.Rnw’ SUMMARY: processing the following file failed: ‘textplotPresentation-CRUG-2011.Rnw’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s/21s] OK * checking HTML version of manual ... [13s/14s] NOTE Found the following HTML validation problems: Return.Geltner.html:58:32 (Return.Geltner.Rd:27): Warning: trimming empty centeredmoments.html:24:32 (centeredmoments.Rd:37): Warning: trimming empty * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 2 NOTEs See ‘/data/gannet/ripley/R/packages/tests-Suggests/PerformanceAnalytics.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 6:17.30, 325.66 + 28.68