If you want to export the entire project, in Your Workspace there are three icons to the right of each of the projects listed under Your Projects. Click on Export and it will create a zip file with everything in the project and download it to your computer.
If you want to export a .R or .Rmd file just follow the directions from andresrcs for a .csv file.