data.table for
performance reasons
globaltrends data is stored in a single,
non-compressed RDS filedata.table objects:
batch_keywordsbatch_timedata_controldata_objectdata_scoredata_doidata_locationsdata_regiondata_relatedkeyword_synonymsglobaltrends data is loaded into memory as a list
of data.table objects0.2.0
data.table
objects and enter it into the respective elements in the
gt.env environment.vacuum_data() function, since the data
architecture is not built on a database file any morecompute_score() now persists in-memory data to disk
after every 1,000 computed locations, matching the periodic persistence
already used by the download_xxx() functionswithr) - no shared state or
leftover files between testsGLOBALTRENDS_LIVE_TESTS=1), so automated test runs are
offline and deterministic by defaultinitialize_python()Config/testthat/parallel: true)start_db() loads the parquet files to memory.get_trend() now catches three classes of errors from the
Research API backend (HTTP via reticulate) instead of crashing with a
Python traceback
globaltrendsuses reticulate to run the
respective Python scriptgtrendsrpackage
initialized_python(), the downloads will
be made through the official Google Trends APIinitialized_python(), the downloads will be made through
the gtrendsrpackagegt.env$query_wait (default value =
0.1s)compute_score for
package simplificationget_abnorm_hist function for package
simplificationcompute_scoreaggregate_synonymsdplyr 1.1.1 and replace the
multiple argument by relationshipglue package, calls of
glue::glue are replaced with paste and
paste0ineq package, calls of
ineq::ineq are replaced with internal functionsDBI 1.1.0:
dbCreateTable and dbAppendTableplot_map from the package:
maps
and ggmapmaps packagedata_global in
function remove_datastats and utils
to version 3.5.0 in line with minimum R
dependencyvacuum_data to free unused memory after
remove_data.data to comply with
tidyselect 1.2.0, this applies to calls of:
dplyr::renamedplyr::selectpurrr::mappurrr::walktidyr::nesttidyr::pivot_longertidyr::pivot_widertidyr::unnesttidyselect 1.2.0,
several objects are defined as global variables (see
globals.r for details)size with linewidth to comply with
ggplot2 3.4.0multiple = "all" and
multiple = "error" to comply with
dplyr 1.1.0add_locations does automatically drop the locationWDI package, references to
WDI::WDI_data are replaced by data objects
countries and countries_wdigt.envexport_score and export_voi)export_xxx for vector and
list inputsexport_xxxxxx automatically:
plot_xxx_boxplot_xxx_barplot_xxx_tsbatch_keywords -> example_keywordsbatch_time -> example_timedata_control -> example_controldata_doi -> example_doidata_object -> example_objectdata_score -> example_scoreexport_xxx
export_score -> class(“exp_score”)export_voi -> class(“exp_voi”)export_doi -> class(“exp_doi”)export_xxx + get_abnorm_hist supersedes
export_xxx_change
export_score -> class(“exp_score”)export_voi -> class(“exp_voi”)export_doi -> class(“exp_doi”)plot_bar supersedes plot_score
export_score -> class(“exp_score”)export_score ->
get_abnorm_hist -> class(“abnorm_score”)plot_ts supersedes plot_voi_ts and
plot_doi_ts
export_score -> class(“exp_score”)export_score ->
get_abnorm_hist -> class(“abnorm_score”)export_voi -> class(“exp_voi”)export_voi ->
get_abnorm_hist -> class(“abnorm_voi”)export_doi -> class(“exp_doi”)export_doi ->
get_abnorm_hist -> class(“abnorm_doi”)plot_box supersedes plot_voi_box and
plot_doi_box
export_score -> class(“exp_score”)export_score ->
get_abnorm_hist -> class(“abnorm_score”)export_voi -> class(“exp_voi”)export_voi ->
get_abnorm_hist -> class(“abnorm_voi”)export_doi -> class(“exp_doi”)export_doi ->
get_abnorm_hist -> class(“abnorm_doi”)
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.