rnim VS box

Compare rnim vs box and see what are their differences.

box

Write reusable, composable and modular R code (by klmr)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
rnim box
6 31
24 808
- -
5.2 7.8
over 2 years ago 7 days ago
Nim R
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rnim

Posts with mentions or reviews of rnim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-04.
  • Deeplearning in Nim?
    6 projects | /r/nim | 4 Jul 2022
    While indeed we are less people developing stuff in Nim compared to even the Julia community (which itself is of course much smaller than say Python), we do have cover a large amount of the typical needs in the scientific computing domain. And where we miss stuff it's a) easy to wrap C/C++ or b) simply call Julia, R or Python (As a personal reference I'm doing data analysis & numerical physics stuff in context of my PhD in physics and I literally do everything in Nim. The only significant C dependency {and only as a shared lib} I depend on is libhdf5 via nimhdf5).
  • Stan in Nim?
    5 projects | /r/nim | 25 May 2022
    use Rnim to access the R bindings
  • Anyone attempted to make Nim serve R's role? How is it currently?
    3 projects | /r/nim | 24 May 2022
    If you're willing to help out, you'll surely be able to do anything you need. If Nim libraries fail, you can also always call R directly from Nim via Rnim!
  • Generate Python extensions using Nim language
    5 projects | news.ycombinator.com | 15 Apr 2022
    Maybe also of interest is a nascent package for R calling Nim (or vice versa): https://github.com/SciNim/rnim
  • Nim -- a modern "glue" language like Python
    9 projects | dev.to | 11 Oct 2021
    c2nim is a tool to translate ANSI C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand after the translation process. If you are tired of wrapping C library, you can try futhark which supports "simply import C header files directly into Nim". Similar to futhark, cinterop allows one to interop with C/C++ code without having to create wrappers. nimLUA is a glue code generator to bind Nim and Lua together using Nim's powerful macro. nimpy and nimporter is a bridge between Nim and Python. rnim is a bridge between R and Nim. nimjl is a bridge between Nim and Julia! Last but not least, genny generates a shared library and bindings for many languages such as Python, Node.js, C.
  • What would you like to see from an R2 / R++ / R#
    3 projects | /r/Rlanguage | 27 Mar 2021
    I am risking to be offtopic, but there is somenthing interesting happening in Nim, where someone wrote a wrapper to R: https://github.com/SciNim/rnim

box

Posts with mentions or reviews of box. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-04.
  • Can someone explain how R project are organized and deployed?
    5 projects | /r/rprogramming | 4 Mar 2023
    As for organising code within a project, as mentioned packages really don’t allow this beyond collation order. The best solution in this space is the ‘box’ package which implements a fully-featured module system for R. ‘box’ notably gets used by some folks to implement large-scale Shiny applications; if this is what you’re after, I would recommend the ‘rhino’ framework, which builds upon Siny and ‘box’.
  • Does anyone feel like R is actually vastly worse for dependency/environment management than Python?
    3 projects | /r/datascience | 15 Nov 2022
    I would look into box https://github.com/klmr/box if you haven’t heard of it already
  • "Managing large codebases in R" webinar (Oct. 6, 2022)
    2 projects | /r/rstats | 13 Oct 2022
    Shapeless plug: check out the already mentioned ‘box’, I think it’s strictly superior to ‘import’ (but I’m biased).
  • Restructuring a large R project. Need advice on how to wire up file paths and associated objects.
    2 projects | /r/Rlanguage | 23 Mar 2022
    I think your use-case is best addressed by the ‘targets’ package. But I would also recommend checking out the ‘box’ package for a more general way of structuring R projects in modules which isn’t supported well natively by R (disclaimer: I wrote that package). Writing R code as modules fundamentally side-steps the issue of having to deal with absolute paths. Instead, all code and data are either contained in the module or can be accessed relative to the working directory.
  • How do you organize your code snippets/notes?
    2 projects | /r/rstats | 6 Oct 2021
    Check out ‘box’, it’s designed precisely to solve (most of) your issues. Namely, it allows you to organise your R code files into (nested) modules, which can either be part of one project, or they can be stored centrally, and reused seamlessly across projects. It also allows you to document your code and makes this documentation available just like package documentation.
  • Creating your own R package
    2 projects | /r/rstats | 30 May 2021
    I'll also name drop the Box package, which serves like a middle of the road option between creating packages and sourcing scripts. It allows you to treat scripts (and the functions inside them) like packages without having to go through all the extra steps to build packages. In that way, it's more similar to creating and importing python modules.
  • import functions from a package without loading the package
    3 projects | /r/rstats | 10 Apr 2021
    I don't fully understand what happens when you attach a package, so I can't speak to your question about side-effects. However, if you're looking for an alternative, possibly safer, strategy, you might try the package box.
    3 projects | /r/rstats | 10 Apr 2021
    There is: use the ‘box’ package. It allows this and more. In your specific case, you’d write
  • Reference project for an R 2+2=4 style application coverage, testthat and a build file
    3 projects | /r/Rlanguage | 31 Mar 2021
    That said, I’ve been playing with a framework for command line applications in R (as a ‘box’ module), and I guess you could call the example application “2+2=4” style (it’s a command line calculator, complete with automatically generated option parser etc.).
  • What would you like to see from an R2 / R++ / R#
    3 projects | /r/Rlanguage | 27 Mar 2021
    You can do that with ‘box’, check it out!

What are some alternatives?

When comparing rnim and box you can also consider the following projects:

genny - Generate a shared library and bindings for many languages.

renv - renv: Project environments for R.

c2nim - c2nim is a tool to translate Ansi C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand before and after the translation process.

ggplot2 - An implementation of the Grammar of Graphics in R

nimpy - Nim - Python bridge

Datamancer - A dataframe library with a dplyr like API

nimLUA - glue code generator to bind Nim and Lua together using Nim's powerful macro

nimhdf5 - Wrapper and some simple high-level bindings for the HDF5 library for the Nim language

stan - Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.

tidytable - Tidy interface to 'data.table'

futhark - Automatic wrapping of C headers in Nim

ggplotnim - A port of ggplot2 for Nim