galaaz 0.4.10 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/LICENSE +0 -0
  4. data/README.md +3123 -882
  5. data/Rakefile +62 -41
  6. data/bin/galaaz-bootstrap +137 -0
  7. data/bin/galaaz-jruby +14 -0
  8. data/bin/galaaz_jruby_env.inc.sh +6 -0
  9. data/bin/gbookdown +64 -0
  10. data/bin/gknit +223 -6
  11. data/bin/gknit-draft +105 -0
  12. data/bin/gknit-draft.rb +28 -0
  13. data/bin/gknit_Rscript +127 -0
  14. data/bin/grun +27 -1
  15. data/bin/gstudio +49 -4
  16. data/bin/{gstudio.rb → gstudio_irb.rb} +0 -0
  17. data/bin/gstudio_pry.rb +7 -0
  18. data/bin/install-tinytex +6 -0
  19. data/bin/run_all_rspec +43 -0
  20. data/bin/run_example +14 -0
  21. data/bin/run_old_rspec +19 -0
  22. data/bin/run_rspec +23 -0
  23. data/bin/run_rspec_subset +38 -0
  24. data/bin/run_slow_rspec +19 -0
  25. data/blogs/R-on-Rails-Planning-Document.md +940 -0
  26. data/blogs/README.md +100 -0
  27. data/blogs/galaaz_ggplot/galaaz_ggplot.Rmd +38 -66
  28. data/blogs/galaaz_ggplot/galaaz_ggplot.log +754 -0
  29. data/blogs/galaaz_ggplot/galaaz_ggplot.md +364 -0
  30. data/blogs/galaaz_ggplot/galaaz_ggplot.tex +607 -0
  31. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-html/midwest_rb.png +0 -0
  32. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-html/scatter_plot_rb.png +0 -0
  33. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-markdown_github/midwest_rb.png +0 -0
  34. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-markdown_github/scatter_plot_rb.png +0 -0
  35. data/blogs/galaaz_ggplot/midwest.Rmd +3 -3
  36. data/blogs/galaaz_ggplot/midwest_external_png +0 -0
  37. data/blogs/gknit/gknit.Rmd +52 -55
  38. data/blogs/gknit/gknit.md +94 -94
  39. data/blogs/gknit/gknit_files/figure-html/bubble-1.png +0 -0
  40. data/blogs/gknit/gknit_files/figure-html/diverging_bar.png +0 -0
  41. data/blogs/gknit/lst.rds +0 -0
  42. data/blogs/gknit/model.rb +1 -1
  43. data/blogs/gknit/stats.bib +0 -0
  44. data/blogs/manual/include_model_local_repro.Rmd +14 -0
  45. data/blogs/manual/include_model_local_repro.md +75 -0
  46. data/blogs/manual/lst.rds +0 -0
  47. data/blogs/manual/manual.Rmd +1582 -196
  48. data/blogs/manual/manual.log +1786 -0
  49. data/blogs/manual/manual.md +3107 -890
  50. data/blogs/manual/manual.tex +3018 -1086
  51. data/blogs/manual/manual_files/figure-html/bubble-1.png +0 -0
  52. data/blogs/manual/manual_files/figure-html/diverging_bar.png +0 -0
  53. data/blogs/manual/manual_files/figure-latex/bubble-1.png +0 -0
  54. data/blogs/manual/model.rb +41 -0
  55. data/blogs/nse_dplyr/nse_dplyr.Rmd +277 -151
  56. data/blogs/nse_dplyr/nse_dplyr.log +928 -0
  57. data/blogs/nse_dplyr/nse_dplyr.md +457 -293
  58. data/blogs/oh_my/not_so.rb +0 -0
  59. data/blogs/oh_my/oh_my.Rmd +1234 -25
  60. data/blogs/oh_my/oh_my.log +804 -0
  61. data/blogs/oh_my/oh_my.md +1808 -228
  62. data/blogs/oh_my/oh_my.tex +821 -0
  63. data/blogs/oh_my/old.Rmd +15 -14
  64. data/blogs/ruby_plot/ruby_plot.Rmd +58 -82
  65. data/blogs/ruby_plot/ruby_plot.log +885 -0
  66. data/blogs/ruby_plot/ruby_plot.md +71 -103
  67. data/blogs/ruby_plot/ruby_plot.tex +940 -0
  68. data/blogs/ruby_plot/ruby_plot_files/figure-html/dose_len.png +0 -0
  69. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_delivery.png +0 -0
  70. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_dose.png +0 -0
  71. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color.png +0 -0
  72. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color2.png +0 -0
  73. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_decorations.png +0 -0
  74. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.png +0 -0
  75. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_points.png +0 -0
  76. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_box_plot.png +0 -0
  77. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.png +0 -0
  78. data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.png +0 -0
  79. data/blogs/ruby_plot/ruby_plot_files/figure-latex/dose_len.png +0 -0
  80. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facet_by_delivery.png +0 -0
  81. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facet_by_dose.png +0 -0
  82. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_by_delivery_color.png +0 -0
  83. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_by_delivery_color2.png +0 -0
  84. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_decorations.png +0 -0
  85. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_jitter.png +0 -0
  86. data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_points.png +0 -0
  87. data/blogs/ruby_plot/ruby_plot_files/figure-latex/final_box_plot.png +0 -0
  88. data/blogs/ruby_plot/ruby_plot_files/figure-latex/final_violin_plot.png +0 -0
  89. data/blogs/ruby_plot/ruby_plot_files/figure-latex/violin_with_jitter.png +0 -0
  90. data/blogs/test/test.Rmd +14 -0
  91. data/examples/50Plots_MasterList/Images/midwest-scatterplot.PNG +0 -0
  92. data/examples/50Plots_MasterList/ScatterPlot.rb +0 -0
  93. data/examples/50Plots_MasterList/scatter_plot.rb +0 -0
  94. data/examples/Bibliography/master.bib +50 -0
  95. data/examples/Bibliography/stats.bib +72 -0
  96. data/examples/R/calc.R +0 -0
  97. data/examples/R/java_interop.R +0 -0
  98. data/examples/bioconductor_deseq2_airway/Documentation/DESeq2-airway-walkthrough.md +56 -0
  99. data/examples/bioconductor_deseq2_airway/bench_galaaz_three_same_process.rb +53 -0
  100. data/examples/bioconductor_deseq2_airway/bench_r_three_same_process.R +34 -0
  101. data/examples/bioconductor_deseq2_airway/deseq2_airway_galaaz.rb +33 -0
  102. data/examples/bioconductor_deseq2_airway/deseq2_airway_galaaz_optimized.rb +34 -0
  103. data/examples/bioconductor_deseq2_airway/deseq2_airway_minimal.R +30 -0
  104. data/examples/bioconductor_deseq2_airway/deseq2_airway_pipeline_for_bench.R +36 -0
  105. data/examples/islr/all.rb +13 -0
  106. data/examples/islr/ch2.spec.rb +37 -7
  107. data/examples/islr/ch3.spec.rb +11 -2
  108. data/examples/islr/ch3_boston.rb +27 -0
  109. data/examples/islr/ch3_multiple_regression.rb +0 -0
  110. data/examples/islr/ch6.spec.rb +24 -1
  111. data/examples/islr/x_y_rnorm.jpg +0 -0
  112. data/examples/latex_templates/Test-acm_article/Makefile +16 -0
  113. data/examples/latex_templates/Test-acm_article/Test-acm_article.Rmd +65 -0
  114. data/examples/latex_templates/Test-acm_article/acm_proc_article-sp.cls +1670 -0
  115. data/examples/latex_templates/Test-acm_article/sensys-abstract.cls +703 -0
  116. data/examples/latex_templates/Test-acm_article/sigproc.bib +59 -0
  117. data/examples/latex_templates/Test-acs_article/Test-acs_article.Rmd +260 -0
  118. data/examples/latex_templates/Test-acs_article/acs-Test-acs_article.bib +11 -0
  119. data/examples/latex_templates/Test-acs_article/acs-my_output.bib +11 -0
  120. data/examples/latex_templates/Test-acs_article/acstest.bib +17 -0
  121. data/examples/latex_templates/Test-aea_article/AEA.cls +1414 -0
  122. data/{blogs/gknit/marshal.dump → examples/latex_templates/Test-aea_article/BibFile.bib} +0 -0
  123. data/examples/latex_templates/Test-aea_article/Test-aea_article.Rmd +108 -0
  124. data/examples/latex_templates/Test-aea_article/aea.bst +1269 -0
  125. data/examples/latex_templates/Test-aea_article/multicol.sty +853 -0
  126. data/examples/latex_templates/Test-aea_article/references.bib +0 -0
  127. data/examples/latex_templates/Test-aea_article/setspace.sty +546 -0
  128. data/examples/latex_templates/Test-amq_article/Test-amq_article.Rmd +256 -0
  129. data/examples/latex_templates/Test-amq_article/Test-amq_article.pdfsync +3397 -0
  130. data/examples/latex_templates/Test-ams_article/Test-ams_article.Rmd +215 -0
  131. data/examples/latex_templates/Test-ams_article/amstest.bib +436 -0
  132. data/examples/latex_templates/Test-asa_article/Test-asa_article.Rmd +153 -0
  133. data/examples/latex_templates/Test-asa_article/agsm.bst +1353 -0
  134. data/examples/latex_templates/Test-asa_article/bibliography.bib +233 -0
  135. data/examples/latex_templates/Test-ieee_article/IEEEtran.bst +2409 -0
  136. data/examples/latex_templates/Test-ieee_article/IEEEtran.cls +6346 -0
  137. data/examples/latex_templates/Test-ieee_article/Test-ieee_article.Rmd +175 -0
  138. data/examples/latex_templates/Test-ieee_article/mybibfile.bib +20 -0
  139. data/examples/latex_templates/Test-rjournal_article/RJournal.sty +335 -0
  140. data/examples/latex_templates/Test-rjournal_article/RJreferences.bib +18 -0
  141. data/examples/latex_templates/Test-rjournal_article/Test-rjournal_article.Rmd +52 -0
  142. data/examples/latex_templates/Test-springer_article/Test-springer_article.Rmd +65 -0
  143. data/examples/latex_templates/Test-springer_article/bibliography.bib +26 -0
  144. data/examples/latex_templates/Test-springer_article/spbasic.bst +1658 -0
  145. data/examples/latex_templates/Test-springer_article/spmpsci.bst +1512 -0
  146. data/examples/latex_templates/Test-springer_article/spphys.bst +1443 -0
  147. data/examples/latex_templates/Test-springer_article/svglov3.clo +113 -0
  148. data/examples/latex_templates/Test-springer_article/svjour3.cls +1431 -0
  149. data/examples/misc/baseball.csv +0 -0
  150. data/examples/misc/ggplot.rb +3 -2
  151. data/examples/misc/moneyball.rb +0 -0
  152. data/examples/misc/subsetting.rb +0 -0
  153. data/examples/multithread_shards_to_r/shards_to_r.rb +67 -0
  154. data/examples/rmarkdown/svm-rmarkdown-anon-ms-example/svm-rmarkdown-anon-ms-example.Rmd +73 -0
  155. data/examples/rmarkdown/svm-rmarkdown-article-example/svm-rmarkdown-article-example.Rmd +382 -0
  156. data/examples/rmarkdown/svm-rmarkdown-beamer-example/svm-rmarkdown-beamer-example.Rmd +164 -0
  157. data/examples/rmarkdown/svm-rmarkdown-cv/svm-rmarkdown-cv.Rmd +92 -0
  158. data/examples/rmarkdown/svm-rmarkdown-syllabus-example/attend-grade-relationships.csv +482 -0
  159. data/examples/rmarkdown/svm-rmarkdown-syllabus-example/svm-rmarkdown-syllabus-example.Rmd +280 -0
  160. data/examples/rmarkdown/svm-xaringan-example/svm-xaringan-example.Rmd +386 -0
  161. data/examples/sthda_ggplot/README.md +0 -0
  162. data/examples/sthda_ggplot/RUN.md +41 -0
  163. data/examples/sthda_ggplot/all.rb +0 -0
  164. data/examples/sthda_ggplot/one_variable_continuous/density_gg.rb +0 -0
  165. data/examples/sthda_ggplot/one_variable_continuous/geom_area.rb +0 -0
  166. data/examples/sthda_ggplot/one_variable_continuous/geom_density.rb +2 -0
  167. data/examples/sthda_ggplot/one_variable_continuous/geom_dotplot.rb +0 -0
  168. data/examples/sthda_ggplot/one_variable_continuous/geom_freqpoly.rb +0 -0
  169. data/examples/sthda_ggplot/one_variable_continuous/geom_histogram.rb +0 -0
  170. data/examples/sthda_ggplot/one_variable_continuous/histogram_density.rb +0 -0
  171. data/examples/sthda_ggplot/one_variable_continuous/stat.rb +0 -0
  172. data/examples/sthda_ggplot/one_variable_discrete/bar.rb +0 -0
  173. data/examples/sthda_ggplot/qplots/box_violin_dot.rb +0 -0
  174. data/examples/sthda_ggplot/qplots/scatter_plots.rb +0 -0
  175. data/examples/sthda_ggplot/scatter_gg.rb +0 -0
  176. data/examples/sthda_ggplot/two_variables_cont_bivariate/geom_bin2d.rb +0 -0
  177. data/examples/sthda_ggplot/two_variables_cont_bivariate/geom_density2d.rb +0 -0
  178. data/examples/sthda_ggplot/two_variables_cont_bivariate/geom_hex.rb +0 -0
  179. data/examples/sthda_ggplot/two_variables_cont_cont/geom_point.rb +0 -0
  180. data/examples/sthda_ggplot/two_variables_cont_cont/geom_smooth.rb +0 -0
  181. data/examples/sthda_ggplot/two_variables_cont_cont/misc.rb +0 -0
  182. data/examples/sthda_ggplot/two_variables_cont_function/geom_area.rb +4 -3
  183. data/examples/sthda_ggplot/two_variables_disc_cont/geom_bar.rb +0 -0
  184. data/examples/sthda_ggplot/two_variables_disc_cont/geom_boxplot.rb +0 -0
  185. data/examples/sthda_ggplot/two_variables_disc_cont/geom_dotplot.rb +0 -0
  186. data/examples/sthda_ggplot/two_variables_disc_cont/geom_jitter.rb +0 -0
  187. data/examples/sthda_ggplot/two_variables_disc_cont/geom_line.rb +0 -0
  188. data/examples/sthda_ggplot/two_variables_disc_cont/geom_violin.rb +0 -0
  189. data/examples/sthda_ggplot/two_variables_disc_disc/geom_jitter.rb +0 -0
  190. data/examples/sthda_ggplot/two_variables_error/geom_crossbar.rb +0 -0
  191. data/ext/new_bridge/Makefile +46 -0
  192. data/ext/new_bridge/galaaz_gatekeeper_phase0.cpp +12 -0
  193. data/ext/new_bridge/galaaz_gatekeeper_phase1.cpp +1639 -0
  194. data/lib/R_interface/galaaz_device.R +20 -0
  195. data/lib/R_interface/include_engine.R +109 -0
  196. data/lib/R_interface/new_bridge_adapter.rb +824 -0
  197. data/lib/R_interface/r.rb +177 -25
  198. data/lib/R_interface/r_arrow.rb +113 -0
  199. data/lib/R_interface/r_libs.R +4 -4
  200. data/lib/R_interface/r_methods.rb +13 -116
  201. data/lib/R_interface/r_module_s.rb +0 -0
  202. data/lib/R_interface/rbinary_operators.rb +20 -2
  203. data/lib/R_interface/rclosure.rb +5 -1
  204. data/lib/R_interface/rdata_frame.rb +34 -70
  205. data/lib/R_interface/rdevice.rb +125 -0
  206. data/lib/R_interface/rdevices.R +0 -0
  207. data/lib/R_interface/renvironment.rb +10 -4
  208. data/lib/R_interface/rexpression.rb +5 -1
  209. data/lib/R_interface/rindexed_object.rb +41 -13
  210. data/lib/R_interface/rlanguage.rb +20 -62
  211. data/lib/R_interface/rlist.rb +115 -25
  212. data/lib/R_interface/rlogical_operators.rb +0 -0
  213. data/lib/R_interface/rmatrix.rb +2 -11
  214. data/lib/R_interface/rmd_indexed_object.rb +5 -1
  215. data/lib/R_interface/robject.rb +348 -290
  216. data/lib/R_interface/rpkg.rb +1 -0
  217. data/lib/R_interface/rsupport.rb +610 -331
  218. data/lib/R_interface/rsupport_scope.rb +2 -1
  219. data/lib/R_interface/rsymbol.rb +50 -0
  220. data/lib/R_interface/ruby_callback.rb +2 -3
  221. data/lib/R_interface/ruby_extensions.rb +225 -175
  222. data/lib/R_interface/runary_operators.rb +0 -0
  223. data/lib/R_interface/rvector.rb +147 -31
  224. data/lib/galaaz.rb +0 -0
  225. data/lib/galaaz_jruby.rb +22 -0
  226. data/lib/gknit/diagnostics.rb +50 -0
  227. data/lib/gknit/draft.rb +111 -0
  228. data/lib/gknit/include_engine.rb +15 -7
  229. data/lib/gknit/knitr_engine.rb +223 -107
  230. data/lib/gknit/rb_engine.rb +3 -3
  231. data/lib/gknit/ruby_engine.rb +0 -0
  232. data/lib/gknit.rb +3 -0
  233. data/lib/new_bridge/bootstrap/windows_bootstrap.rb +285 -0
  234. data/lib/new_bridge/envelope.rb +51 -0
  235. data/lib/new_bridge/eval_result.rb +26 -0
  236. data/lib/new_bridge/framing.rb +39 -0
  237. data/lib/new_bridge/instance_pool_client.rb +38 -0
  238. data/lib/new_bridge/r_instance_manager.rb +404 -0
  239. data/lib/new_bridge/session_client.rb +530 -0
  240. data/lib/new_bridge/tcp_framed.rb +44 -0
  241. data/lib/new_bridge.rb +9 -0
  242. data/lib/util/exec_ruby.rb +95 -46
  243. data/lib/util/inline_file.rb +35 -30
  244. data/new_bridge_specs/benchmark_phase5_5_unboxing_spec.rb +96 -0
  245. data/new_bridge_specs/eval_r_async_spec.rb +113 -0
  246. data/new_bridge_specs/integration_phase5_1_concurrent_spec.rb +50 -0
  247. data/new_bridge_specs/integration_phase5_1_eval_spec.rb +16 -0
  248. data/new_bridge_specs/integration_phase5_1_r_api_spec.rb +25 -0
  249. data/new_bridge_specs/integration_phase5_1_smoke_spec.rb +31 -0
  250. data/new_bridge_specs/integration_phase5_2_dataframe_unboxing_spec.rb +19 -0
  251. data/new_bridge_specs/integration_phase5_2_handle_eval_unboxing_spec.rb +25 -0
  252. data/new_bridge_specs/integration_phase5_3_callback_args_spec.rb +28 -0
  253. data/new_bridge_specs/integration_phase5_3_callback_error_spec.rb +22 -0
  254. data/new_bridge_specs/integration_phase5_3_callback_timeout_spec.rb +28 -0
  255. data/new_bridge_specs/integration_phase5_3_callbacks_smoke_spec.rb +22 -0
  256. data/new_bridge_specs/integration_phase5_3_edge_cases_spec.rb +52 -0
  257. data/new_bridge_specs/integration_phase5_3_nested_spec.rb +30 -0
  258. data/new_bridge_specs/integration_phase5_4_concurrent_sessions_spec.rb +53 -0
  259. data/new_bridge_specs/integration_phase5_4_nested_session_callbacks_spec.rb +49 -0
  260. data/new_bridge_specs/integration_phase5_4_session_routing_spec.rb +38 -0
  261. data/new_bridge_specs/integration_phase5_5_stress_concurrency_spec.rb +52 -0
  262. data/new_bridge_specs/integration_phase5_5_unbox_walk_spec.rb +46 -0
  263. data/new_bridge_specs/phase0_protocol_spec.rb +96 -0
  264. data/new_bridge_specs/phase1_req_ret_spec.rb +66 -0
  265. data/new_bridge_specs/phase2_multi_instance_spec.rb +67 -0
  266. data/new_bridge_specs/phase3_callbacks_spec.rb +71 -0
  267. data/new_bridge_specs/phase4_2_hardening_spec.rb +252 -0
  268. data/new_bridge_specs/phase4_3_r_instance_manager_spec.rb +85 -0
  269. data/new_bridge_specs/phase4_nested_callbacks_spec.rb +123 -0
  270. data/r_requires/ggplot.rb +0 -0
  271. data/r_requires/knitr.rb +0 -0
  272. data/specs/all.rb +15 -11
  273. data/specs/arrow_from_ruby_batches_spec.rb +50 -0
  274. data/specs/arrow_semantics_spec.rb +64 -0
  275. data/specs/bridge_concurrent_spec.rb +46 -0
  276. data/specs/bridge_nested_spec.rb +25 -0
  277. data/specs/dataframe_semantics_spec.rb +122 -0
  278. data/specs/dataframe_single_index_logical_filter_spec.rb +21 -0
  279. data/specs/dispatch_probe_cache_spec.rb +38 -0
  280. data/specs/dispatch_probe_error_class_fallback_spec.rb +20 -0
  281. data/specs/dispatch_probe_fallback_spec.rb +18 -0
  282. data/specs/environment_semantics_spec.rb +89 -0
  283. data/specs/field_access_spec.rb +31 -0
  284. data/specs/figures/bg.jpeg +0 -0
  285. data/specs/figures/bg.png +0 -0
  286. data/specs/figures/bg.svg +168 -57
  287. data/specs/figures/dose_len.png +0 -0
  288. data/specs/figures/no_args.jpeg +0 -0
  289. data/specs/figures/no_args.png +0 -0
  290. data/specs/figures/no_args.svg +168 -57
  291. data/specs/figures/width_height.jpeg +0 -0
  292. data/specs/figures/width_height.png +0 -0
  293. data/specs/figures/width_height_units1.jpeg +0 -0
  294. data/specs/figures/width_height_units1.png +0 -0
  295. data/specs/figures/width_height_units2.jpeg +0 -0
  296. data/specs/figures/width_height_units2.png +0 -0
  297. data/specs/formula_semantics_spec.rb +81 -0
  298. data/specs/galaaz_util_exec_ruby_spec.rb +85 -0
  299. data/specs/galaaz_util_inline_file_spec.rb +54 -0
  300. data/specs/gknit_cli_option_permutation_spec.rb +24 -0
  301. data/specs/gknit_include_engine_spec.rb +72 -0
  302. data/specs/gknit_install_timeout_report_spec.rb +69 -0
  303. data/specs/gknit_internal_error_report_spec.rb +57 -0
  304. data/specs/gknit_vector_map_output_spec.rb +59 -0
  305. data/specs/globalenv_guardrail_spec.rb +52 -0
  306. data/specs/language_expression_semantics_spec.rb +145 -0
  307. data/specs/list_semantics_spec.rb +111 -0
  308. data/specs/new_bridge_bulk_dataframe_transfer_spec.rb +44 -0
  309. data/specs/new_bridge_bulk_vector_transfer_spec.rb +73 -0
  310. data/specs/new_bridge_callback_timeout_spec.rb +69 -0
  311. data/specs/new_bridge_eval_r_fallback_spec.rb +55 -0
  312. data/specs/nil_null_spec.rb +42 -0
  313. data/specs/object_build_phase2_spec.rb +53 -0
  314. data/specs/phase1_callback_bridge_spec.rb +84 -0
  315. data/specs/phase2_gknit_generic_rendering_guardrail_spec.rb +46 -0
  316. data/specs/phase2_gknit_no_raw_code_leakage_spec.rb +43 -0
  317. data/specs/phase3_gknit_generic_graphics_capture_spec.rb +71 -0
  318. data/specs/plot_device_semantics_spec.rb +28 -0
  319. data/specs/plot_snapshot_semantics_spec.rb +58 -0
  320. data/specs/protocol_result_spec.rb +236 -0
  321. data/specs/r_batch_fail_fast_spec.rb +47 -0
  322. data/specs/r_bridge_bootstrap_spec.rb +11 -0
  323. data/specs/r_devices.spec.rb +1 -1
  324. data/specs/r_eval.spec.rb +16 -18
  325. data/specs/r_function.spec.rb +1 -1
  326. data/specs/r_instance_manager_spec.rb +285 -0
  327. data/specs/r_list_apply.spec.rb +15 -15
  328. data/specs/r_matrix.spec.rb +0 -0
  329. data/specs/r_nse.spec.rb +5 -5
  330. data/specs/r_object_send_dispatch_spec.rb +13 -0
  331. data/specs/r_vector_comparator_spec.rb +8 -0
  332. data/specs/r_vector_creation.spec.rb +0 -0
  333. data/specs/r_vector_functions.spec.rb +0 -0
  334. data/specs/r_vector_object.spec.rb +0 -0
  335. data/specs/r_vector_operators.spec.rb +0 -0
  336. data/specs/r_vector_structured_scalar_reads_spec.rb +35 -0
  337. data/specs/r_vector_subsetting.spec.rb +0 -0
  338. data/specs/range_helper_spec.rb +21 -0
  339. data/specs/rsupport_scope_spec.rb +28 -0
  340. data/specs/rsupport_var_name_thread_safety_spec.rb +24 -0
  341. data/specs/scalar_character_spec.rb +44 -0
  342. data/specs/scoped_symbol_dsl_refinement_spec.rb +40 -0
  343. data/specs/session_env_bridge_spec.rb +25 -0
  344. data/specs/simplecov_bootstrap_spec.rb +10 -0
  345. data/specs/spec_helper.rb +10 -0
  346. data/specs/tmp.rb +41 -20
  347. data/specs/unboxing_recursion_regression_spec.rb +30 -0
  348. data/specs/unboxing_spec.rb +49 -0
  349. data/specs/verify_callbacks.rb +42 -0
  350. data/sty/galaaz.sty +0 -0
  351. data/version.rb +1 -1
  352. metadata +239 -71
  353. data/blogs/galaaz_ggplot/galaaz_ggplot.aux +0 -41
  354. data/blogs/galaaz_ggplot/galaaz_ggplot.html +0 -705
  355. data/blogs/galaaz_ggplot/galaaz_ggplot.out +0 -10
  356. data/blogs/galaaz_ggplot/galaaz_ggplot.pdf +0 -0
  357. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-latex/midwest_rb.pdf +0 -0
  358. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-latex/scatter_plot_rb.pdf +0 -0
  359. data/blogs/galaaz_ggplot/midwest.html +0 -188
  360. data/blogs/gknit/gknit.html +0 -2266
  361. data/blogs/gknit/gknit.pdf +0 -0
  362. data/blogs/gknit/gknit.tex +0 -1358
  363. data/blogs/manual/graph.rb +0 -29
  364. data/blogs/manual/manual.html +0 -2995
  365. data/blogs/manual/manual.pdf +0 -0
  366. data/blogs/manual/manual_files/figure-latex/diverging_bar.pdf +0 -0
  367. data/blogs/nse_dplyr/nse_dplyr.html +0 -960
  368. data/blogs/nse_dplyr/nse_dplyr.pdf +0 -0
  369. data/blogs/nse_dplyr/nse_dplyr.tex +0 -1373
  370. data/blogs/oh_my/oh_my.html +0 -680
  371. data/blogs/ruby_plot/ruby_plot.Rmd_external_figs +0 -662
  372. data/blogs/ruby_plot/ruby_plot.html +0 -729
  373. data/blogs/ruby_plot/ruby_plot.pdf +0 -0
  374. data/blogs/ruby_plot/ruby_plot_files/figure-html/dose_len.svg +0 -57
  375. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_delivery.svg +0 -106
  376. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_dose.svg +0 -110
  377. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color.svg +0 -174
  378. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color2.svg +0 -236
  379. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.svg +0 -296
  380. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_points.svg +0 -236
  381. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_box_plot.svg +0 -218
  382. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.svg +0 -128
  383. data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.svg +0 -150
  384. data/examples/paper/paper.rb +0 -36
  385. data/specs/r_dataframe.spec.rb +0 -379
  386. data/specs/r_environment.spec.rb +0 -140
  387. data/specs/r_formula.spec.rb +0 -232
  388. data/specs/r_language.spec.rb +0 -112
  389. data/specs/r_list.spec.rb +0 -293
  390. data/specs/r_plots.spec.rb +0 -72
  391. data/specs/ruby_expression.spec.rb +0 -315
