Page 1 of 1

R programming language; installing on Wary

Posted: Sat 19 Jan 2019, 14:38
by schober
I've been running Wary 5.5 on a 1ghz P4 with 250mb ram for a few years (os on cd; sfs on hd)
I want to install R
https://en.wikipedia.org/wiki/R_%28prog ... anguage%29
https://www.r-project.org/
This looks easy if you have ubuntu!
http://www.jason-french.com/blog/2013/0 ... -in-linux/

q1 Can I get Wary's PPM to use the ubuntu/debian repositories?
There has been some discussion at
http://www.murga-linux.com/puppy/viewtopic.php?p=800137
http://www.murga-linux.com/puppy/viewto ... 201b4f6dbb
Would it work in Wary? ........... it looks quite complicated!
Also, instaling from source looks even more daunting ........... all those dependencies!
https://cran.r-project.org/doc/manuals/ ... -libraries

q2 Would it be better if I made a cd of a more suitable (& uptodate) puppy and used that instead of Wary 5.5(permanently) in order to use the ubuntu/debian repository? If so, which one?

Posted: Sat 19 Jan 2019, 21:01
by Keef
schober

I have never used R, and Wary was way back, but just for the sake of it:
R 3.1.0 sfs
It is an older version, but it compiled without any complaints, just ran ./configure then make.
I did try the latest version (3.5.2), but it has missing libs (or out of date ones), and not in the mood to chase them up right now.
'R' starts up in the console, but that is as much as I have tested it.

Posted: Sun 20 Jan 2019, 10:59
by schober
Hmmmm .................. the link leads to this site
https://www47.zippyshare.com/v/iepVNxql/file.html
which wants me to take part in a porn game!

Posted: Sun 20 Jan 2019, 13:10
by Keef
The link is working ok for me. No idea why it is playing silly buggers for you.

Posted: Sun 20 Jan 2019, 15:15
by bigpup
I think he/she is talking about the add links on that web site.

It is a little confusing, what to click on, to get your sfs package.

Posted: Sun 20 Jan 2019, 15:56
by Keef
Ah, I think may have copied the wrong link! I've used Zippy before, but it was a while ago.
I'll re-upload and try again.

EDIT - no, the link was correct.
I've uploaded again and checked that it works.

https://www52.zippyshare.com/v/EQyz8AY4/file.html

Strangely, I went back to the original, and it is behaving now.

Posted: Sun 20 Jan 2019, 16:03
by schober
I clicked the link with javascript off; the page loaded; clicked the orange download; nothing happened ; turned javascript on & refreshed - thats when things went wrong!

1)Tried 2nd time and downloaded the sfs file
2) Clicked on it and it was copied to /mnt/home & loaded
3)/mnt/home now has 2 new files
warysave-warysave22may.2fs
R-3.1.0_5.5.sfs
4) Typed R at console & got error
/usr/local/lib/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

Next steps
qu1) Should I (havent done this yet)
cd /mnt/home
& then configure R-3.1.0_5.5.sfs
& then make R-3.1.0_5.5.sfs

qu2) What about gfortran & libgfortran3:i386:?
Do I need linux-header-2.6.19.1 (according to PPM this is the devx file & AIUI devx contains gfortran things)

Posted: Sun 20 Jan 2019, 16:14
by Keef
Yes, it looks like you will need the devx. I started with a pristine Wary, but needed the devx in order to compile R of course.

Posted: Sun 20 Jan 2019, 16:55
by step
Not to be over-pessimistic but I'm skeptical that R will run well enough with 250MB RAM because it loads objects in RAM as a whole (as opposed to in chunks as other languages do).

Have you considered an online REPL? Some options:

https://github.com/datacamp/datacamp-light
https://cdn.datacamp.com/dcl-react/stan ... ample.html
https://rdrr.io/snippets/

Anyway, you will need C, C++ and a fortran compilers to use R, specifically to compile the many packages that extend the language. Packages in R for Windows are distributed as binaries, but R for Linux and Mac distribute packages in source code form that R compiles on the fly when you install a package. It's all automatic and I've never seen a compile fail (well, it would fail if your system lacks some very common shared library).

Posted: Mon 21 Jan 2019, 00:39
by Mike Walsh
The link came up OK for me, too.....but then I run uBlock in all my Pups/browsers. Which like as not kills all the ad-links!


Mike. :wink:

Posted: Tue 22 Jan 2019, 15:29
by schober
Thanks for all the replies
I will have to look into this memory business
The reason I wanted R is to use a package (Rpnf)that plots point & figure charts like this
http://tinyurl.com/yccgb2gm
RPNF has the advantage that it allows log scaling and has a manual!
http://rpnf.r-forge.r-project.org/
https://cran.r-project.org/web/packages/rpnf/index.html
There is also one needing Ruby & the Gems installer
https://rubygems.org/gems/point_and_figure
And another for Python
https://pypi.org/project/pypf/

Anyway, I temporarily gave up on R & ended up installing Activestate Python3.6.0 and Pypf, both seem to work in Wary5.5 with modest ram
https://www.activestate.com/Products/ac ... downloads/
(I had earlier tried to install Miniconda but it failed)