Now that we can communicate with the display from python and know how to use python from within R, we can I found, however, Nvim R to be an awesome headless substitute (if you are happy using vi, that is). Since we are operating on a headless Raspberry Pi, there is no point in trying to install RStudio. You should now have R ready to run on your Raspberry Pi. Sudo ln -s /opt/R/4.0.2/bin/Rscript /usr/local/bin/RscriptĪnd that’s already it. configure -prefix=/opt/R/4.0.2 -enable-R-shlib -with-blas -with-lapackĬonfigure: error: PCRE2 library and headers are required, or use -with-pcre1 and PCRE >= 8.32 with UTF-8 support # uncomment first line in /etc/apt/source.list I loosely followed the guide posted here: wget I ended up compiling R from source, which was surprisingly simple. Here but always ran into the problem that the package r-base-core Package sources, but I wanted to have version 4.0.2. I was only able to install version 3.6 from the Installing R on the Raspberry Pi turned out to be trickier than I thought. In the rest of this post, I’ll walk through all the steps necessary to set up the display to be used with R code. So whatever you display on the screen, it better not be something that changes every few seconds (mine changes every 10 minutes). The downside of the screen is the resolution (800×480, which is still quite high for an E-Paper display!) and the long refresh time (~2-3 seconds for this model but can go up to 15-20 seconds for colored output). This YouTube video does a very good job in explaining the technicalities. Raspberry Pi 3 B+ (Raspberry Pi 4 certainly works too)Į-Paper displays are kind of awesome since they can display an image without using any electricity (once it is loaded). This is what you need to build such a dashboard yourself: So I set out to build one myself and it turned out quite nice. Raspberry Pi dashboard, where very little handy skills are needed. The practical skills (like soldering) for most projects you can find on the internet. I have always been intrigued by the Raspberry Pi, but never really engaged with it since I lack This post is about a DIY adventure of mine with a little R code on the side. For once, this is not a post on an R package for network analysis or random R code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |