Course
Defensive R Programming
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Prerequisites
Intermediate RAvoiding Conflict
Early warning systems
Preparing your defenses
Creating a Battle Plan
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
What is defensive programming and why does it matter in R?
Defensive programming is a set of standard techniques to reduce bugs and improve team collaboration. It helps you write more reliable R code through consistent practices and proper error handling.
What specific topics does this course cover?
You learn package conflict management, using messages and warnings and errors effectively, R coding best practices, and when to transition from scripts to projects to packages.
Is this course for beginners or experienced R users?
It is beginner level, requiring only Introduction to R and Intermediate R. It is ideal for anyone who can write R scripts but wants to write more robust, production-quality code.
Does the course cover organizing R projects and packages?
Yes. Chapter 4 teaches good organizational practices for moving from a single script to a structured project with multiple files and eventually to an R package.
How long does this course take to complete?
It has 4 chapters with 51 exercises. The median completion time is about 1.2 hours, making it a quick course focused on practical programming habits.
Join over 19 million learners and start Defensive R Programming today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.