lindbrook / packagerank Goto Github PK
View Code? Open in Web Editor NEWR Package for Computing and Visualizing CRAN and Bioconductor Downloads
R Package for Computing and Visualizing CRAN and Bioconductor Downloads
For example, running the function with default arguments in Sydney causes an error:
packageRank::packageRank()
#> Error in fetchCranLog(date = ymd, memoization = memoization): Log for 2020-12-24 not (yet) available. Check your internet connection or try the previous day.
Created on 2020-12-25 by the reprex package (v0.3.0)
I believe this is because it's already the 25th in Australia but still the 24th on the CRAN mirror being queried.
Nice package, I'm wondering whether you could add docs of how the rank is computed to provide users with more context?
๐ @lindbrook !
Would you be interested in authoring a short blog post on the R-hub blog? It could use parts of the README, and also explain how it is used by you (and others) in practice, for what purpose(s). It could direct readers who got curious to the docs of your package if they want to learn more. :-)
As follows:
> library(packageRank)
> packageRank("HistData", date = "2019-06-29")
trying URL 'http://cran-logs.rstudio.com/2019/2019-06-29.csv.gz'
Content type 'application/gzip' length 22734794 bytes (21.7 MB)
==================================================
downloaded 21.7 MB
Error in data.table::fread(x) :
Internal error: invalid head position. jump=1, headPos=0x11133e003, thisJumpStart=0x11144655f, sof=0x11133e000
This is with version 0.1.0 from CRAN, R 3.5.2 on Mac OS X, and data.table 1.11.4.
filteredDownloads()
and packageRank(all.filters = TRUE)
both error on Windows. Here is an example:
> filteredDownloads(package = "MplusAutomation", date = "2021-03-01", multi.core = FALSE)
Error in parallel::mclapply(packages, function(p) { :
'mc.cores' > 1 is not supported on Windows
> traceback()
4: stop("'mc.cores' > 1 is not supported on Windows")
3: parallel::mclapply(packages, function(p) {
cran_log[cran_log$package == p, ]
}, mc.cores = cores)
2: packageLog(packages = packages, date = ymd, memoization = memoization)
1: filteredDownloads(package = "MplusAutomation", date = "2021-03-01",
multi.core = FALSE)
Note that this occurs with or without using the multi.core
argument. I hoped setting it to FALSE
would help, but it does not. It also has the same error if multi.core
argument is ommitted.
Here is sessionInfo()
> sessionInfo()
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.utf8 LC_CTYPE=English_Australia.utf8
[3] LC_MONETARY=English_Australia.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Australia.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] packageRank_0.6.0.9014
loaded via a namespace (and not attached):
[1] compiler_4.2.0 pillar_1.7.0 bitops_1.0-7 R.methodsS3_1.8.1
[5] R.utils_2.11.0 prettyunits_1.1.1 remotes_2.4.2 tools_4.2.0
[9] pkgbuild_1.3.1 jsonlite_1.8.0 lubridate_1.8.0 memoise_2.0.1
[13] lifecycle_1.0.1 tibble_3.1.6 gtable_0.3.0 pkgconfig_2.0.3
[17] rlang_1.0.2 pkgsearch_3.1.0 cli_3.3.0 DBI_1.1.2
[21] parallel_4.2.0 curl_4.3.2 fastmap_1.1.0 withr_2.5.0
[25] dplyr_1.0.9 generics_0.1.2 vctrs_0.4.1 rprojroot_2.0.3
[29] grid_4.2.0 tidyselect_1.1.2 parsedate_1.3.0 glue_1.6.2
[33] data.table_1.14.2 R6_2.5.1 processx_3.5.3 fansi_1.0.3
[37] ggplot2_3.3.5 callr_3.7.0 purrr_0.3.4 magrittr_2.0.3
[41] sugrrants_0.2.8 scales_1.2.0 ps_1.7.0 ellipsis_0.3.2
[45] assertthat_0.2.1 colorspace_2.0-3 utf8_1.2.2 RCurl_1.98-1.6
[49] munsell_0.5.0 cachem_1.0.6 crayon_1.5.1 R.oo_1.24.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.