- Remove dependency on
glue
package, calls ofglue::glue
are replaced withpaste
andpaste0
- Remove dependency on
ineq
package, calls ofineq::ineq
are replaced with internal functions - Use functions from
DBI 1.1.0
:dbCreateTable
anddbAppendTable
- Remove the function
plot_map
from the package:- The function proofed too inflexible, only world map was included
- We point users to the functions from the packages
maps
andggmap
- Remove dependency on the
maps
package
- Remove reference to non-existent table
data_global
in functionremove_data
- Set minimum dependency of
stats
andutils
to version3.5.0
in line with minimumR
dependency - Store globaltrends logo in the vignettes folder
- Add explanation of Google's data preparation methodology to vignette
- Change wait intervals for status responses != 200 and add message about automatic retry of download
- Status == 500: wait 1 second
- All other responses: wait 60 seconds
- Add function
vacuum_data
to free unused memory afterremove_data
- Remove all usage of
.data
to comply withtidyselect 1.2.0
, this applies to calls of:dplyr::rename
dplyr::select
purrr::map
purrr::walk
tidyr::nest
tidyr::pivot_longer
tidyr::pivot_wider
tidyr::unnest
- As a consequence of the changes in
tidyselect 1.2.0
, several objects are defined as global variables (seeglobals.r
for details) - Replace
size
withlinewidth
to comply withggplot2 3.4.0
- Add the argument
multiple = "all"
andmultiple = "error"
to comply withdplyr 1.1.0
- Facilitate handling of location = "NA - Namibia", the function
add_locations
does automatically drop the location - Remove dependency on
WDI
package, references toWDI::WDI_data
are replaced by data objectscountries
andcountries_wdi
- Stop direct exports from functions to .GlobalEnv
- Exports of objects (e.g., SQL connections, keyword tables) are redirected to package environment
gt.env
- Add handle for Namibia ISO code
- Add function plot_map()
- Add automatic stringr::str_squish for keywords and synonyms
- Add documentation on usage of search topics
- Change indication and handling of synonyms (synonyms are now ignored in
export_score
andexport_voi
)
- Fasten computation of search scores for data with synonyms
- Fix bugs for control keywords that have a mean of 0 for their search volume time series
- Adapt
export_xxx
forvector
andlist
inputs - Optimize RAM usage of
export_xxx
- Check whether "db/globaltrends_db.sqlite" file exists in working directory
- Inclusion of "workaround" plot functions that set class
xxx
automatically:plot_xxx_box
plot_xxx_bar
plot_xxx_ts
- Change waiting times for errors
- Status Code != 200/Limit exceeded -> 60 seconds wait
- Status Code == 500 -> 1 second wait
- To distinguish them from the actual database tables, names of the example data
object were adapted. Documentation is still available for the respective database
table.
batch_keywords
->example_keywords
batch_time
->example_time
data_control
->example_control
data_doi
->example_doi
data_object
->example_object
data_score
->example_score
- Waiting period between downloads reduced from 20-30 seconds to 5-10 seconds
- Added classes for output from
export_xxx
export_score
-> class("exp_score")export_voi
-> class("exp_voi")export_doi
-> class("exp_doi")
export_xxx
+get_abnorm_hist
supersedesexport_xxx_change
- method for
export_score
-> class("exp_score") - method for
export_voi
-> class("exp_voi") - method for
export_doi
-> class("exp_doi")
- method for
plot_bar
supersedesplot_score
- method for
export_score
-> class("exp_score") - method for
export_score
->get_abnorm_hist
-> class("abnorm_score")
- method for
plot_ts
supersedesplot_voi_ts
andplot_doi_ts
- method for
export_score
-> class("exp_score") - method for
export_score
->get_abnorm_hist
-> class("abnorm_score") - method for
export_voi
-> class("exp_voi") - method for
export_voi
->get_abnorm_hist
-> class("abnorm_voi") - method for
export_doi
-> class("exp_doi") - method for
export_doi
->get_abnorm_hist
-> class("abnorm_doi")
- method for
plot_box
supersedesplot_voi_box
andplot_doi_box
- method for
export_score
-> class("exp_score") - method for
export_score
->get_abnorm_hist
-> class("abnorm_score") - method for
export_voi
-> class("exp_voi") - method for
export_voi
->get_abnorm_hist
-> class("abnorm_voi") - method for
export_doi
-> class("exp_doi") - method for
export_doi
->get_abnorm_hist
-> class("abnorm_doi")
- method for