Skip to content

Commit

Permalink
Add utils import
Browse files Browse the repository at this point in the history
  • Loading branch information
tpaskhalis committed Apr 26, 2018
1 parent aba722f commit 0bd82f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/download.R
Expand Up @@ -197,7 +197,7 @@ parse_links <- function(url, type) {
# Check file extensions of extracted urls
paths <- unlist(lapply(lapply(urls, httr::parse_url), `[[`, "path"))
splitpaths <- strsplit(paths, split = "/")
fls <- unlist(lapply(splitpaths, tail, n = 1))
fls <- unlist(lapply(splitpaths, utils::tail, n = 1))
exts <- vapply(fls, tools::file_ext, character(1))
if (type == "csv") {
links <- urls[exts == "csv"]
Expand Down

0 comments on commit 0bd82f3

Please sign in to comment.