Giter Club home page Giter Club logo

dlstats's Introduction

Guangchuang's github stats Top Langs

๐Ÿ‘‹ Hi there!

My name is Guangchuang and I'm a professor in Department of Bioinformatics at Southern Medical University.

dlstats's People

Contributors

alexrecuenco avatar guangchuangyu avatar huerqiang avatar yue-jiang avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

dlstats's Issues

Improved behaviour with empty package list

Generally it's good behaviour if a package returns a data structure of the same shape when it's given empty inputs, in order to avoid breaking downstream code. So for an empty package list I would hope for dlstats to return a data frame with 0 rows, but the regular columns such as Nb_of_downloads and package.

At the moment this happens:

> dlstats::bioc_stats(character())
NULL
> dlstats::bioc_stats("DelayedArray")
        start        end Nb_of_distinct_IPs Nb_of_downloads      package
1  2016-12-01 2016-12-31                 14              23 DelayedArray
2  2017-01-01 2017-01-31                 12              16 DelayedArray
3  2017-02-01 2017-02-28                198             352 DelayedArray

dlstats not working?

Hi!
I tried to fetch some download statistics with the example provided on your page, but it returns a message
"OMITTED: dlstats,emojifont,rvcheck download stats not found or currently not available..."

Do you have any idea why this is happening?

All the best
Liis

`dlstats::cran_stats`: Fails for large number of packages

This works:

res1 <- dlstats::cran_stats(packages = c("ad4","badger","bayeslm"))

But this returns an empty data.frame (often, but not always):

cran <- utils::available.packages()
res2 <- dlstats::cran_stats(packages = cran$Package)

Not sure where this inconsistency is coming from. Perhaps an issue with making lots of API queries at a time?

I notice that using the dlstats::cran_stats / dlstats::bioc_stats for large numbers of packages often causes All the connections are in use: Execution halted errors. Might be related.

Thanks,
Brian

Session info

I'm currently using the development version of dlstats ( 0.1.6) to address another issue #3

``` R version 4.2.1 (2022-06-23) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Monterey 12.4

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] echogithub_0.99.1

loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 prettyunits_1.1.1 ps_1.7.2 assertthat_0.2.1 digest_0.6.31
[6] utf8_1.2.2 mime_0.12 R6_2.5.1 httr_1.4.4 ggplot2_3.4.0
[11] pillar_1.8.1 rlang_1.0.6 curl_4.3.3 rstudioapi_0.14 data.table_1.14.6
[16] miniUI_0.1.1.1 templateR_0.99.0 urlchecker_1.0.1 callr_3.7.3 devtools_2.4.5
[21] stringr_1.5.0 htmlwidgets_1.5.4 dlstats_0.1.6 munsell_0.5.0 shiny_1.7.3
[26] compiler_4.2.1 httpuv_1.6.6 pkgconfig_2.0.3 pkgbuild_1.4.0 htmltools_0.5.3
[31] tidyselect_1.2.0 tibble_3.1.8 fansi_1.0.3 crayon_1.5.2 dplyr_1.0.10
[36] later_1.3.0 brio_1.1.3 grid_4.2.1 jsonlite_1.8.4 xtable_1.8-4
[41] gtable_0.3.1 lifecycle_1.0.3 DBI_1.1.3 magrittr_2.0.3 scales_1.2.1
[46] cli_3.4.1 stringi_1.7.8 cachem_1.0.6 remotes_2.4.2 fs_1.5.2
[51] promises_1.2.0.1 testthat_3.1.5 xml2_1.3.3 ellipsis_0.3.2 generics_0.1.3
[56] vctrs_0.5.1 gh_1.3.1 RColorBrewer_1.1-3 tools_4.2.1 githubinstall_0.2.2
[61] glue_1.6.2 purrr_0.3.5 processx_3.8.0 pkgload_1.3.2 parallel_4.2.1
[66] fastmap_1.1.0 colorspace_2.0-3 BiocManager_1.30.19 sessioninfo_1.2.2 rvest_1.0.3
[71] memoise_2.0.1 usethis_2.1.6 profvis_0.3.7

</details>

experiment data packages not supported?

Hi GuangChuang, @GuangchuangYu

The biocApp() fails to render when including experiment data packages in the query:

> packageVersion("dlstats")
[1] '0.1.6'

Query

MultiAssayExperiment, TENxIO, terraTCGAdata, SingleCellMultiModal

Error

Error: [object Object]

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.