hunter-stanke / rFIA

rFIA
https://rfia.netlify.com/
47 stars 23 forks source link

mostRecent=FALSE breaks when using remote database #10

Closed hunter-stanke closed 3 years ago

hunter-stanke commented 3 years ago

Using rFIA v0.3.0, all estimator functions produce the following error when applying a non-most recent clip to a remote FIA Database.

library(rFIA)

## Download data and set up remote database
getFIA(states = 'RI', dir = tempdir())
db <- readFIA(inMemory=F,dir = tempdir())

## A non-most recent clip, this does nothing in this case
## But can be useful for exclusively spatial subsets
dbclip <- clipFIA(db,mostRecent=F)

## Using tpa here, but fails for all estimator functions
dbclip %>% seedling()

Error in if (matchEval) { : argument is of length zero
hunter-stanke commented 3 years ago

Fixed in v0.3.1