From 99301bc5bf1611c0390fc69dd09e630d6954e8d9 Mon Sep 17 00:00:00 2001 From: "Zijie Zhu (Miller)" Date: Thu, 6 Aug 2015 09:31:57 -0400 Subject: [PATCH 1/3] Update zzz.R --- R/zzz.R | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/R/zzz.R b/R/zzz.R index 3875358..eddd5d1 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -5,13 +5,11 @@ #' @importFrom utils packageVersion -.onLoad <- function(libname, pkgname) { - requireNamespace("utils") - if(!"creditrISDA" %in% .packages(all.available = TRUE)){ - devtools::install_github("davidkane9/creditrISDA") - } +if(!"creditrISDA" %in% .packages(all.available = TRUE)){ + devtools::install_github("davidkane9/creditrISDA") } + ## compress the vignette PDF to fix CMD Check WARNING ## The below works and please don't delete this! @@ -20,3 +18,7 @@ Sys.setenv("_R_BUILD_COMPACT_VIGNETTES_" = "--compress-vignettes=gs+qpdf") ## probably setting R_WIN_NO_JUNCTIONS to non-empty value will fix the NOTE?? Sys.setenv("R_WIN_NO_JUNCTIONS" = "repos") + +## do not check suggests package (creditrISDA) dependency + +Sys.setenv("_R_CHECK_FORCE_SUGGESTS_" = FALSE) From 0906ea4108ea2c87a83fbfc611c9f86a4ec9980f Mon Sep 17 00:00:00 2001 From: "Zijie Zhu (Miller)" Date: Thu, 6 Aug 2015 13:53:12 -0400 Subject: [PATCH 2/3] Update .Rprofile --- .Rprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.Rprofile b/.Rprofile index d848068..85477a6 100644 --- a/.Rprofile +++ b/.Rprofile @@ -1 +1 @@ -local({r <- getOption("repos"); r["CRAN"] <- "https://cran.cnr.Berkeley.edu/"; options(repos = r)}) \ No newline at end of file +options(repos = c(CRAN="http://cran.r-project.org") From 8478fd143340354af22b5e9c7b1027724a495fdc Mon Sep 17 00:00:00 2001 From: "Zijie Zhu (Miller)" Date: Thu, 6 Aug 2015 13:53:57 -0400 Subject: [PATCH 3/3] Update DESCRIPTION --- DESCRIPTION | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5ba6730..54ffbbb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: creditr -Version: 0.4-3 -Date: 2015-08-02 +Version: 0.4-4 +Date: 2015-08-06 Title: Credit Default Swaps in R Author: c(person("Heidi", "Chen", role = c("aut"), email = "s.heidi.chen@gmail.com"), @@ -34,4 +34,4 @@ Description: The creditr package provides tools for pricing credit default See "http://www.cdsmodel.com/cdsmodel/cds-disclaimer.html" for details. The R package "creditrISDA" at "https://github.com/davidkane9/creditrISDA" is needed because the ISDA C code can not be placed in a CRAN package. -LazyData: true \ No newline at end of file +LazyData: true