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

Downloading datasets not working with here package, but fine with file.path #12

Open
jackdolgin opened this issue Jun 26, 2020 · 0 comments

Comments

@jackdolgin
Copy link

jackdolgin commented Jun 26, 2020

Such a great package! Just thought it might be worth noting, for anyone else with the same issue, using the file directory package here seems to have issues interacting with this ipeds package.

For example,

library(tidyverse)
library(ipeds)
library(here)

# this downloads a .Rda file that is only 80 bytes large and is empty
options('ipeds.download.dir' = here("Data", "IPEDS"))
download_ipeds(year = 2012)

# trying URL 'https://nces.ed.gov/ipeds/tablefiles/zipfiles/IPEDS_2011-12_Final.zip'
# Content type 'application/x-zip-compressed' length 50987484 bytes (48.6 MB)
# ==================================================
# downloaded 48.6 MB
# 
# File not found
# Couldn't open database.
# Warning message:
# In system(paste("mdb-tables -1", file), intern = TRUE) :
#  running command 'mdb-tables -1 /Users/path/IPEDS201112.accdb' had status 1


# but the following downloads the correct files and information inside those files
options('ipeds.download.dir' = file.path("Data", "IPEDS"))
download_ipeds(year = 2012)

Note, I'm running this on a Mac 10.15.5 with R 4.0, and my ipeds versions is 2.0.2

@jackdolgin jackdolgin changed the title dsa Downloading not working with here package, but fine with file.path Jun 26, 2020
@jackdolgin jackdolgin changed the title Downloading not working with here package, but fine with file.path Downloading datasets not working with here package, but fine with file.path Jun 26, 2020
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

1 participant