0

I am trying to connect .SAS files to Power BI Desktop that sit on network drive.

I have tried the below steps

  1. Installed R
  2. Installed package sas7bdat
  3. Tried the below snippet
require(sas7bdat)
input<-read.sas7bdat("Filepath&name.sas")

But I face the below error.

enter image description here

Can someone please help me?

MrFlick
  • 195,160
  • 17
  • 277
  • 295
Sai
  • 47
  • 1
  • 2
  • 7
  • there are other packages to read sas files in R as well. e.g., `haven` is a good package ([usage](https://github.com/samkart/readwrite/blob/master/readwrite/R/readwrite.r)). Or, read [this](https://stackoverflow.com/questions/30006822/read-sas-sas7bdat-data-into-r) SO Q/A – samkart Sep 07 '21 at 17:14
  • Why would you try to read a program as if it was a dataset? SAS will store the text of the program in the `.sas` file. It would store data into a `.sas7bdat` file. – Tom Sep 07 '21 at 17:20
  • A .sas file is a text file with programs, it usually does not contain data at all. – Reeza Sep 07 '21 at 17:32

0 Answers0