
I have separate scripts for each tasks, named: I will typically use R scripts to do things like importing the data, cleaning up variables, typecasting variables, doing any tidying, etc. So here is my pitch.įor research projects, I use R Markdown documents versus R scripts for different purposes. This question actually sparked me to create an account here just so I could answer it! I am a professor and researcher, and R Markdown has totally changed the way I work.

I'd appreciate any examples of how and why using R Markdown has been helpful for you OR tips on how to structure projects using R Markdown that would be useful for my use case. I can see that using R Markdown for a report template that needs to be frequently updated with new data would be very useful, but I'm having trouble seeing the best way to integrate R Markdown into my work.

It seems like many people prefer R Markdown, but I haven't made the jump yet, in part because I'm not totally clear on how this would help my workflow. Sometime the projects are somewhat involved and may lead to 15+ scripts for a single project. Thus far, I've only used R scripts for my code, organizing the project so that each script does a manageable and specific chunk of the project. Outputs of the analyses often consists of CSVs that I share with coworkers, but also sometimes are research briefs that I write. In general, my work consists of one-off analyses using different datasets, rather than ongoing projects where data and results need to be updated or reported on a regular basis. Look in RStudio’s file browser pane for the README.md file.I'm a relatively new R user and most of my usage is data manipulation and statistical analysis for social science research.

This should download the README.md file from GitHub. You should find yourself in a new local RStudio Project that represents your test repo on GitHub.

In “Repository URL”, paste the URL of your new GitHub repository. File > New Project > Version Control > Git.12.3 Clone the test GitHub repository to your computer via RStudio
