Git Product home page Git Product logo

packagerank's People

Contributors

jdblischak avatar lindbrook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jdblischak

packagerank's Issues

Default date= in packageRank() and possibly elsewhere reliably fails in some time zones.

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.

Blog post on the R-hub blog?

๐Ÿ‘‹ @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. :-)

packageRank fails with data.table::fread error

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.

errors on Windows due to mc.cores

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      

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.