On Monday, June 29, 2020 6:00 AM, Zé Loff <zel...@zeloff.org> wrote:

> On Sat, Jun 27, 2020 at 01:30:13AM +0000, Brian Callahan wrote:
>
> > Hi ports --
> > Attached is a new port, math/rstudio. RStudio is the IDE for R.
>
> First of all, kudos for the effort. I tried and gave up quite a few
> times before.
>
> > pkg/DESCR:
> > RStudio is an integrated development environment (IDE) for R.
> > It includes a console, syntax-highlighting editor that supports direct
> > code execution, as well as tools for plotting, history, debugging and
> > workspace management.
> >
> > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >
> > This is a rather big port, and I am not certain that it is ready for
> > import just yet. But it is clearly at the point where it needs to be
> > shared. Looking for comments and suggestions.
> > Some notes/caveats:
> >
> > 1.  The binary lives as /usr/local/lib/rstudio/bin/rstudio. A simple
> >     script exists to allow console users easy access.
> >
> > 2.  There are no precompiled packages other than what comes with the
> >     IDE. Trying to build some (igraph, notably) exposed some potential
> >     issues with R--like how R thinks the fortran compiler is named
> >     gfortran when it should be egfortran.
> >
>
> Enviroment variables for compiling packages can be setup (need to?) in
> ~/.R/Makevars. Maybe this can help with the gfortran issue.
>

I found /usr/local/lib/R/etc/Makeconf, which I edited to change gfortran to 
egfortran. Perhaps that file should be amended for that one small change since 
the binary is always called egfortran on OpenBSD. But I'll leave that up to the 
R people. I had no idea one could override with ~/.R/Makevars.

>
> > 3.  Fonts don't render in the Plots window. Not sure why. Help
> >     appreciated.
> >
>
> pango/harfbuzz fallout, probably. Pango stopped supporting Type 1
> fonts. I have the same issue with R itself. My solution it to add
>
> options.X11(family = "DejaVu Sans")
>
> or some other TrueType family.
>

Yup, this was already mentioned to me. So not an issue with RStudio (at least, 
not directly).

> > 4.  I am only a Desktop user but I did provide the Server as well. If
> >     you use the server I'd be interested in knowing how it works.
> >
>
> The server is basically the same this but with the entire GUI served
> over HTTP, and with session control. When you login you get a new R
> session, just like with the desktop, with the added bonus of being able
> to leave it running, logout, and come back later to the same session.
>
> I think this is a prime candidate for a -no_x11 flavor, since it would
> probably be much lighter and perhaps easier to port, since it won't pull
> GUI dependencies (I think), but hey, I'm happy enough with this being
> ported as it is.
>

The Server still pulls in all the Boost libs. That leaves us with only amd64 
and arm64 being able to build RStudio. A complete wash in terms of ease of 
porting.

However, it would give us some degree of protection against qtwebengine, so 
that's something I'll look into.

~Brian

Reply via email to