{"id":13994919,"url":"https://github.com/clbustos/rinruby","last_synced_at":"2025-07-22T21:31:12.584Z","repository":{"id":881053,"uuid":"625949","full_name":"clbustos/rinruby","owner":"clbustos","description":"Ruby library that integrates the R interpreter in Ruby, making R's statistical routines and graphics available within Ruby.","archived":false,"fork":false,"pushed_at":"2024-06-26T15:40:27.000Z","size":208,"stargazers_count":153,"open_issues_count":17,"forks_count":41,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-09-19T16:18:49.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rinruby.ddahl.org/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clbustos.png","metadata":{"files":{"readme":"README.md","changelog":"History.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-23T20:27:46.000Z","updated_at":"2024-03-11T12:45:59.000Z","dependencies_parsed_at":"2022-07-15T04:30:32.818Z","dependency_job_id":null,"html_url":"https://github.com/clbustos/rinruby","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Frinruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Frinruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Frinruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Frinruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clbustos","download_url":"https://codeload.github.com/clbustos/rinruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177682,"owners_count":17743142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T14:03:10.678Z","updated_at":"2024-11-29T17:30:42.322Z","avatar_url":"https://github.com/clbustos.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# rinruby\n* http://rinruby.ddahl.org/\n\n\n[![Build Status](https://travis-ci.org/clbustos/rinruby.svg?branch=master)](https://travis-ci.org/clbustos/rinruby)\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/d6cdb002c01f4a696ff3/maintainability)](https://codeclimate.com/github/clbustos/rinruby/maintainability)\n\n### DESCRIPTION\n\nRinRuby is a Ruby library that integrates the R interpreter in Ruby, making R's statistical routines and graphics available within Ruby.  The library consists of a single Ruby script that is simple to install and does not require any special compilation or installation of R.  Since the library is 100% pure Ruby, it works on a variety of operating systems, Ruby implementations, and versions of R.  RinRuby's methods are simple, making for readable code.  The [website *rinruby.ddahl.org*](http://rinruby.ddahl.org) describes RinRuby usage, provides comprehensive documentation, gives several examples, and discusses RinRuby's implementation.\n\n\nCopyright 2005-2008 David B. Dahl\n\nDeveloped by David B. Dahl. Documented by David B. Dahl and Scott Crawford\n\nHomepage: http://rinruby.ddahl.org\n\n*Maintainer*: Claudio Bustos\n\n*Contributors*:\n \n- [fenrir-naru](https://fenrir.naruoka.org) \n\n### FEATURES/PROBLEMS\n\n* Pure Ruby. Works on Ruby 2.1, 2.2, 2.4 and JRuby-head (2018/03/29). There isn't any specific code that impides to use Ruby \u003c 2.0, but is deprecated.\n* Slower than RSRuby, but more robust\n\n### SYNOPSIS\n\nBelow is a simple example of RinRuby usage for simple linear regression. The simulation parameters are defined in Ruby, computations are performed in R, and Ruby reports the results. In a more elaborate application, the simulation parameter might come from input from a graphical user interface, the statistical analysis might be more involved, and the results might be an HTML page or PDF report. \n\n#### Code\n\n      require \"rinruby\"\n      n = 10\n      beta_0 = 1\n      beta_1 = 0.25\n      alpha = 0.05\n      seed = 23423\n      R.x = (1..n).entries\n      R.eval \u003c\u003cEOF\n          set.seed(#{seed})\n          y \u003c- #{beta_0} + #{beta_1}*x + rnorm(#{n})\n          fit \u003c- lm( y ~ x )\n          est \u003c- round(coef(fit),3)\n          pvalue \u003c- summary(fit)$coefficients[2,4]\n      EOF\n      puts \"E(y|x) ~= #{R.est[0]} + #{R.est[1]} * x\"\n      if R.pvalue \u003c alpha\n        puts \"Reject the null hypothesis and conclude that x and y are related.\"\n      else\n        puts \"There is insufficient evidence to conclude that x and y are related.\"\n      end\n\n#### Output\n\n      E(y|x) ~= 1.264 + 0.273 * x\n      Reject the null hypothesis and conclude that x and y are related.\n\n### REQUIREMENTS\n\n* R\n\n### INSTALL\n\n* sudo gem install rinruby\n\n\n### LICENSE\n\nGPL-3. See LICENSE.txt for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclbustos%2Frinruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclbustos%2Frinruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclbustos%2Frinruby/lists"}