In search for a Julia analog of an R's package

Yes, I would say that’s right, at least for one-off usages. I’d say the hierarchy is:

  1. Just use RCall to call R
  2. Write a package which depends on RCall to wrap the R library, exposing a Julia API
  3. Write a pure-Julia port of the R functionality

Sometimes 2 and 3 can go hand-in-hand, i.e. you could start with 2 and gradually replace some functionality with pure-Julia ports.

2 Likes