convert csv to xpt and sas7bdat by sas script file convert_csv2sas.sas which can be run inside sas to make genuine xpt and sas7bdat files generated by sas software
install.packages('devtools')
devtools::install_github('asancpt/puresas')
write.csv(Theoph, 'Theoph.csv', row.names = FALSE)
write.csv(Indometh, 'Indometh.csv', row.names = FALSE)
csv2sas() # Means "Current directory"