Hi, Can anyone please advise if there is a neat way to 'share' libraries of (previously developed) S+ code with R? Specifically, within S+ I can use the attach(what = "<Chapter Directory>", pos = 2) command, to retrieve previously developed functions and variables to position 2 in the search list. [Some may be intentionally masked by what's in the current working chapter]. Can I similarly directly retrieve these functions and variables within R at position 2 in the search list? I have been able to achieve limited success via data.dump (within S+) and subsequent data.restore functionality (within R). I have intentionally NOT restored objects beginning with "." (via use of initial argument objects(pos, regexpr.pattern = "^[^.]" within S+ data.dump command) because of issues with .Random.seed due to differing random number generation methodologies between S+ and R. I would wish to maintain this rationale of not including such "." objects if possible. Also, I am not sure how to restore objects to (a new R object at) position 2 as opposed to my workspace (env argument defaulting to .GlobalEnv) via data.restore? With regard to the 'attach' functionality within R I have been able to retrieve previous functions developed within R and saved as an R data file. So maybe my issue boils down to 'converting' the S+ <Chapter Directory> into an R data file? I hope there is indeed such a simple solution. Any help or advice would be greatly appreciated. Thanks and kind regards Paul ********************************************************************************** Irish Life Investment Managers Limited is authorised by the Financial Regulator under Section 10 of the Investment Intermediaries Act, 1995. While Irish Life Investment Managers uses reasonable efforts to ensure that the information contained in this email is current, accurate and complete at the date of publication, no representations or warranties are made (express or implied) as to the reliability, accuracy or completeness of such information. Irish Life Investment Managers therefore cannot be held liable for any loss arising directly or indirectly from the use of, or any action taken in reliance on, any information contained in this email. This material is for information only and does not constitute an offer or recommendation to buy or sell any investment, or subscribe to any investment management or advisory service. It is intended for the use of institutional and other professional investors. Past performance is not indicative of future results. The value of funds we manage may fall as well as rise. This email and any files transmitted with it are confidentia...{{dropped}}
Hello there, I had been learning to use R for some time and I am trying to install it on Ubuntu 5.04 Linux. I downloaded the tarball, there was some problem with the installation. Perhaps someone who faced similar problems might help me. I downloaded the latest release R Version 2.2.1 from their website. I did: $ tar -xzvf R-2.2.1.tar.gz then: $ cd R-2.2.1/ followed by: $./configure There were no error messages at this point. then: sudo make which gave the following: make[1]: Entering directory `/home/senthil/R-2.2.1/m4' make[1]: Nothing to be done for `R'. make[1]: Leaving directory `/home/senthil/R-2.2.1/m4' make[1]: Entering directory `/home/senthil/R-2.2.1/tools' make[1]: Nothing to be done for `R'. make[1]: Leaving directory `/home/senthil/R-2.2.1/tools' make[1]: Entering directory `/home/senthil/R-2.2.1/doc' make[2]: Entering directory `/home/senthil/R-2.2.1/doc/html' make[3]: Entering directory `/home/senthil/R-2.2.1/doc/html/search' make[3]: Leaving directory `/home/senthil/R-2.2.1/doc/html/search' make[2]: Leaving directory `/home/senthil/R-2.2.1/doc/html' make[2]: Entering directory `/home/senthil/R-2.2.1/doc/manual' make[2]: Nothing to be done for `R'. make[2]: Leaving directory `/home/senthil/R-2.2.1/doc/manual' make[1]: Leaving directory `/home/senthil/R-2.2.1/doc' make[1]: Entering directory `/home/senthil/R-2.2.1/etc' make[1]: Leaving directory `/home/senthil/R-2.2.1/etc' make[1]: Entering directory `/home/senthil/R-2.2.1/share' make[1]: Leaving directory `/home/senthil/R-2.2.1/share' . . . . . g77 -g -O2 -c xxxpr.f -o xxxpr.o gcc -Wl,--export-dynamic -L/usr/local/lib -o R.bin Rmain.o CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o logic.o main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o random.o regex.o registration.o relop.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o ../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a -lg2c -lm -lgcc_s ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a -lreadline -ldl -lm make[4]: Entering directory `/home/senthil/R-2.2.1/src/main' /home/senthil/R-2.2.1/bin/exec/R is unchanged make[4]: Leaving directory `/home/senthil/R-2.2.1/src/main' make[3]: Leaving directory `/home/senthil/R-2.2.1/src/main' make[2]: Leaving directory `/home/senthil/R-2.2.1/src/main' make[2]: Entering directory `/home/senthil/R-2.2.1/src/modules' make[3]: Entering directory `/home/senthil/R-2.2.1/src/modules/X11' make[4]: Entering directory `/home/senthil/R-2.2.1/src/modules/X11' making dataentry.d from dataentry.c making devX11.d from devX11.c making rotated.d from rotated.c making rbitmap.d from rbitmap.c make[4]: Leaving directory `/home/senthil/R-2.2.1/src/modules/X11' make[4]: Entering directory `/home/senthil/R-2.2.1/src/modules/X11' gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11R6/include -I/usr/local/include -DHAVE_CONFIG_H -fPIC -g -O2 -c dataentry.c -o dataentry.lo gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11R6/include -I/usr/local/include -DHAVE_CONFIG_H -fPIC -g -O2 -c devX11.c -o devX11.lo devX11.c:45:74: X11/Intrinsic.h: No such file or directory In file included from devX11.c:68: devX11.h:57:74: X11/Intrinsic.h: No such file or directory make[4]: *** [devX11.lo] Error 1 make[4]: Leaving directory `/home/senthil/R-2.2.1/src/modules/X11' make[3]: *** [R] Error 2 make[3]: Leaving directory `/home/senthil/R-2.2.1/src/modules/X11' make[2]: *** [R] Error 1 make[2]: Leaving directory `/home/senthil/R-2.2.1/src/modules' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home/senthil/R-2.2.1/src' make: *** [R] Error 1 I don't know if this is the right place to ask for help. But i tried googling with the above error message and it did not even fetch a single page. Thanks in advance, Senthil
You might want to check out: http://www.omegahat.org/RinS/ Andy From: Paul.Reynolds at ilim.com> > Hi, > > Can anyone please advise if there is a neat way to 'share' > libraries of (previously developed) S+ code with R? > > Specifically, within S+ I can use the attach(what = "<Chapter > Directory>", pos = 2) command, to retrieve previously > developed functions and variables to position 2 in the search > list. [Some may be intentionally masked by what's in the > current working chapter]. Can I similarly directly retrieve > these functions and variables within R at position 2 in the > search list? > > I have been able to achieve limited success via data.dump > (within S+) and subsequent data.restore functionality (within > R). I have intentionally NOT restored objects beginning with > "." (via use of initial argument objects(pos, regexpr.pattern > = "^[^.]" within S+ data.dump command) because of issues with > .Random.seed due to differing random number generation > methodologies between S+ and R. I would wish to maintain > this rationale of not including such "." objects if possible. > Also, I am not sure how to restore objects to (a new R > object at) position 2 as opposed to my workspace (env > argument defaulting to .GlobalEnv) via data.restore? > > With regard to the 'attach' functionality within R I have > been able to retrieve previous functions developed within R > and saved as an R data file. So maybe my issue boils down to > 'converting' the S+ <Chapter Directory> into an R data file? > I hope there is indeed such a simple solution. > > Any help or advice would be greatly appreciated. > Thanks and kind regards > Paul > > > ************************************************************** > ******************** > Irish Life Investment Managers Limited is authorised by the > Financial Regulator under Section 10 of the Investment > Intermediaries Act, 1995. > > While Irish Life Investment Managers uses reasonable efforts > to ensure that the information contained in this email is > current, accurate and complete at the date of publication, no > representations or warranties are made (express or implied) > as to the reliability, accuracy or completeness of such > information. Irish Life Investment Managers therefore cannot > be held liable for any loss arising directly or indirectly > from the use of, or any action taken in reliance on, any > information contained in this email. > > This material is for information only and does not constitute > an offer or recommendation to buy or sell any investment, or > subscribe to any investment management or advisory service. > It is intended for the use of institutional and other > professional investors. Past performance is not indicative of > future results. The value of funds we manage may fall as well as rise. > > This email and any files transmitted with it are > confidentia...{{dropped}} > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >