Site icon R-bloggers

Achieve your target

[This article was first published on HighlandR, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Last week I had to talk my colleagues through the architecture of an R project that we’ve been working on for a while.

This is a large project, as we make our first moves into Reproducible Analystic Pipelines, and makes heavy use of the {targets} package.

As I was going through it, I realised that it was way too complex, and it wasn’t reasonable to expect relatiely new R users to understand such a complext layout, in addition to getting to grips with {renv}, and functional programming.

A couple of days later, I had an idea for a much simpler introduction, although one that was not very practical in terms of working with data.

Here is the idea:

What do I need to do?

The code is available here https://github.com/johnmackintosh/bing

install.packages(c("targets","magick"), dependencies = TRUE)

# you might need visNetwork too
# install.packages(c("visNetwork"))

How will this help me?

It introduces you to the concepts, without having to engage with any intensive data manipulation or plotting.

The key things to understand:

Why Chandler?

A few years ago, I was asked to do a speaker bio for an event (possibly the first NHS-R conference).
While everybody else did a proper, professional one, all I could think of was that I was “a poor man’s Chandler Bing”.

Quite a lot of people seemed to think this was a fair asssessment.

Can this be improved?

Sure. Here are some ideas for more transformations :

Further help and guidance

You will find a link to an earlier post on the targets package in the “related posts” section below, which you may also find helpful.

To leave a comment for the author, please follow the link and comment on their blog: HighlandR.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Exit mobile version