sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.37k stars 462 forks source link

Let R pick up system/user configuration files #22682

Open novoselt opened 7 years ago

novoselt commented 7 years ago

Some 9 year old code in R interface prevents it from picking up any configuration and forces PNG plotting. This was changed for a while in SageMathCell version to implement plotting support, see https://groups.google.com/d/topic/sage-support/NUIxQcMJLjk/discussion for some details and discussion.

Depends on #20523

CC: @embray @EmmanuelCharpentier

Component: packages: standard

Author: Andrey Novoseltsev

Branch/Commit: u/novoselt/R_plots @ 528b40a

Issue created by migration from https://trac.sagemath.org/ticket/22682

novoselt commented 7 years ago

Branch: u/novoselt/R_plots

novoselt commented 7 years ago
comment:2

Would be nice to incorporate this change into Sage, it is one of 3 little things that are still different in SageMathCell special branch.

I am not entirely sure how to test the change. All tests pass for me and as for functionality - locally plotting works with and without, while remotely it does not work currently anyway.


New commits:

528b40aLet R pick up system/user configuration files
novoselt commented 7 years ago

Author: Andrey Novoseltsev

novoselt commented 7 years ago

Commit: 528b40a

7822f248-ba56-45f1-ab3d-4de7482bdf9f commented 7 years ago

Dependencies: 20523

7822f248-ba56-45f1-ab3d-4de7482bdf9f commented 7 years ago
comment:3

I'll have a look at this, but don't hold your breath...

I'm a bit wary of "not forcing the PNG device" : this one is the default fallback for a lot of R graphics and is used (alas) by a lot of R interfaces. What do you plan to do ?

I'm also thinking of suggesting a couple of build-time dependencies for R :

I also plan to add, in a separate ticket, openssl as a standard package. This will cut the SSL licensing nonsense we have heard more than once recently...

Adding embray to Cc : I hear that Cygwin can be a bitch... Adding aMac OS/X user interested in R would also be a good idea. Who ?

Also, depending on #20523 seems a good idea : our curent 3.2.4-revised version is an antique...

novoselt commented 7 years ago
comment:5

Replying to @EmmanuelCharpentier:

I'm a bit wary of "not forcing the PNG device" : this one is the default fallback for a lot of R graphics and is used (alas) by a lot of R interfaces. What do you plan to do ?

Yet somehow on a remote server I get errors about X11 rather than PNG plot... In any case what I would like is to set this default if at all necessary via some external files/variables, not have it hard-coded in Sage interface. Also - don't R people want their graphics to display well? So don't they already have some sensible default way which makes it unnecessary to fiddle with in most cases? And in others perhaps users have configured R appropriately via configuration files, so I propose to pick up those settings. SageMathCell does this https://github.com/sagemath/sagecell/blob/master/contrib/vm/container_manager.py#L434