Toy Post: Per-Post Nix Dependencies
[This article was first published on Econometrics and Free Software, 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.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
This is a toy post demonstrating per-post Nix dependencies.
This post has a corresponding 2025-12-31-toy-post.nix file that adds the purrr package to the environment.
library(purrr) # Use purrr to demonstrate it's available result <- map_dbl(1:5, ~ .x^2) print(result)
[1] 1 4 9 16 25
The purrr package is not in the base posts/default.nix, but it’s available here because of the post-specific .nix file!
To leave a comment for the author, please follow the link and comment on their blog: Econometrics and Free Software.
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.