@@ -0,0 +1,59 @@
1
+ @ARTICLE{bowman:reasoning,
2
+ AUTHOR = "Mic Bowman and Saumya K. Debray and Larry L. Peterson",
3
+ TITLE = "Reasoning About Naming Systems",
4
+ JOURNAL = "ACM Trans. Program. Lang. Syst.",
5
+ VOLUME = {15},
6
+ NUMBER = {5},
7
+ PAGES = {795-825},
8
+ MONTH = "November",
9
+ YEAR = {1993} }
10
+
11
+ @ARTICLE{braams:babel,
12
+ AUTHOR = "Johannes Braams",
13
+ TITLE = "Babel, a Multilingual Style-Option System for Use with LaTeX's Standard Document Styles",
14
+ JOURNAL = {TUGboat},
15
+ VOLUME = {12},
16
+ NUMBER = {2},
17
+ PAGES = {291-301},
18
+ MONTH = "June",
19
+ YEAR = {1991} }
20
+
21
+ @INPROCEEDINGS{clark:pct,
22
+ AUTHOR = "Malcolm Clark",
23
+ TITLE = "Post Congress Tristesse",
24
+ BOOKTITLE = "TeX90 Conference Proceedings",
25
+ PAGES = "84-89",
26
+ ORGANIZATION = "TeX Users Group",
27
+ MONTH = "March",
28
+ YEAR = {1991} }
29
+
30
+ @ARTICLE{herlihy:methodology,
31
+ AUTHOR = "Maurice Herlihy",
32
+ TITLE = "A Methodology for Implementing Highly Concurrent
33
+ Data Objects",
34
+ JOURNAL = {ACM Trans. Program. Lang. Syst.},
35
+ VOLUME = {15},
36
+ NUMBER = {5},
37
+ PAGES = {745-770},
38
+ MONTH = "November",
39
+ YEAR = {1993} }
40
+
41
+ @BOOK{Lamport:LaTeX,
42
+ AUTHOR = "Leslie Lamport",
43
+ TITLE = "LaTeX User's Guide and Document Reference Manual",
44
+ PUBLISHER = "Addison-Wesley Publishing Company",
45
+ ADDRESS = "Reading, Massachusetts",
46
+ YEAR = "1986" }
47
+
48
+ @BOOK{salas:calculus,
49
+ AUTHOR = "S.L. Salas and Einar Hille",
50
+ TITLE = "Calculus: One and Several Variable",
51
+ PUBLISHER = "John Wiley and Sons",
52
+ ADDRESS = "New York",
53
+ YEAR = "1978" }
54
+
55
+
56
+
57
+
58
+
59
+
@@ -0,0 +1,260 @@
1
+ ---
2
+ journal: jacsat
3
+ type: article
4
+ author:
5
+ - name: Andrew N. Other
6
+ altaff: A shared footnote
7
+ - name: Fred T. Secondauthor
8
+ altaff: "Current address: Some other place, Germany"
9
+ - name: I. Ken Groupleader
10
+ altaff: A shared footnote
11
+ email: \email{i.k.groupleader@unknown.uu}
12
+ phone: +123 (0)123 4445556
13
+ fax: +123 (0)123 4445557
14
+ aff: Department of Chemistry, Unknown University, Unknown Town
15
+ alsoaff: Department of Chemistry, Second University, Nearby Town
16
+ - name: Susanne K. Laborator
17
+ email: \email{s.k.laborator@bigpharma.co}
18
+ aff: Lead Discovery, BigPharma, Big Town, USA
19
+ - name: Kay T. Finally
20
+ aff: Department of Chemistry, Unknown University, Unknown Town
21
+ alsoaff: Department of Chemistry, Second University, Nearby Town
22
+ title:
23
+ formatted: A demonstration of the \textsf{achemso} \LaTeX\
24
+ class\footnote{A footnote for the title}
25
+ short: An \textsf{achemso} demo
26
+ abbr: IR,NMR,UV
27
+ keywords: American Chemical Society, \LaTeX
28
+ abstract: |
29
+ This is an example document for the \textsf{achemso} documentclass, intended for submissions to the American Chemical Society for publication. The class is based on the standard \LaTeXe\ \textsf{report} file, and does not seek to reproduce the appearanceof a published paper.
30
+
31
+ This is an abstract for the \textsf{achemso} document class demonstration document. An abstract is only allowed for certain manuscript types. The selection of \texttt{journal} and \texttt{manuscript} will determine if an abstract is valid. If not, the class will issue an appropriate error.This is the abstract.
32
+
33
+ bibliography: acstest.bib
34
+ output: rticles::acs_article
35
+ ---
36
+
37
+ \begin{tocentry}
38
+ Some journals require a graphical entry for the Table of Contents.
39
+ This should be laid out ``print ready'' so that the sizing of the
40
+ text is correct.
41
+
42
+ Inside the \texttt{tocentry} environment, the font used is Helvetica
43
+ 8\,pt, as required by \emph{Journal of the American Chemical
44
+ Society}.
45
+
46
+ The surrounding frame is 9\,cm by 3.5\,cm, which is the maximum
47
+ permitted for \emph{Journal of the American Chemical Society}
48
+ graphical table of content entries. The box will not resize if the
49
+ content is too big: instead it will overflow the edge of the box.
50
+
51
+ This box and the associated title will always be printed on a
52
+ separate page at the end of the document.
53
+ \end{tocentry}
54
+
55
+ # Introduction
56
+ This is a paragraph of text to fill the introduction of the
57
+ demonstration file. The demonstration file attempts to show the
58
+ modifications of the standard \LaTeX\ macros that are implemented by
59
+ the \textsf{achemso} class. These are mainly concerned with content,
60
+ as opposed to appearance.
61
+
62
+ # Results and discussion
63
+
64
+ ## Outline
65
+
66
+ The document layout should follow the style of the journal concerned.
67
+ Where appropriate, sections and subsections should be added in the
68
+ normal way. If the class options are set correctly, warnings will be
69
+ given if these should not be present.
70
+
71
+ ## References
72
+
73
+ The class makes various changes to the way that references are
74
+ handled. The class loads \textsf{natbib}, and also the
75
+ appropriate bibliography style. References can be made using
76
+ the normal method; the citation should be placed before any
77
+ punctuation, as the class will move it if using a superscript
78
+ citation style [@Garnier2007].
79
+ The use of \textsf{natbib} allows the use of the various citation
80
+ commands of that package have shown
81
+ something. Long lists of authors will be
82
+ automatically truncated in most article formats, but not in
83
+ supplementary information or reviews. If you
84
+ encounter problems with the citation macros, please check that
85
+ your copy of \textsf{natbib} is up to date. The demonstration
86
+ database file \texttt{achemso-demo.bib} shows how to complete
87
+ entries correctly. Notice that ``\latin{et al.}'' is auto-formatted
88
+ using the \texttt{\textbackslash latin} command.
89
+
90
+ Multiple citations to be combined into a list can be given as
91
+ a single citation. This uses the \textsf{mciteplus} package.
92
+ Citations other than the first of the list should be indicated
93
+ with a star.
94
+
95
+ The class also handles notes to be added to the bibliography. These
96
+ should be given in place in the document. As with
97
+ citations, the text should be placed before punctuation. A note is
98
+ also generated if a citation has an optional note. This assumes that
99
+ the whole work has already been cited: odd numbering will result if
100
+ this is not the case .
101
+
102
+ ## Floats
103
+
104
+ New float types are automatically set up by the class file. The
105
+ means graphics are included as follows (Scheme \ref{sch:example}). As
106
+ illustrated, the float is ``here'' if possible.
107
+ \begin{scheme}
108
+ Your scheme graphic would go here: \texttt{.eps} format\\
109
+ for \LaTeX\, or \texttt{.pdf} (or \texttt{.png}) for pdf\LaTeX\\
110
+ \textsc{ChemDraw} files are best saved as \texttt{.eps} files:\\
111
+ these can be scaled without loss of quality, and can be\\
112
+ converted to \texttt{.pdf} files easily using \texttt{eps2pdf}.\\
113
+ %\includegraphics{graphic}
114
+ \caption{An example scheme}
115
+ \label{sch:example}
116
+ \end{scheme}
117
+
118
+ ```{r,echo=FALSE,fig.cap='test'}
119
+ plot(1:10)
120
+ ```
121
+
122
+ \begin{figure}
123
+ As well as the standard float types \texttt{table}\\
124
+ and \texttt{figure}, the class also recognises\\
125
+ \texttt{scheme}, \texttt{chart} and \texttt{graph}.
126
+ \caption{An example figure}
127
+ \label{fgr:example}
128
+ \end{figure}
129
+
130
+ Charts, figures and schemes do not necessarily have to be labelled or
131
+ captioned. However, tables should always have a title. It is
132
+ possible to include a number and label for a graphic without any
133
+ title, using an empty argument to the \texttt{\textbackslash caption}
134
+ macro.
135
+
136
+ The use of the different floating environments is not required, but
137
+ it is intended to make document preparation easier for authors. In
138
+ general, you should place your graphics where they make logical
139
+ sense; the production process will move them if needed.
140
+
141
+ ## Math(s)
142
+
143
+ The \textsf{achemso} class does not load any particular additional
144
+ support for mathematics. If packages such as \textsf{amsmath} are
145
+ required, they should be loaded in the preamble. However,
146
+ the basic \LaTeX\ math(s) input should work correctly without
147
+ this. Some inline material $y = mx + c$ or $1 + 1 = 2$
148
+ followed by some display. $$ A = \pi r^2 $$
149
+
150
+ It is possible to label equations in the usual way (Eq. \ref{eqn:example}).
151
+ \begin{equation}
152
+ \frac{\mathrm{d}}{\mathrm{d}x} \, r^2 = 2r \label{eqn:example}
153
+ \end{equation}
154
+ This can also be used to have equations containing graphical
155
+ content. To align the equation number with the middle of the graphic,
156
+ rather than the bottom, a minipage may be used.
157
+ \begin{equation}
158
+ \begin{minipage}[c]{0.80\linewidth}
159
+ \centering
160
+ As illustrated here, the width of \\
161
+ the minipage needs to allow some \\
162
+ space for the number to fit in to.
163
+ %\includegraphics{graphic}
164
+ \end{minipage}
165
+ \label{eqn:graphic}
166
+ \end{equation}
167
+
168
+ # Experimental
169
+
170
+ The usual experimental details should appear here. This could
171
+ include a table, which can be referenced as Table \ref{tbl:example}.
172
+ Notice that the caption is positioned at the top of the table.
173
+ \begin{table}
174
+ \caption{An example table}
175
+ \label{tbl:example}
176
+ \begin{tabular}{ll}
177
+ \hline
178
+ Header one & Header two \\
179
+ \hline
180
+ Entry one & Entry two \\
181
+ Entry three & Entry four \\
182
+ Entry five & Entry five \\
183
+ Entry seven & Entry eight \\
184
+ \hline
185
+ \end{tabular}
186
+ \end{table}
187
+
188
+ Adding notes to tables can be complicated. Perhaps the easiest
189
+ method is to generate these using the basic
190
+ \texttt{\textbackslash textsuperscript} and
191
+ \texttt{\textbackslash emph} macros, as illustrated (Table \ref{tbl:notes}).
192
+ \begin{table}
193
+ \caption{A table with notes}
194
+ \label{tbl:notes}
195
+ \begin{tabular}{ll}
196
+ \hline
197
+ Header one & Header two \\
198
+ \hline
199
+ Entry one\textsuperscript{\emph{a}} & Entry two \\
200
+ Entry three\textsuperscript{\emph{b}} & Entry four \\
201
+ \hline
202
+ \end{tabular}
203
+
204
+ \textsuperscript{\emph{a}} Some text;
205
+ \textsuperscript{\emph{b}} Some more text.
206
+ \end{table}
207
+
208
+ The example file also loads the optional \textsf{mhchem} package, so
209
+ that formulas are easy to input: \texttt{\textbackslash ce\{H2SO4\}}
210
+ gives \ce{H2SO4}. See the use in the bibliography file (when using
211
+ titles in the references section).
212
+
213
+ The use of new commands should be limited to simple things which will
214
+ not interfere with the production process. For example,
215
+ \texttt{\textbackslash mycommand} has been defined in this example,
216
+ to give italic, mono-spaced text: \mycommand{some text}.
217
+
218
+ # Extra information when writing JACS Communications
219
+
220
+ When producing communications for \emph{J.~Am.\ Chem.\ Soc.}, the
221
+ class will automatically lay the text out in the style of the
222
+ journal. This gives a guide to the length of text that can be
223
+ accommodated in such a publication. There are some points to bear in
224
+ mind when preparing a JACS Communication in this way. The layout
225
+ produced here is a \emph{model} for the published result, and the
226
+ outcome should be taken as a \emph{guide} to the final length. The
227
+ spacing and sizing of graphical content is an area where there is
228
+ some flexibility in the process. You should not worry about the
229
+ space before and after graphics, which is set to give a guide to the
230
+ published size. This is very dependant on the final published layout.
231
+
232
+ You should be able to use the same source to produce a JACS
233
+ Communication and a normal article. For example, this demonstration
234
+ file will work with both \texttt{type=article} and
235
+ \texttt{type=communication}. Sections and any abstract are
236
+ automatically ignored, although you will get warnings to this effect.
237
+
238
+ \begin{acknowledgement}
239
+
240
+ Please use ``The authors thank \ldots'' rather than ``The
241
+ authors would like to thank \ldots''.
242
+
243
+ The author thanks Mats Dahlgren for version one of \textsf{achemso},
244
+ and Donald Arseneau for the code taken from \textsf{cite} to move
245
+ citations after punctuation. Many users have provided feedback on the
246
+ class, which is reflected in all of the different demonstrations
247
+ shown in this document.
248
+
249
+ \end{acknowledgement}
250
+
251
+ \begin{suppinfo}
252
+
253
+ This will usually read something like: ``Experimental procedures and
254
+ characterization data for all new compounds. The class will
255
+ automatically add a sentence pointing to the information on-line:
256
+
257
+ \end{suppinfo}
258
+ ## References
259
+
260
+
@@ -0,0 +1,11 @@
1
+ This is an auxiliary file used by the `achemso' bundle.
2
+ This file may safely be deleted. It will be recreated as required.
3
+
4
+ @Control{achemso-control,
5
+ ctrl-article-title = "yes",
6
+ ctrl-chapter-title = "no",
7
+ ctrl-doi = "no",
8
+ ctrl-etal-number = "15",
9
+ ctrl-etal-firstonly = "yes",
10
+ }
11
+
@@ -0,0 +1,11 @@
1
+ This is an auxiliary file used by the `achemso' bundle.
2
+ This file may safely be deleted. It will be recreated as required.
3
+
4
+ @Control{achemso-control,
5
+ ctrl-article-title = "yes",
6
+ ctrl-chapter-title = "no",
7
+ ctrl-doi = "no",
8
+ ctrl-etal-number = "15",
9
+ ctrl-etal-firstonly = "yes",
10
+ }
11
+
@@ -0,0 +1,17 @@
1
+ @article{Garnier2007,
2
+ abstract = {The roots of swarm intelligence are deeply embedded in the biological study of self-organized behaviors in social insects. From the routing of traffic in telecommunication networks to the design of control algorithms for groups of autonomous robots, the collective behaviors of these animals have inspired many of the foundational works in this emerging research field. For the first issue of this journal dedicated to swarm intelligence, we review the main biological principles that underlie the organization of insects’ colonies. We begin with some reminders about the decentralized nature of such systems and we describe the un- derlying mechanisms of complex collective behaviors of social insects, from the concept of stigmergy to the theory of self-organization in biological systems.We emphasize in partic- ular the role of interactions and the importance of bifurcations that appear in the collective output of the colony when some of the system’s parameters change. We then propose to categorize the collective behaviors displayed by insect colonies according to four functions that emerge at the level of the colony and that organize its global behavior. Finally, we ad- dress the role of modulations of individual behaviors by disturbances (either environmental or internal to the colony) in the overall flexibility of insect colonies. We conclude that fu- ture studies about self-organized biological behaviors should investigate such modulations to better understand how insect colonies adapt to uncertain worlds.},
3
+ author = {Garnier, Simon and Gautrais, Jacques and Theraulaz, Guy},
4
+ doi = {10.1007/s11721-007-0004-y},
5
+ file = {:Users/simongarnier/Work/bibliography/Mendeley/Swarm Intelligence/2007/Garnier, Gautrais, Theraulaz - 2007.pdf:pdf},
6
+ issn = {1935-3812},
7
+ journal = {Swarm Intelligence},
8
+ keywords = {self organization collective,self-organization collective,social insects,stigmergy,swarm intelligence},
9
+ mendeley-tags = {swarm intelligence},
10
+ month = jul,
11
+ number = {1},
12
+ pages = {3--31},
13
+ title = {{The biological principles of swarm intelligence}},
14
+ url = {http://www.springerlink.com/index/10.1007/s11721-007-0004-y},
15
+ volume = {1},
16
+ year = {2007}
17
+ }