Skip to content

Commit

Permalink
Merge pull request #159 from geanders/master
Browse files Browse the repository at this point in the history
Additions from ROpenSci Unconference (Spring 2016)
  • Loading branch information
sckott authored Aug 23, 2016
2 parents 7a59bb3 + d725b86 commit 97aee14
Show file tree
Hide file tree
Showing 41 changed files with 2,325 additions and 193 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ man-roxygen
^\.Rproj\.user$
inst/img
inst/ignore
inst/user_test_cases
vignettes/margins.sty
CONTRIBUTING.md
^appveyor\.yml$
Expand All @@ -17,3 +18,4 @@ inst/vign/cache
README.Rmd
vignettes/figure
^CONDUCT\.md$
user_test_cases/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.Rproj.user
.Rhistory
.RData
rnoaa.Rproj
.DS_Store
inst/ignore/bath.r
inst/cache/
inst/vign/cache
inst/doc
9 changes: 7 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Imports:
ggplot2,
scales,
XML,
jsonlite
jsonlite,
rappdirs,
gridExtra
Suggests:
testthat,
roxygen2,
Expand All @@ -43,5 +45,8 @@ Suggests:
geojsonio,
lawn,
rgdal,
covr
rmarkdown,
purrr,
covr,
ggmap
RoxygenNote: 5.0.1
16 changes: 16 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export(argo_files)
export(argo_plan)
export(argo_qwmo)
export(argo_search)
export(autoplot.meteo_coverage)
export(buoy)
export(buoys)
export(coops_search)
Expand Down Expand Up @@ -61,6 +62,15 @@ export(is.ncdc_stations)
export(isd)
export(isd_stations)
export(isd_stations_search)
export(meteo_clear_cache)
export(meteo_coverage)
export(meteo_distance)
export(meteo_nearby_stations)
export(meteo_process_geographic_data)
export(meteo_pull_monitors)
export(meteo_show_cache)
export(meteo_spherical_distance)
export(meteo_tidy_ghcnd)
export(ncdc)
export(ncdc_combine)
export(ncdc_datacats)
Expand Down Expand Up @@ -97,6 +107,7 @@ export(swdi)
export(theme_ice)
export(tornadoes)
export(type_summ)
export(vis_miss)
importFrom(XML,htmlParse)
importFrom(XML,xmlParse)
importFrom(XML,xmlToList)
Expand All @@ -109,6 +120,7 @@ importFrom(dplyr,bind_rows)
importFrom(dplyr,contains)
importFrom(dplyr,filter)
importFrom(dplyr,mutate)
importFrom(dplyr,rbind_all)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,tbl_df)
Expand All @@ -122,8 +134,10 @@ importFrom(ggplot2,guide_legend)
importFrom(ggplot2,guides)
importFrom(ggplot2,labs)
importFrom(ggplot2,scale_x_date)
importFrom(ggplot2,scale_x_datetime)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_bw)
importFrom(gridExtra,grid.arrange)
importFrom(httr,GET)
importFrom(httr,add_headers)
importFrom(httr,build_url)
Expand All @@ -139,6 +153,8 @@ importFrom(lubridate,today)
importFrom(lubridate,year)
importFrom(lubridate,ymd)
importFrom(methods,is)
importFrom(rappdirs,user_cache_dir)
importFrom(scales,comma)
importFrom(scales,date_breaks)
importFrom(scales,date_format)
importFrom(stats,complete.cases)
Expand Down
12 changes: 12 additions & 0 deletions R/aaa.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# base app folder for rappdirs
rnoaa_app_name <- "rnoaa"
rnoaa_cache_dir <- rappdirs::user_cache_dir(rnoaa_app_name)

# for the caches for the meteo verbs
rnoaa_meteo_dir <- file.path(rnoaa_cache_dir, "meteo")

# Create cache dir on load if it doesn't exit
.onLoad <- function(libname, pkgname) {
dir.create(rnoaa_meteo_dir, showWarnings = FALSE, recursive = TRUE)
invisible()
}
Loading

0 comments on commit 97aee14

Please sign in to comment.