Publications by shikokuchuo
mirai Parallel Clusters
A surprise I came to write this post because I was surprised by its findings. The seed for it came from a somewhat obscure source: the Tokyo.R slack channel. This is actually a fairly vibrant R community. In any case, there was a post by an R user suprised to find parallel computation much slower than the sequential alternative – even though he h...
5196 sym R (693 sym/3 pcs) 6 img
nanonext – High Performance Persistent HTTP Sessions
Shikokuchuo Persistent http(s) sessions is a new feature added in nanonext 0.7.3. This allows for efficient polling by keeping an open connection with the server, transacting as and when needed. Provides an ideal, low-latency solution to requesting real time data over a REST API, especially when there are limits in place for the frequency of ne...
1329 sym R (1089 sym/3 pcs) 2 img
nanonext – a web toolkit
Shikokuchuo The previous two articles have centered on the main uses which led to the creation of Nanonext – the desire to bridge code written in different languages, as well as the ability to perform actions concurrently. This article aims to highlight the additional features that have been built around the core capabilities in the NNG libra...
4459 sym R (3866 sym/8 pcs) 2 img
Re-introducing mirai – a minimalist async evaluation framework for R
Shikokuchuo {mirai} is a minimalist async evaluation framework for R. 未来 みらい mirai is Japanese for ‘future’. mirai provides an extremely simple and lightweight method for concurrent / parallel code execution. Since the original ‘introduction’ article two months ago, mirai is currently in its fourth incarnation, hence the need ...
3938 sym R (724 sym/5 pcs) 2 img
nanonext – how it provides a concurrency framework for R
Shikokuchuo The nanonext package, featured in RStudio’s Top 40 New CRAN Packages for January 2022 has been steadily evolving, adding significant new features, with the aysnc ‘Aio’ interface now considered complete since release 0.3.0 hit CRAN earlier in March. Hence, time to introduce why this is a ‘concurrency framework’ and not ‘ju...
5614 sym R (2123 sym/7 pcs) 2 img
R | Selenium
sha256 1 809e2e2a3967742faea6f9e11e0a4c533511f9710ac41812dcbcae3c78913cac Shikokuchuo Use case Whenever you need to programmatically drive a web browser. Most often: to scrape information behind a login screen when the http server does not return a simple html document Initial setup ...
1700 sym R (1275 sym/4 pcs) 2 img
Distill for R Markdown
sha256 1 db79682f8bee39d7ed9231200fd076ebed92a4471a9f3ce611d0a5a28bb984a3 Shikokuchuo Created using Distill This website was created using Distill for R Markdown, a web publishing format optimised for scientific and technical communication. Key advantages R markdown to run R code (and...
2486 sym R (389 sym/4 pcs) 2 img
Github Actions with R
sha256 1 6f5b37d9b73dcd70f3c8b68eabbe00c4a709f2a3e694d964121af145105f1655 Shikokuchuo Github Actions with R Set up a cron job to run your R scripts at specified times. Enabled with a simple yaml configuration file. Save the following as main.yml in .github/workflows of your Github repo...
1202 sym R (913 sym/2 pcs) 2 img
ichimoku
sha256 1 9b787ca60956d571ad9686d55815fcff38fce9d550ccb1310c0b9c11dfa8069e Shikokuchuo An implementation in R of the Ichimoku Kinkō Hyō (一目均衡表) charting system, also commonly known as ‘cloud charts’. The technique is a refinement on candlestick charting originating from ...
4069 sym R (394 sym/5 pcs) 6 img
do.call / lapply
sha256 1 2074954df14cc65b017b3e9d4b291353151672d450f2b623acc2a5d253767e42 Shikokuchuo Use case The use of the do.call / lapply combination is a powerful way to leverage functional programming in R. In short, you write a function that performs some actions and apply it to a list of inpu...
2632 sym R (1609 sym/6 pcs) 4 img