galaaz | tightly coupling Ruby and R. It substitutes the SciCom
kandi X-RAY | galaaz Summary
kandi X-RAY | galaaz Summary
Galaaz is a system for tightly coupling Ruby and R. Ruby is a powerful language, with a large community, a very large set of libraries and great for web development. However, it lacks libraries for data science, statistics, scientific plotting and machine learning. On the other hand, R is considered one of the most powerful languages for solving all of the above problems. Maybe the strongest competitor to R is Python with libraries such as NumPy, Panda, SciPy, SciKit-Learn and a couple more. With Galaaz we do not intend to re-implement any of the scientific libraries in R, we allow for very tight coupling between the two languages to the point that the Ruby developer does not need to know that there is an R engine running. According to Wikipedia "Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan." It reached high popularity with the development of Ruby on Rails (RoR) by David Heinemeier Hansson. RoR is a web application framework first released around 2005. It makes extensive use of Ruby's metaprogramming features. With RoR, Ruby became very popular. According to Ruby's Tiobe index it peeked in popularity around 2008, then declined until 2015 when it started picking up again. At the time of this writing (November 2018), the Tiobe index puts Ruby in 16th position as most popular language. Python, a language similar to Ruby, ranks 4th in the index. Java, C and C++ take the first three positions. Ruby is often criticized for its focus on web applications. But Ruby can do much more than just web applications. Yet, for scientific computing, Ruby lags way behind Python and R. Python has Django framework for web, NumPy for numerical arrays, Pandas for data analysis. R is a free software environment for statistical computing and graphics with thousands of libraries for data analysis.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of galaaz
galaaz Key Features
galaaz Examples and Code Snippets
Community Discussions
Trending Discussions on galaaz
QUESTION
I'm writing a new engine for knitr. This engine can, depending on the input, generate a plot as either a ggplot object (list) or stored in a file (.png). I'm trying to output the image to the html (pdf, md) file that is generated by knitr but cannot find how.
I've tried:
include_graphics()
with the path of the file- return the ggplot object in
engine_output()
function knit_print()
with many options
nothing works!
Here is the code of the engine. It's an engine for Ruby on GraalVM (Galaaz). Calling GalaazUtil.exec_ruby
will execute the Ruby code on the same R process of knitr and return in out
the output of the execution.
When a plot in generated, there is no output... how does knitr identify that a plot was generated in the R chunk?
Now assuming that I have access to the generated image in a file, how to I make this show in my knitr html page?
...ANSWER
Answered 2019-Feb-14 at 23:33Please see the "Details" section on the help page ?knitr::engine_output
. You can use knitr::include_graphics()
. Here is a toy example (include the R logo):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install galaaz
Install Ruby (gu install Ruby)
Install FastR (gu install R)
Install rake if you want to run the specs and examples (gem install rake)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page