Closed michaeljakob closed 7 years ago
thx for the report @michaeljakob ! and sorry about the trouble.
did you try installing rgdal
as a binary, that is, install.packages("rgdal")
- looks like there are mavericks binaries on cran - of course if you don't have gdal installed already it wont work - let me know if that works
I installed "GDAL 2.1 Complete" from http://www.kyngchaos.com/software/frameworks
After this, I restarted R studio and executed install.packages("rgdal")
(success).
devtools::install_github("ropensci/rnoaa")
still produced the same error as above. What would be the next step?
Please let me know if you need any additional information.
@michaeljakob ah, it looks like you are on an old R installation. when you do install_github rnoaa, it should grab those pkgs you don't have yet. but i think it's erroring since you're on an old R version (3.1), we're on 3.4.1 now
@sckott thank you, that seems to solve the most problems! However, now I cannot connect to the FTP server anymore. I could successfully install devtools::install_github("ropensci/rnoaa") after installing R 3.4.1.
stations
now returns an all-empty table, whereas it previously returned 2 results (with the old R version, and stable RNOAA version).
My complete code looks like this:
> library(rnoaa)
> library(dplyr)
> library(plyr)
> library(lubridate)
> require(ggplot2)
> require(reshape2)
>
>
> stations <- isd_stations_search(lat = 41.79925, lon = -61.33052, radius = 10)
> airtemp = isd(usaf = stations$usaf[1], wban = stations$wban[1], year = 2015)
Error: download failed for
ftp://ftp.ncdc.noaa.gov/pub/data/noaa/2015/NA-NA-2015.gz
>
> dat2 <- (airtemp) #is this line correct?
Error: object 'airtemp' not found
> dat3 <- dat2 %>%
+ filter(date == in_date) %>%
+ filter(temperature < 999.9) # temperature data is available
Error in eval(lhs, parent, parent) : object 'dat2' not found
>
> # select relevant columns
> dat4 <- dat3[,c("usaf_station", "wban_station", "date", "time", "latitude", "longitude", "wind_speed", "temperature", "air_pressure")]
Error: object 'dat3' not found
this line isd_stations_search(lat = 41.79925, lon = -61.33052, radius = 10)
gives zero results - thus the next line gives NA's and then download fails, and so on - so modify your search in the isd_stations_search
call
Thank you, this solved it!! You are amazing.
I am trying for several hours to install the development version of RNOAA on OS X. I need the dev version because there are several bugs in the stable version that won't let me use another package (but I know it works with the dev version).
(1) I tried following this tutorial https://github.com/ropensci/rnoaa and first installed GDAL with the OS X package manager (.pkg).
(2) I tried to set the gdal-config in R Studio with the command given in https://github.com/ropensci/rnoaa [ERROR]
(3) I tried to use the command below in R studio. [ERROR] However, RNOAA cannot be installed because several dependencies are missing.