Skip to content

Error from samples() #72

Description

@kmagou

When I run this code:

countries_sites <- get_sites(datasettype = "vertebrate fauna", gpid = paste(c("United States", "Canada", "Mexico"), collapse=","), all_data = TRUE)

nam_downloads <- get_downloads(countries_sites, all_data = TRUE)

nam_data <- samples(nam_downloads)

I get this error:
Error in map():
ℹ In index: 3017.
ℹ With name: 13700.
Caused by error in map():
ℹ In index: 1.
ℹ With name: 15378.
Caused by error in defaultchron$order[defaultchron$order == max_order] <- `*vtmp*`:
! NAs are not allowed in subscripted assignments
Run rlang::last_trace() to see where the error occurred.
Warning messages:
1: In samples(y) :
2: In samples(y) :
3: In max(defaultchron$order, na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
4: In samples(y) :
5: In max(defaultchron$order, na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
6: In samples(y) :
7: In max(defaultchron$order, na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
8: In samples(y) :

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions