Question: how to install bsda package in r?
Answer: On Windows, download and install Rtools. On the Mac, make sure you have Xcode installed. On Linux, make sure you have the R-dev packages installed.