[R-sig-Debian] Open a text file with vi/vim in another Terminal

2021-12-17 Thread Patrice Kiener



With Debian and macOS, the default editor (getenv("EDITOR") or 
getOption("editor")) is "vi" which opens vi/vim. The following instruction:


  fileREP <- file.path(R.home("etc"), "repositories")
  system2(getOption("editor"), fileREP, wait = FALSE)

works fine with Windows but is inappropriate in the Debian/RStudio/RCode 
console as it launchs vi/vim, warns about input and outputs and prints 
the text file WITHIN the R console and then does nothing. Closing vi/vim 
requires a manual action. In several tests, I even had to force R to 
recover. Hence My question is:


What is the system(), sytem2(), eventually file.edit() instruction that 
opens the text file with vi/vim in a NEW Unix terminal and allows to 
keep working in the R console?


Thank you for your advices.

--
Patrice Kiener

___
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian


Re: [R-sig-Debian] R 4.0 for ARM processors

2020-07-16 Thread Patrice Kiener


2 years ago at one Meetup in Paris, Marc Girondot, professor at 
University Paris-Saclay, presented his cluster built with 12 Odroid 
(equivalent to Rapsberry Pi). The stack was almost the same size than 
your picture as there was no fan and a narrower distance between each 
PCB card. There were many more cables. For a total cost of less than 
1000 € and an electrical consumption reduced by a factor of 7, he got 
the same calculation capabilities than the most expensive Intel i7 
processor. He used an Arch Linux distribution and Spark to distribute 
the load to every processor and then centralize the results to one 
processor equipped with a keyboard, a mouse, a screen and a hard disk.

https://www.meetup.com/fr-FR/rparis/events/252405360/
https://www.minimachines.net/actu/avec-lodroid-c2-hardkernel-tient-un-vrai-concurrent-a-la-rasperry-pi-3-38411
https://max2.ese.u-psud.fr/epc/conservation/index.html
https://www.ese.universite-paris-saclay.fr/en/team-members/marc-girondot/


Patrice


 >> My RPi cluster sits on the file cabinet next to my desk, all four 
boards. Yes, you could argue that it's merely a toy but it's bigger 
and cheaper than the AWS box that currently hosts my web site, RStudio 
server, and Shiny server!

 > Got it. Missed the cluster part earlier and then confused myself 
looking for
arm64 16core machines. There aren't any :)

 >> For the truly curious, you can view my RPi cluster here: 
https://photos.app.goo.gl/kALwoYCVxJ32VgxEA

 > Neat :)  Very geek chic!


Patrice



[[alternative HTML version deleted]]

___
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian


Re: [R-sig-Debian] R-4.0.0 and Texlive 2020 installed on EmmabuntusDE4 (Debian Bullseye)

2020-04-29 Thread Patrice Kiener



Hi Johannes,


Thank you for your comments. I run
  sudo apt install -t bullseye-cran40 r-base

and have now the current R-4.0.0 in /usr/lib/R with links in the menus 
and R-devel R-4.1.0 in ~/patrice/svn/R/r-devel/build. Perfect.


I used sid just to get the full Texlive 2020. I will probably not update 
it for a while and have already removed (commented) the sid line in 
sources.list as I do not want to break my system with too much fresh 
libraries. Indeed, we want to be on the edge for a few software (R, 
Texlive) and are conservative for all other parts of the OS. Thanks for 
the tips on /etc/apt/preferences.


Regarding the key, you can probably move the section at the top of the 
documentation as it is a necessary step. The key currently mentionned in 
the instruction is:
 sudo apt-key adv --keyserver keys.gnupg.net --recv-key 
'E19F5F87128899B192B1A2C2AD5F960A256A04AF'


