0
install.packages('haven')
library(haven)
hsb1 <- read_sas("C:\\Users\\...\\hsb1.sas7bdat")

however, it does not work, please see the message below:

Error in loadNamespace(name) : there is no package called ‘readr’

My question: how to fix that?
BTW, no SAS installed in my PC, does this reason cause the error?

Marco Sandri
  • 23,289
  • 7
  • 54
  • 58
jstmj2002
  • 41
  • 1
  • 3

0 Answers0