Closed ethanwhite closed 3 years ago
I'm still getting the zenodo timeout issue, so still waiting to test setup_dir
. But I don't get this error when I just do fill_data
.
Does that work for you?
Same error with fill_data
for me:
> fill_data()
-Adding data files to data subdirectory
-lunar data file
-rodents data files
-all
-controls
-exclosures
-dm_controls
-all_interp
-controls_interp
-exclosures_interp
-covariate data files
Error in data.frame(moon = na_moon, possibles[which_possible, cols_keep], :
arguments imply differing number of rows: 1, 0
Okay, I can't recreate this error (on mac). But I also can't run fill_dir
or setup_dir
because of Zenodo errors retrieving portalPredictions. (I'm just downloading portalPredictions manually from Zenodo.) So that may be irrelevant.
OK, maybe we can chat some more if we have time at the end of staff meeting.
The error is coming from the recent fix:
Relevant values at that point:
> na_rows
1 2 3 4 5 6 7 8 9 10 11 12 13
TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
14 15 16 17 18 19 20 21 22 23 24 25 26
TRUE TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
... # All items in here are FALSE
508 509 511 512 513 514 515
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> moon_in
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
... # All FALSE
[181] FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[193] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
... # All TRUE
[505] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
> which_na_rows
named integer(0)
> nna_rows
[1] 0
First guess is that this is an issue with the loop when nna_rows == 0
. Still exploring.
Error is coming from here:
> str(possibles)
'data.frame': 2214 obs. of 10 variables:
$ cast_moon : int NA NA NA NA NA NA NA NA NA NA ...
$ moon : int NA NA NA NA NA NA NA NA NA NA ...
$ mintemp : num NA NA NA NA NA NA NA NA NA NA ...
$ maxtemp : num NA NA NA NA NA NA NA NA NA NA ...
$ meantemp : num NA NA NA NA NA NA NA NA NA NA ...
$ precipitation: num NA NA NA NA NA NA NA NA NA NA ...
$ ndvi : num NA NA NA NA NA NA NA NA NA NA ...
$ source : chr NA NA NA NA ...
$ date_made : chr NA NA NA NA ...
$ date : int NA NA NA NA NA NA NA NA NA NA ...
> which_possible
integer(0)
Let me know what to look at/try next.
Fixed in #197
I'm guessing something changed in the recent upstream changes but both @skmorgane (on Windows) & I (on Ubuntu) are having
setup_dir()
fail for us again using #179.Ping @juniperlsimonis