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

Error in basename(self$data$url) : path too long #3

Open
bmpacifique opened this issue Nov 18, 2019 · 1 comment
Open

Error in basename(self$data$url) : path too long #3

bmpacifique opened this issue Nov 18, 2019 · 1 comment

Comments

@bmpacifique
Copy link

remotes::install_gitlab("dickoa/rhxl") ## rhdx dependency
remotes::install_gitlab("dickoa/rhdx") ## github mirror also avalailable
install.packages("gifski")
library(tidyverse)
library(sf)
library(rhdx)
library(gganimate)
set_rhdx_config()
wca <- pull_dataset("west-and-central-africa-administrative-boundaries-levels") %>%
get_resource(1) %>%
read_resource(folder = "/data")

reading layer: wca_adm0

glimpse(wca)
g5_ab <- wca %>%
filter(admin0Pcod %in% c("BF", "ML", "NE", "MR", "TD"))
g5_ab %>%
ggplot() +
geom_sf() +
theme_minimal()
solr_query <- "organization:acled AND groups:(mli OR bfa OR tcd OR mrt OR ner)"
g5_acled <- search_datasets(query = "conflict data",
fq = solr_query)
g5_acled <- g5_acled[1:5] ## pick the first 5 the 6th is the Africa wide dataset

create a helper function to read resources from each dataset

read_acled_data <- function(dataset) {
dataset %>%
get_resource(1) %>%
read_resource(force_download = TRUE)
}
g5_acled_data <- map_df(g5_acled, read_acled_data)

dickoa added a commit that referenced this issue Dec 2, 2019
@dickoa
Copy link
Owner

dickoa commented Dec 4, 2019

@bmpacifique I hope all is good, I made a commit that is fixing this issues on my machine.
Can you please check and report back so that we can close the issue.
Thanks again

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