stats_logs(dt, type="monthly", pacakges="data.table", dependency=TRUE, duration=60L)
data.tableobject with the download logs.
TRUE(default), also computes stats for all packages that depend on this package and were downloaded within +/- seconds specified in
durationin an attempt to get a better representation of the number of times just this package was downloaded.
TRUE, number of downloads for all packages that depend on this package and downloaded within +/-
durationseconds are calculated and provided as an additional column.
data.tablewith the number of downloads for the specified time frame and
typeand an additional column indicating the number of downlaods most likely due to the packages that depend on it, if
dependencyis set to
packagesargument, it'll not be possible to distinguish if the package was directly downloaded or was it because it was in the
importsetc. fields. In order to get the number of downloads for just the package that is specified, we start by gathering the number of downloads for all the packages that depend on it, within
durationseconds +/-. We also use the proxy info provided for IP address from Rstudio mirror logs to find out if the dependent package and the actual package were downloaded by the same user. We add all the downloads for each package provided in the
packageargument which satisfy these criterion and provide this information as an additional column, in addition to the total number of downloads for the packages specified.
## Not run: # dt = read_logs(dir="cran-mirror", verbose = TRUE) # dt_s = stats_logs(dt) # ## End(Not run)