but the one that worked for me (found in one comment in 
https://stackoverflow.com/questions/10255082/installing-r-from-cran-ubuntu-repository-no-public-key-error) 
is:

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
 FCAE2A0E115C3D8A

The length of digits is different. Maybe one is the shortest version of 
the other?


Patrice




Dear Patrice,


thanks for sharing your experience with Debian based distributions. It 
is amazing how many distros you tested!


In your situation I would recommend apt pinning for installing texlive 
2020 from Debian sid on Debian bullseye aka testing or related systems. 
Simply adding sid sources as you did will make your system upgrade to 
sid. It seems you partially upgraded some of your test systems to sid 
and were left with broken systems.


This will also apply to emmabuntü - if you just added the sid repository 
without editing /etc/apt/preferences, you will always pull packages from 
sid which may be ok for your use case, but you should be aware of it.


You would need to edit /etc/apt/preferences in order to tell apt to just 
use texlive from sid and the other packages from bullseye.


Regarding the command to add my key, this is actually there, but I 
believe it was too far down - I just moved the section on secure apt 
before the section on the different distributions. Thanks for the hint!


Regarding your attempt to use the backports for bullseye on CRAN for 
your Emmabuntüs system, chances are it would have worked if you would 
have used the command I am listing there (of course adding sudo):


  sudo apt install -t bullseye-cran40 r-base

instead of simply

  sudo apt install r-base

However, now you have the newest devel version compiled from sources for 
checking your packages on Linux which is nice as well!



Kind regards,


Johannes

___
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian


[R-sig-Debian] R-4.0.0 and Texlive 2020 installed on EmmabuntusDE4 (Debian Bullseye)

2020-04-28 Thread Patrice Kiener



Dear all,


I whish to relate my installation of R-4.0.0 on Debian.

I am mainly a Windows user and occasionnaly verify the CRAN checks of my 
packages on a second laptop equipped with Linux Mint Debian Edition 3 
(LMDE3) based on Debian Stretch. On Friday, April 24, it took me a few 
hours to have R-4.0.0 installed on Windows and the sources compiled, 
thanks to the instructions provided by Jeroen Ooms:

https://cloud.r-project.org/bin/windows/Rtools/ + links

I decided to repeat the exercise on Debian with a clean SSD disk, a 
recent Debian distribution, Texlive 2020 and R-4.0.0 to replace the 
obsolete LMDE3. The main difficulty was to find the appropriate 
distribution that accepts Texlive 2020. I downloaded and tested:


- Debian Buster 10.3 (the current stable version with a few desktops: 
Gnome, KDE-Plasma, XFCE, LXDE, LXQt, Mosaic),

- Netrunner (Debian Buster 10.3 + KDE),
- Linux Mint LMDE4 (Debian Buster 10.3 + Cinnamon),
- Emmabuntüs DE3 (Debian Buster 10.3 + XFCE),
- Xubuntu (Ubuntu + XFCE),
- Debian Bullseye (the testing version + LXQt),
- Emmabuntüs DE4 alpha (Debian Bullseye + XFCE + LXQt) published on 
April 27 (yesterday),

- Debian sid (the unstable version).

- Once again in four years, I had many difficulties with the independant 
install-tl-unix.tar.gz (*.sh) program provided by Texlive and the final 
steps with the PATH update. The program was not found and tlmgr --gui 
did not reconnect to the CTAN repository. Once again, I gave up.
- All distributions based on Buster 10.3 have Texlive 2018 in their 
repositories. In a few distributions, it is possible to write the sid 
(unstable) repository in the sources.list file:

deb http://deb.debian.org/debian/ sid main contrib

Then, a sudo apt-get update and apt search Texlive gives access to 
Texlive 2020. Unfortunately, installing Texlive 2020 this way will 
suppress Libre Office and numerous libraries, a few of them being used 
by the display manager. This is a sure way to break the distribution at 
the next startup.
- Debian Bullseye offers Texlive 2019 in its repository. Writing the sid 
 line in sources.list is again easy. But accessing it is much more 
difficult as Debian considers it unsecure, throws a warning message and 
requests some parameter change in another file (which is not clearly 
designated) to accept this repository. I kept it as a potential solution.
- The installation of Debian sid follows other paths. It is a 
distribution meant for testing and chasing bugs, not for a permanent 
use. I did not insist.


The great winner is Emmabuntüs DE4, which can be downloaded from here:
https://emmabuntus.org/emmabuntus-de4/
http://dl.emma-de4x64.emmabuntus.org/

https://emmabuntus.org/on-april-27-2020-emmade4-debian-11-bullseye-is-rolling-out-early/

(Disclaimer: I do not have any ties with the development team. I 
discovered the distribution 10 days ago when searching for alternatives 
to Ubuntu and Mint. I tested first DE3 and discovered yesterday by 
surprise that DE4 was released.)


With its predecessor DE3, they are very surprising distributions with a 
completely different philosophy than the most well-known distributions, 
like Ubuntu and Mint, on the number of preinstalled packages. They are 
meant for people who have recent 64 bits or old computers, including 32 
bits, a poor internet connection but a large usb key. A large audience 
is people in Africa, for instance Togo. When Ubuntu, Netrunner and Mint 
take 1.6 Go and offer limited software like Libre Office or Thunderbird, 
Emmabuntüs takes 3.3 Go and comes with more than 60 software for all 
usage, most of them being free and a few of them being non-free but 
ready to install like Adobe Flash for Firefox, Skype or TeamViewer 14 
(Jitsi is the recommended free solution). The menus are very long and 
ressemble a bazar in a colored environment.


To ease the configuration, the security has been relaxed and adding the 
sid repository to the sources.list file does not generate any complain, 
as did the pure Debian distribution. I was then able to access and 
download the full Texlive 2020. Due to the short period between the 
releases of Texlive and DE4, no package needs update or removal. This is 
a much better situation than the one with Buster 10.3 (see above). The 
full Texlive 2020 is 3.3 Go when compressed during the transfer and 6.2 
Go after decompression on the disk. The download from the Debian 
repository is also much faster than from the CTAN repository: 15 minutes 
against 40' with my ADSL line. I completed the installation with 
Texworks, TexStudio and Texmaker, then commented the sid line in the 
sources.list file to revert to the standard Bullseye repositories.


I then follow Johannes Ranke's instructions to install the R binaries:
https://cloud.r-project.org/bin/linux/debian/
Johannes, you should add in the instructions the following line for your 
new key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys