Query cran directly about latest package changes for last or previous week

Hi there,

Is there a simple way to query cran to see when last a package was updated or to see which packages were all updated in the last week? I'd like to be able to return a vector of names or table with that information for some devops requirements and was wondering if someone has some convenience functions.

If I'm not mistaken, you can call tools::CRAN_package_db() and look at the column Published.

1 Like

Thanks for this. It will do the job!

library(tools)
library(tidyverse)
#> Warning: package 'readr' was built under R version 4.1.3

df_check <- 
  tools::CRAN_package_db() 

df2 <- 
df_check %>% dplyr::filter(Package == "dendextend")

df2
#>      Package Version Priority      Depends
#> 1 dendextend  1.16.0     <NA> R (>= 3.0.0)
#>                                                         Imports LinkingTo
#> 1 utils, stats, datasets, magrittr (>= 1.0.1), ggplot2, viridis      <NA>
#>                                                                                                                                                                                  Suggests
#> 1 knitr, rmarkdown, testthat, seriation, colorspace, ape,\nmicrobenchmark, gplots, heatmaply, dynamicTreeCut, pvclust,\ncorrplot, DendSer, MASS, cluster, fpc, circlize (>= 0.2.5),\ncovr
#>                                                                                        Enhances
#> 1 ggdendro, dendroextras, Hmisc, data.table, rpart, WGCNA,\nmoduleColor, distory, phangorn, zoo
#>         License License_is_FOSS License_restricts_use OS_type Archs
#> 1 GPL-2 | GPL-3            <NA>                  <NA>    <NA>  <NA>
#>                             MD5sum NeedsCompilation Additional_repositories
#> 1 2a958b2afea0fc6eec7a5b1c239d619e               no                    <NA>
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Author
#> 1 Tal Galili [aut, cre, cph] (https://www.r-statistics.com),\n  Yoav Benjamini [ths],\n  Gavin Simpson [ctb],\n  Gregory Jefferis [aut, ctb] (imported code from his dendroextras\n    package),\n  Marco Gallotta [ctb] (a.k.a: marcog),\n  Johan Renaudie [ctb] (https://github.com/plannapus),\n  The R Core Team [ctb] (Thanks for the Infastructure, and code in the\n    examples),\n  Kurt Hornik [ctb],\n  Uwe Ligges [ctb],\n  Andrej-Nikolai Spiess [ctb],\n  Steve Horvath [ctb],\n  Peter Langfelder [ctb],\n  skullkey [ctb],\n  Mark Van Der Loo [ctb] (https://github.com/markvanderloo d3dendrogram),\n  Andrie de Vries [ctb] (ggdendro author),\n  Zuguang Gu [ctb] (circlize author),\n  Cath [ctb] (https://github.com/CathG),\n  John Ma [ctb] (https://github.com/JohnMCMa),\n  Krzysiek G [ctb] (https://github.com/storaged),\n  Manuela Hummel [ctb] (https://github.com/hummelma),\n  Chase Clark [ctb] (https://github.com/chasemc),\n  Lucas Graybuck [ctb] (https://github.com/hypercompetent),\n  jdetribol [ctb] (https://github.com/jdetribol),\n  Ben Ho [ctb] (https://github.com/SplitInf),\n  Samuel Perreault [ctb] (https://github.com/samperochkin),\n  Christian Hennig [ctb] (http://www.homepages.ucl.ac.uk/~ucakche/),\n  David Bradley [ctb] (https://github.com/DBradley27),\n  Houyun Huang [ctb] (https://github.com/houyunhuang),\n  Patrick Schupp [ctb] (https://github.com/pschupp)
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Authors@R
#> 1 c(person("Tal", "Galili", role = c("aut", "cre", "cph"), email =\n    "tal.galili@gmail.com", comment = "https://www.r-statistics.com"),\n    person("Yoav", "Benjamini", email = "ybenja@tau.ac.il",role = "ths"),\n    person("Gavin", "Simpson", role = "ctb"), person("Gregory","Jefferis", role\n    = c("aut", "ctb"), email = "jefferis@gmail.com",\n    comment ="imported code from his dendroextras package"),\n    person("Marco", "Gallotta", role = "ctb", comment =\n    "a.k.a: marcog") , person("Johan", "Renaudie", role = "ctb", comment =\n    "https://github.com/plannapus"), person("The R Core Team", role = "ctb",\n    comment = "Thanks for the Infastructure, and code in the examples"),\n    person("Kurt", "Hornik", role = "ctb"), person("Uwe", "Ligges",\n    role = "ctb"), person("Andrej-Nikolai", "Spiess", role = "ctb"),\n    person("Steve", "Horvath",email = "SHorvath@mednet.ucla.edu", role =\n    "ctb"), person("Peter", "Langfelder",email = "Peter.Langfelder@gmail.com",\n    role = "ctb"), person("skullkey", role = "ctb"), person("Mark",\n    "Van Der Loo", email = "mark.vanderloo@gmail.com", comment =\n    "https://github.com/markvanderloo d3dendrogram", role = "ctb"),\n    person("Andrie",\n    "de Vries", email = "apdevries@gmail.com", comment =\n    "ggdendro author", role = "ctb"),\n    person("Zuguang",\n    "Gu", email = "z.gu@dkfz-heidelberg.de", comment =\n    "circlize author", role = "ctb"),    \n    person("Cath", comment =\n    "https://github.com/CathG", role = "ctb"), person("John",\n    "Ma", comment =\n    "https://github.com/JohnMCMa", role = "ctb"), person("Krzysiek",\n    "G", comment =\n    "https://github.com/storaged", role = "ctb"), person("Manuela",\n    "Hummel", email = "m.hummel@dkfz.de", comment =\n    "https://github.com/hummelma", role = "ctb"), \n    person("Chase",\n    "Clark", comment =\n    "https://github.com/chasemc", role = "ctb"), \n    person("Lucas",\n    "Graybuck", comment =\n    "https://github.com/hypercompetent", role = "ctb"), \n    person("jdetribol", comment =\n    "https://github.com/jdetribol", role = "ctb"), \n    person("Ben", "Ho", role = "ctb", email = "ben.ho@sickkids.ca", comment = "https://github.com/SplitInf"),\n    person("Samuel", "Perreault", role = "ctb", email = "samuel.perreault.3@ulaval.ca", comment = "https://github.com/samperochkin"),\n    person("Christian", "Hennig", role = "ctb", email = "c.hennig@ucl.ac.uk", comment = "http://www.homepages.ucl.ac.uk/~ucakche/"),\n    person("David", "Bradley", role = "ctb", comment = "https://github.com/DBradley27"),\n    person("Houyun", "Huang", role = "ctb", email = 'houyunhuang@163.com', comment = "https://github.com/houyunhuang"),\n    person("Patrick", "Schupp", role = "ctb", email = 'pschupp@sonic.net', comment = "https://github.com/pschupp")\n    )
#>   Biarch                                     BugReports BuildKeepEmpty
#> 1   <NA> https://github.com/talgalili/dendextend/issues           <NA>
#>   BuildManual BuildResaveData BuildVignettes Built ByteCompile
#> 1        <NA>            <NA>           <NA>  <NA>        <NA>
#>   Classification/ACM Classification/ACM-2012 Classification/JEL
#> 1               <NA>                    <NA>               <NA>
#>   Classification/MSC Classification/MSC-2010 Collate Collate.unix
#> 1               <NA>                    <NA>    <NA>         <NA>
#>   Collate.windows Contact Copyright       Date
#> 1            <NA>    <NA>      <NA> 2022-07-04
#>                                                                                                                                                                                                                                                                                                                                                     Description
#> 1 Offers a set of functions for extending\n    'dendrogram' objects in R, letting you visualize and compare trees of\n    'hierarchical clusterings'. You can (1) Adjust a tree's graphical parameters\n    - the color, size, type, etc of its branches, nodes and labels. (2)\n    Visually and statistically compare different 'dendrograms' to one another.
#>   Encoding KeepSource Language LazyData LazyDataCompression LazyLoad
#> 1    UTF-8       <NA>     <NA>     true                <NA>     <NA>
#>   MailingList                        Maintainer Note
#> 1        <NA> Tal Galili <tal.galili@gmail.com> <NA>
#>                             Packaged RdMacros StagedInstall SysDataCompression
#> 1 2022-07-04 04:35:20 UTC; talgalili     <NA>          <NA>               <NA>
#>   SystemRequirements                                     Title    Type
#> 1               <NA> Extending 'dendrogram' Functionality in R Package
#>                                                                                                                                                                                                                                                                                                      URL
#> 1 http://talgalili.github.io/dendextend/,\nhttps://github.com/talgalili/dendextend/,\nhttps://cran.r-project.org/package=dendextend,\nhttps://www.r-statistics.com/tag/dendextend/,\nhttps://academic.oup.com/bioinformatics/article/31/22/3718/240978/dendextend-an-R-package-for-visualizing-adjusting
#>   UseLTO VignetteBuilder ZipData  Published Path X-CRAN-Comment
#> 1   <NA>           knitr    <NA> 2022-07-04 <NA>           <NA>
#>         Reverse depends
#> 1 EnsCat, PdPDB, uclust
#>                                                                                                                                                                                                                                                                                                                                                                                                         Reverse imports
#> 1 BasketballAnalyzeR, BiBitR, CALANGO, CellTrails, ChAMP, CINNA, Cluster.OBeu, conos, consensusDE, elaborator, factoextra, FlexDotPlot, GeneTonic, GlobalAncova, GOpro, GSEAmining, heatmaply, hfr, HGC, ILoReg, InterCellar, ldaPrototype, mappoly, Mercator, metaprotr, mFD, Momocs, multiClust, OmicInt, onemap, pagoo, PhosR, pRoloc, rabhit, rainette, rSAFE, tidyHeatmap, tsibbletalk, ViSEAGO, visxhclust, YAPSA
#>   Reverse linking to
#> 1               <NA>
#>                                                                                                                                                                                                                                                                                                                                                                          Reverse suggests
#> 1 AntMAN, celltrackR, circlize, ClustAssess, cola, ComplexHeatmap, COTAN, DAPAR, DatabionicSwarm, dbscan, FCPS, HMP16SData, iconr, IncDTW, isocat, kmer, MAGeCKFlute, mdendro, packFinder, perfectphyloR, pergola, phylogram, plotly, ProjectionBasedClustering, protti, rare, sarp.snowprofile.alignment, scGPS, seriation, sharpshootR, sits, spiralize, TreeAndLeaf, variancePartition
#>   Reverse enhances
#> 1             <NA>

Created on 2022-07-11 by the reprex package (v2.0.0)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.