Skip to content
Prev 386688 / 398502 Next

Windows path backward slash

Hi Bill,
  r"{C:\Users\Anbu\Desktop\sas\}"  - This is the key and code below worked.
fsasdat<-function(dsn) {
  pat=r"{C:\Users\Anbu\Desktop\sas\}"
  str1=str_c(pat,dsn,".sas7bdat")
  read_sas(str1)
#return(str1)
}
allmetrx=fsasdat("all")
str(allmetrx)

Thank you.

Anbu.


On Thu, Dec 24, 2020 at 12:12 PM Bill Dunlap <williamwdunlap at gmail.com>
wrote: