American-Institutes-for-Research / EdSurvey

https://american-institutes-for-research.github.io/EdSurvey/
GNU General Public License v2.0
9 stars 8 forks source link

Difficulty loading restricted-use data #81

Open niguarino opened 2 months ago

niguarino commented 2 months ago

I am having difficulty loading restricted-use HSLS data onto a secured computer. When I was on a different restricted license for the same data in the past, I loaded files that ended in .sav (SPSS).

library(EdSurvey)

hsls_stud <- readHSLS(
  path = "path",
  filename = "F2STUDENT.sav",
  wgtFilename = "hsls_student_weights.sav"
)

I just downloaded the data from the disc for the new license that I'm on, and all the data end in .sav7bdat (SAS).

I try to load the restricted-use data in this way:

library(EdSurvey)

hsls_stud <- readHSLS(
  path = "path",
  filename = "psstudent_ruf.sas7bdat",
  wgtFilename = "psstudent_brr_ruf.sas7bdat"
)

I am getting the following error message:

Cache corrupt, attempting to reread the data. Error in value[[3L]]cond : Unable to process HSLS data. Possible file corruption with source data. Error message: Error in readRDS(cacheFileInfo$cacheMetaFilepath): unknown input format

Do you know what could be going on? I cannot paste my sessionInfo() as I am working from a restricted computer. Thanks.