I'd change the test to be explicit about the types of Sharpe ratio you want returned (currently c("StdDev", "VaR", "ES")). That way the test won't fail when 2.0.6 hits CRAN.
I would also avoid pulling data from the internet for tests, unless you're testing the data import functionality. You can use data that comes with packages instead (e.g. the managers data in PerformanceAnalytics). Then your tests don't depend on an internet connection.
This test fails under the development version of PerformanceAnalytics (2.0.6; CRAN is currently 2.0.4).
This is because 2.0.6 added another row of output to
SharpeRatio()
.I'd change the test to be explicit about the types of Sharpe ratio you want returned (currently
c("StdDev", "VaR", "ES")
). That way the test won't fail when 2.0.6 hits CRAN.I would also avoid pulling data from the internet for tests, unless you're testing the data import functionality. You can use data that comes with packages instead (e.g. the
managers
data in PerformanceAnalytics). Then your tests don't depend on an internet connection.