On 7 March 2009 at 17:40, Pietro Battiston wrote:
| Well, as you prefer. I can certainly create a man page, obviously very
| small, almost a debianized
|       <<this is R with graphics, see "man R" for more info>>
| , but this raises another problem to me: maybe I should also enchance
| slightly the rcmdr script so that it forwards command line arguments to
| R. Any reason against that reasoning? I ask because I'm really not an R
| expert, but still I don't think this would break anything.

It's trivial, just add "$@" in

     #!/bin/sh
     R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R "$@"

This leaves my terminal in a funny state after R / Rcmdr exit and I always
have to call reset.  
 
| That said, I'd prefer rcmdr to be in /usr/bin, because as I said it's
| useful even by itself as a script. But if upstream thinks it is useful
| but it doesn't comply with installation mode, I think it can be put
| in /usr/lib/R/site-library/ and just linked from /usr/bin (and I'd still
| write a man page).

Yes, it definitely could be added (if John sees fit to do so) under maybe
inst/linux/ or something so that it ends up in $InstalledPkgPath/linux eg
            /usr/lib/R/site-library/Rcmdr/linux/

I personally do not think it is all that generally useful, and I remain on
the sidelines relative to installing in /usr/bin. It's the type of think you
can define easily as your personal bash alias in your ~/.profile or
~/.bashrc.

And as I said above, it is also buggy.  Surely good enough to be called from
a menu, for the cmdline use I am not so sure. Most people still call R as R,
I think, and are happy to just load Rcmdr.

| > 
| > | /usr/share/applications/rcmdr.desktop : 
| > | 
| > | ------------------- 8< -------------------------
| > | [Desktop Entry]
| > | Categories=Education;Science;Math;
| > | Comment=Graphical interface to the R environment for statistical
| > | computing
| > | Comment[fr]=Environnement graphique pour le logiciel de calcul
| > | statistique R
| > | Comment[it]=Interfaccia grafica per l'ambiente di calcolo statistico R
| > | Exec=/usr/bin/rcmdr
| > | Icon=/usr/share/R/doc/html/logo.jpg
| > | Name=R Commander
| > | Terminal=true
| > | Type=Application
| > | X-KDE-SubstituteUID=false
| > | 
| > | ------------------- 8< -------------------------
| > | 
| > | 
| > | Please notice that:
| > | - I would have preferred to not put R Commander under "Education", since
| > | this is quite reductive. However, I'm afraid this is inevitable (see for
| > | instance [0]).
| > 
| > I don't follow, and I don't see why a gnome.org bugreport is relevant. 
Debian
| > has its own hierarchies.  For R, I use an (older-style) menu file with
| > 
| >     section="Applications/Science/Data Analysis"    
| > 
| > Aren't the menu and desktop entries derived the same way?
| 
| Well, as far as I know, GNOME and KDE (and hopefully all major
| environments) refer to
| http://standards.freedesktop.org/menu-spec/latest/apa.html
| , where "Science" is not a main category... though it could be soon or
| later:
| http://lists.freedesktop.org/archives/xdg/2007-June/008456.html
| 
| Are sure your other menu file is "older-style" and not "Debian style"?
| Since for example Ubuntu doesn't have (by default) the Debian menu, I'd
| like to comply to the freedesktop standard... (or did I misundestand
| something?)

I see what you mean. The Debian menus predates the freedesktop stuff. I am
not sure which is more relevant for me inside Debian. 
 
| > | - I'm filing the bug here, I frankly ignore if upstream is interested in
| > | this kind of desktop issues; the maintainer has probably better
| > | knowledge than me. Anyway, the patch has almost no maintenance cost,
| > | since it doesn't touch upstream code.
| > 
| > That's a pretty narrow view. The desktop file is not distro-specific, so it
| > should go upstream.
| 
| great...

Well you have to convince John to include it, maybe again in inst/linux/.

Dirk

| Pietro
| 
| 
| 

-- 
Three out of two people have difficulties with fractions.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to