diff options
author | tota <tota@FreeBSD.org> | 2013-06-02 05:47:52 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2013-06-02 05:47:52 +0800 |
commit | 32f659a88d8db461f0fbf85f5179777a32b9df71 (patch) | |
tree | 8216f56d9ee1eecf99eb20a21ae212ccc60d8bfb /finance | |
parent | 6a804bca0948c59c71bbb3ad9b06f4e257ed7bd1 (diff) | |
download | freebsd-ports-gnome-32f659a88d8db461f0fbf85f5179777a32b9df71.tar.gz freebsd-ports-gnome-32f659a88d8db461f0fbf85f5179777a32b9df71.tar.zst freebsd-ports-gnome-32f659a88d8db461f0fbf85f5179777a32b9df71.zip |
- Add a patch to fix the result of xmlRoot because of changing
the layout in table.yahoo.co.jp
- Replace tab with a space after WWW: in pkg-descr
Diffstat (limited to 'finance')
-rw-r--r-- | finance/R-cran-RFinanceYJ/Makefile | 2 | ||||
-rw-r--r-- | finance/R-cran-RFinanceYJ/files/patch-R-quoteStockTsData.R | 11 | ||||
-rw-r--r-- | finance/R-cran-RFinanceYJ/pkg-descr | 2 |
3 files changed, 13 insertions, 2 deletions
diff --git a/finance/R-cran-RFinanceYJ/Makefile b/finance/R-cran-RFinanceYJ/Makefile index d1c247d7f54d..0d9cd581bc85 100644 --- a/finance/R-cran-RFinanceYJ/Makefile +++ b/finance/R-cran-RFinanceYJ/Makefile @@ -3,7 +3,7 @@ PORTNAME= RFinanceYJ PORTVERSION= 0.1.6 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= finance DISTNAME= ${PORTNAME}_${PORTVERSION} diff --git a/finance/R-cran-RFinanceYJ/files/patch-R-quoteStockTsData.R b/finance/R-cran-RFinanceYJ/files/patch-R-quoteStockTsData.R new file mode 100644 index 000000000000..b965cf15dc44 --- /dev/null +++ b/finance/R-cran-RFinanceYJ/files/patch-R-quoteStockTsData.R @@ -0,0 +1,11 @@ +--- R/quoteStockTsData.R.orig 2011-03-24 23:34:43.000000000 +0900 ++++ R/quoteStockTsData.R 2013-06-02 04:03:12.000000000 +0900 +@@ -56,7 +56,7 @@ + try( r <- xmlRoot(htmlTreeParse(quote.url,error=xmlErrorCumulator(immediate=F))), TRUE) + if( is.null(r) ) stop(paste("Can not access :", quote.url)) + +- try( quote.table <- r[[2]][[1]][[1]][[16]][[1]][[1]][[1]][[4]][[1]][[1]][[1]], TRUE ) ++ try( quote.table <- r[[2]][[1]][[1]][[13]][[1]][[1]][[1]][[4]][[1]][[1]][[1]], TRUE ) + # + if( is.null(quote.table) ){ + if( is.null(financial.data) ){ diff --git a/finance/R-cran-RFinanceYJ/pkg-descr b/finance/R-cran-RFinanceYJ/pkg-descr index 53ca13e1634c..fae3b5a35c50 100644 --- a/finance/R-cran-RFinanceYJ/pkg-descr +++ b/finance/R-cran-RFinanceYJ/pkg-descr @@ -1,3 +1,3 @@ Japanese stock market from Yahoo!-finance-Japan -WWW: http://cran.r-project.org/web/packages/RFinanceYJ/ +WWW: http://cran.r-project.org/web/packages/RFinanceYJ/ |