Question: how to open xpt file in r?
Answer: Download and install the windows binary from the R Project site.
Launch R and from the Packages menu select install to download and install these two packages. Hmisc. ... 
Set the current directory to the directory containing the *. xpt file: (File -> Change dir …)
Issue these commands (sample uses bw.