New error on update attempt
andybega opened this issue · 1 comments
andybega commented
> update_icews(dryrun = T)
File system changes:
Found 27 local data file(s)
Downloading 2 file(s)
Removing 0 old file(s)
Database changes:
Deleting old records for 0 file(s)
Ingesting records from 2 file(s)
Plan:
Download '20200510-icews-events.zip'
Download '20200517-icews-events.zip'
Ingest records from '20200510-icews-events.tab'
Ingest records from '20200517-icews-events.tab'
> update_icews(dryrun = FALSE)
Error: Can't use NA as row index in a tibble for assignment.
Run `rlang::last_error()` to see where the error occurred.
In addition: Warning messages:
1: In grepl("^events\\.[0-9]{4}\\.[0-9a-z]+\\.tab$", basename(x)) :
input string 31 is invalid in this locale
2: In grepl("^[0-9]{8}[0-9a-z\\-]+\\.tab$", basename(x)) :
input string 31 is invalid in this locale
> rlang::last_trace()
<error/tibble_error_assign_rows_non_na_only>
Can't use NA as row index in a tibble for assignment.
Backtrace:
█
1. └─icews::update_icews(dryrun = FALSE)
2. └─icews:::plan_database_changes(...) Work/R-packages/icews/R/update.R:87:4
3. ├─base::`[<-`(...) Work/R-packages/icews/R/plan.R:327:4
4. └─tibble:::`[<-.tbl_df`(...) Work/R-packages/icews/R/plan.R:327:4
5. └─tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
6. └─tibble:::tbl_expand_to_nrow(x, i)
andybega commented
I can't recreate this error. Today I tried from RStudio and it updated fine, without issues. Either this was a random one-off error or it is related to R.app.