On Mon, Oct 30, 2017 at 03:28:23PM -0400, Adam Jensen wrote:
> Would it be difficult or awkward in any way to include PL/R [1] along
> with the PostgreSQL and R ports?
> 
> [1]: <http://www.joeconway.com/doc/doc.html>

(Without having tried) I do not see big obstacles in creating a port for
it. According to https://github.com/postgres-plr/plr/ you need

- R headers are required.

  Done: The math/R package includes all headers.

- R must have been built with the --enable-R-shlib option.

  Done: math/R is configured with "--enable-R-shlib" (see CONFIGURE_ARGS
  in math/R/Makefile).

- R_HOME must be defined in the environment of the user under which
  PostgreSQL is started, before the postmaster is started.
  
  That does not affect the port (probably a pkg/README mentioning this
  fact suffices).

http://www.joeconway.com/doc/plr-install.html shows relevant steps.
Moreover, there are already databases/postgresql-plv8 and
databases/postgresql-pllua in the ports tree which you can use as
inspiration/template.

> As long as I am presenting a wish list of sorts, include a carefully
> integrated port of RStudio [3,4] and that could make OpenBSD a very
> attractive developer/researcher platform for this arena.
> 
> [3]: <https://www.rstudio.com/>
> [4]: <https://github.com/rstudio/rstudio/>

If I remember correctly RStudio has a ton of included dependencies. It
probably takes a lot of effort to create a port for it.

IMHO: vim + NvimR (https://github.com/jalvesaq/Nvim-R) or emacs + ESS
(https://ess.r-project.org/) work well (enough for me). Most of the
RStudio R packages can be used without RStudio (like
https://github.com/jimhester/lintr) so you have almost the same
functionality.

Best regards,
Ingo

Reply via email to