dfe-analytical-services / analysts-guide

A static website to hold guidance, helpful links and code examples for analysts working in DfE.
https://dfe-analytical-services.github.io/analysts-guide/
MIT License
3 stars 0 forks source link

Added R/SQL DBI varchar(max) error solution #21

Closed rmbielby closed 10 months ago

rmbielby commented 10 months ago

Overview of changes

Created a new using R to connect to SQL section and moved the existing running SQL queries in R section into it. Added a short intro section on dplyr and then added the error and associated fix for the DBI varchar(max) bug.

Why are these changes being made?

The SQL in R section was a bit light on some useful topics now that more people are using R in this way. The DBI bug is quite a common one so needed referencing, but also didn't look like we'd really given much attention to dbplyr in the existing guidance.

Checklist before requesting a review