Skip to content

Commit

Permalink
change nekton index file download stable url to github
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Aug 27, 2024
1 parent eb63c23 commit af03208
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions R/fimdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#'
#' @examples
#' \dontrun{
#' csv <- '~/Desktop/fimdata.csv'
#' csv <- '~/Desktop/TampaBay_NektonIndexData.csv'
#'
#' fimdata <- read_importfim(csv, download_latest = FALSE)
#' fimdata <- read_importfim(csv, download_latest = TRUE)
#'
#' save(fimdata, file = 'data/fimdata.RData', compress = 'xz')
#'
Expand Down
8 changes: 4 additions & 4 deletions R/read_formfim.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#' @seealso \code{\link{read_importfim}}
#'
#' @examples
#' \dontrun{
#' # file path
#' csv <- '~/Desktop/fimraw.csv'
#' csv <- url('https://raw.githubusercontent.com/tbep-tech/tbni-proc/master/data/TampaBay_NektonIndexData.csv')
#'
#' datin <- read.csv(csv)
#'
#' # load and assign to object
#' fimdata <- read_importfim(csv)
#' }
#' fimdata <- read_formfim(datin)
read_formfim <- function(datin, locs = FALSE){

# make data sf to get bay segments
Expand Down
2 changes: 1 addition & 1 deletion R/read_importfim.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
read_importfim <- function(csv, download_latest = FALSE, locs = FALSE){

# download latest and compare with current if exists
urlin <- 'ftp://ftp.floridamarine.org/users/fim/tmac/NektonIndex/TampaBay_NektonIndexData.csv'
urlin <- 'https://raw.githubusercontent.com/tbep-tech/tbni-proc/master/data/TampaBay_NektonIndexData.csv'
read_dlcurrent(csv, download_latest, urlin = urlin)

# sanity checks
Expand Down
Binary file modified data/fimdata.RData
Binary file not shown.
4 changes: 2 additions & 2 deletions man/fimdata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/read_formfim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af03208

Please sign in to comment.