Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: package ‘fiabd’ is not available for this version of R #27

Open
mlefsky opened this issue Mar 4, 2024 · 2 comments
Open

Comments

@mlefsky
Copy link

mlefsky commented Mar 4, 2024

I received an error when trying to download FIA data from your database but receive the following message:

install.packages("fiabd")
Installing package into ‘/home/lefsky/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘fiabd’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

When I run with the postgis=FALSE option, it appears to work but then I get the message:

! https://apps.fs.usda.gov/fia/datamart/CSV/MN_tree.zip is not available to download at the moment

I've appended my version information. Can you tell me how to resolve this question? If I need to switch R version, which should I install?

version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01)
nickname Bird Hippie

@hrodmn
Copy link
Contributor

hrodmn commented Mar 6, 2024

Hi @mlefsky 👋

I received an error when trying to download FIA data from your database but receive the following message:

install.packages("fiabd")
Installing package into ‘/home/lefsky/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘fiabd’ is not available for this version of R

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

fiadb is the python package that I built to create the PostGIS database from the FIA datamart CSVs, so it is not something that can be installed in R.

When I run with the postgis=FALSE option, it appears to work but then I get the message:

! https://apps.fs.usda.gov/fia/datamart/CSV/MN_tree.zip is not available to download at the moment

I assume this was a temporary outage on the FIA datamart - when I try clicking the link to download that file it seems to work.

I have worked through the changes required to get tidyFIA up-to-date with recent versions of its dependencies in this PR: #26. I will release it into the wild soon, but if you could try it out and let me know if the functions work for you that would be great!

You can install it like this:

remotes::install_github("ncx-co/tidyFIA", ref = "updates-20240226")

@mlefsky
Copy link
Author

mlefsky commented Mar 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants