No Clocks

No Clocks

2584 bookmarks
Custom sorting
Explain R environments like I’m five
Explain R environments like I’m five
“Can you explain me what are environments in R?”The beginning of a series of blogpost about R concepts, explained to mydaughter. Side note: no, my daughter is not five, and she’s not named Alice. Andshe doesn’t speak english either ¯\(ツ)/¯.“Daddy, I’ve seen you reading this book with a weird chapter named‘Environments in R’. What does it mean?”“Alice darling, just sit down for a minute.Let’s say the world is a big computer, and everyone living in it is apiece of information we call ‘data’. Right now, we are at home, and homeis a small piece from the whole world. In R, these smaller places arecalled environments, and they are used just as our home: they cancontain data, and we can refer to these data with names which arespecific to the environment.For example, when we are at home, there are five pieces of data: you,me, mommy, and the two cats. At home, I can say ‘Darling’, and as we arein this small subset of the whole world where ‘darling’ refers to you,I’m pretty sure I will find you. But if I go in another home, that isto say in another environment with other data, another dad is callinghis daughter ‘Darling’. In this small other environment, different fromours, ‘Darling’ does not refer to the same piece of data. And the samegoes for “Mommy” and “Daddy”: in another home, they refer to otherpersons.If I go out in the wild world and try to use the word ‘Mommy’, thiswon’t specifically refer to your mum, as there are not one single‘Mommy’ in this world, and because this word refers to someonespecific to the home we are using it in. In the wild world, if I want torefer to your mum, I’ll need to specify from which home the ‘Mommy’ I’mlooking for is coming from.”“So why don’t we use the full name every time then? It seems simpler.”“Environments allow us to use the same word to refer to different data,depending on where we are using the word. It also allows to giveinformation about a piece of data: it’s quite normal to think that afather uses ‘Darling’ to refer to someone he loves very very much. Evenif, strictly speaking, nothing prevents the contrary from happening.Also, it wouldn’t be fair to only allow only one ‘Darling’ in the wholeworld. Thanks to environment, there won’t be any problem if every fatherin the world use this word, as it refers, in each home, to a specificlittle girl.”“Ok, thanks dadddy!”“You’re welcome, Darling”The R code behindAbout environments# Creating two houseshome
·colinfay.me·
Explain R environments like I’m five
Mastering Software… by Roger D. Peng et al. [PDF/iPad/Kindle]
Mastering Software… by Roger D. Peng et al. [PDF/iPad/Kindle]
This book covers R software development for building data science tools. This book provides rigorous training in the R language and covers modern software development practices for building tools that are highly reusable, modular, and suitable for use in a team-based environment or a community of developers. (Printed copies coming soon!)
·leanpub.com·
Mastering Software… by Roger D. Peng et al. [PDF/iPad/Kindle]
Pack YouR Code
Pack YouR Code
This book showcases a basic example of how to create an R package based on S3 classes.
·gastonsanchez.com·
Pack YouR Code
haciduru/kal: This is a script that you can use to encrypt data using Rscript command line tool. It would be impossibly difficult to decrypt the data if you had not seen the code in this file.
haciduru/kal: This is a script that you can use to encrypt data using Rscript command line tool. It would be impossibly difficult to decrypt the data if you had not seen the code in this file.
This is a script that you can use to encrypt data using Rscript command line tool. It would be impossibly difficult to decrypt the data if you had not seen the code in this file. - GitHub - hacidur...
·github.com·
haciduru/kal: This is a script that you can use to encrypt data using Rscript command line tool. It would be impossibly difficult to decrypt the data if you had not seen the code in this file.
I really should talk about {capsule} #rstats :: Miles McBain —
I really should talk about {capsule} #rstats :: Miles McBain —
This is a post I’ve been meaning to write for some time now about {capsule}. {capsule} provides alternative workflows to {renv} for establishing and working with controlled package libraries in R. It also uses an renv.lock so it is compatible with {renv} - you can switch between doing things the {capsule} way and the {renv} or vice versa at any time. Introducing an R package I wrote nearly three years ago Carefully curating a controlled package environment the {renv} way can be kind of a chore.
·milesmcbain.micro.blog·
I really should talk about {capsule} #rstats :: Miles McBain —
Build Your Own Universe
Build Your Own Universe
Learn R, R tutorials, R resources, blog posts and the latest updates about the statistical programming R language.
·rweekly.org·
Build Your Own Universe
5 Best IDEs for R Programming in 2023
5 Best IDEs for R Programming in 2023
Here are some of the best IDEs for R programming that can help in complex data analysis and provide an easy to navigate UI. Also listed are some lightweight online R compilers to help you work on the go.
·geekflare.com·
5 Best IDEs for R Programming in 2023
Put R in prod
Put R in prod
Tools and guides for putting R in production
·putrinprod.com·
Put R in prod
Determining system dependencies for R projects
Determining system dependencies for R projects
Locking down R package dependencies and versions is a solved problem, thanks to the easy-to-use renv package. System dependencies — those Linux packages that need to be installed to make certain R packages work — are a bit harder to manage. Option 1: Hard-coding The easiest option is to hard-code the system dependencies. I did this recently when I was creating a Dockerfile for a very simple Plumber API: RUN apt-get update -qq && apt-get -y --no-install-recommends install \ make \ libsodium-dev \ libicu-dev \ libcurl4-openssl-dev \ libssl-dev My Dockerfile used only three R packages and so its system dependencies were not complicated.
·mdneuzerling.com·
Determining system dependencies for R projects
getsysreqs/get-sysreqs.R at main · mdneuzerling/getsysreqs
getsysreqs/get-sysreqs.R at main · mdneuzerling/getsysreqs
Determine system requirements from R packages using the RStudio Package Manager. This is a weekend project, not a real package, so please think twice before using it for anything serious. - getsys...
·github.com·
getsysreqs/get-sysreqs.R at main · mdneuzerling/getsysreqs
A perfect RStudio layout
A perfect RStudio layout
Tiny things can separate life into “before” and “after”. Here is one. For almost a year I’ve been daily sending mental “thank you” to Ugo (@ugobas) who showed me how to re-organize panes in RStudio. Since then I’ve been spreading this tiny improvement so many times that I thought the tiny advise deserved a separate tiny post. Please note, below is an opinionated view of a comfortable UI improvement; feel free to ignore it if you don’t like. This advise is highly subjective, though, I really believe it is useful.
·ikashnitsky.github.io·
A perfect RStudio layout
RStudio Shortcuts and Tips
RStudio Shortcuts and Tips
We deliver software development and ML solutions for Fortune 500 companies. We are an RStudio Full Service Certified Partner and global leaders in R Shiny.
·appsilon.com·
RStudio Shortcuts and Tips
Persistent config and data for R packages - R-hub blog
Persistent config and data for R packages - R-hub blog
Does your R package work best with some configuration? You probably want it to be easily found by your package. Does your R package download huge datasets that don’t change much on the provider side? Maybe you want to save the corresponding data somewhere persistent so that things will go faster during the next R session. In this blog post we shall explain how an R package developer can go about using and setting persistent configuration and data on the user’s machine.
·blog.r-hub.io·
Persistent config and data for R packages - R-hub blog