NEWS.md
This is the first version released to CRAN.
The ICEWS project ceased updates in late 2019, but resumed again in May 2020. However, instead of daily updates for the most recent data, it switched to weekly updates for recent data. This required changes in the package.
query_icews("delete from null_source_files;")
to remove some old references in a utility table in SQLite. For databases that were created after May 2020, everything is good.find_raw()
, find_docs()
, and find_db()
) now also take and optional argument that is combined with the base path returned using base::file.path()
. This makes it easier to get the full path for files within the data directories.update_icews()
function gains a “plan” argument that can be used to speed up the update process, i.e. plan <- update_icews(dryrun = TRUE); update_icews(dryrun = FALSE, plan = plan)
will reuse the previous plan and avoid talking to dataverse twice.testthat::with_mock()
with solutions from the {mockr} and {mockery} packages, which have as a result been added to Suggests. (#76)Some of the earlier commits in 2019, when the updates were still daily, fixed various minor issues:
normalize_label()
) by appending “part1”, “part2”, etc. as needed. This local file name is used to track state between the local downloaded files and/or database and dataverse. Download now occurs through the integer file ID instead of the file label.write_data_to_db
did not recognize a data file ending with “-1.tab” as a daily data file, and thus skipped the duplicate events check that is done for daily data files only.dr_icews()
that would erroneously indicate the need to sync local files and database. This was due to the internal changes in v0.2.0.Major rewrite of the download and synchronization code, with some breaking changes.
A major non-breaking change is that the second ICEWS dataverse repository, which has been providing daily updates since November 2018, has been integrated. update_icews()
will seamlessly pull/update data from both repositories.
Big changes, including breaking changes:
options(x = y)
and .Rprofile
instead of environment variables to keep track of the data directory path and global option settings. Helper functions like setup_icews()
have been adjusted accordingly.download_icews
to download_data
; the old version is still around but will be taken out at some point.query
to query_icews
to avoid ambiguity.sync_db
with update_icews
for general purpose use, and sync_db_with_files()
for synchronizing the database with local data files without downloading any new ones. The update_icews()
function is setup to work with the path and other options.Other changes/additions:
icews_to_gwcode
to translate ICEWS country names to their respective Gleditsch & Ward country code.download_docs
. Find out in which directory the doc files are with find_docs
.read_icews
to also work if a database backend is used, previously only for reading from files.cameo_codes
data to include columns for quad and penta categories.This is the initial package version with minimal functionality for what I need. Mileage might vary.
NEWS.md
file to track changes to the package.