Re: [R] Convert character date time to R date-time variable.

2023-12-07 Thread Dirk Eddelbuettel
`anytime` was written for this: > anytime::anytime("2020-09-17_00:00:00") [1] "2020-09-17 CDT" > class(anytime::anytime("2020-09-17_00:00:00")) [1] "POSIXct" "POSIXt" > Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __

Re: [R] Unable to add the CRAN apt repository

2023-12-04 Thread Dirk Eddelbuettel
Steve, The better list for such questions is r-sig-debian. On 4 December 2023 at 13:41, Steve Gutreuter wrote: | I just upgraded from Linux Mint 20 to 21 and am no longer able to add the CRAN | Ubuntu repository to my list of repositories.  I am getting: | | $> sudo /usr/bin/add-apt-repository

Re: [R] converting to date object...

2023-04-12 Thread Dirk Eddelbuettel
That is what I wrote the anytime package for: effortless automatic parsing. Also works for dates: > library(anytime) > anydate("12 APR 2023") [1] "2023-04-12" > Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-help

Re: [R] No "doc" directory in my installation of R.

2021-08-09 Thread Dirk Eddelbuettel
Rolf, Sorry for only briefly chiming in, and late, but I don't usually follow r-help that much these days. I am writing this from an Ubuntu machine running R as well as RStudio from pre-made binary .deb packages. R comes via apt from CRAN (using Michael's binaries), RStudio from them via helper

Re: [R] /usr/local/lib/R/site-library is not writable

2021-04-07 Thread Dirk Eddelbuettel
Hi Gene, "It's complicated". (Not really, but listen for a sec...) We need to ship a default policy that makes sense for all / most situations. So - users cannot write into /usr/local/lib/R/site-library -- unless they are set up to, but adding them to the 'group' that owns that directory -

Re: [R] seq.Date when date is the last date of the month

2021-01-07 Thread Dirk Eddelbuettel
Jeremie, As months have irregular number of dates, one needs to use a function that accounts for that (date libraries and packages have that, one of the earliest for R was my RcppBDT package using Boost Date_Time), or be otherwise clever. Here is a one-liner using the latter approach: seq(a

Re: [R] Rstudio does not run on ubuntu 20

2020-06-15 Thread Dirk Eddelbuettel
On 15 June 2020 at 14:46, Luigi Marongiu wrote: | Hello, | all of a sudden rstudio stopped working on ubuntu 20.04. I | re-installed from `rstudio-1.3.959-amd64.deb` but it does not launch | even if there is an icon. On terminal I got: | ``` | $ rstudio | rstudio: error while loading shared libra

Re: [R] solve() function freezes CLI in GNU R 3.6.3

2020-05-09 Thread Dirk Eddelbuettel
On 9 May 2020 at 10:30, Dirk Eddelbuettel wrote: | | We can see that you use Linux. | | Are you by chance | | - on a Debian or Ubuntu system, and | - have the libopenblas package installed ? | | If so then it is a known bug with the libopenblas0-pthread package. | | Installing libopen0

Re: [R] solve() function freezes CLI in GNU R 3.6.3

2020-05-09 Thread Dirk Eddelbuettel
We can see that you use Linux. Are you by chance - on a Debian or Ubuntu system, and - have the libopenblas package installed ? If so then it is a known bug with the libopenblas0-pthread package. Installing libopen0-openmp (and also removing libopenblas0-pthread) should fix it. This is li

Re: [R] Identifying presence of Java

2019-11-09 Thread Dirk Eddelbuettel
Dennis, On 9 November 2019 at 10:53, Dennis Fisher wrote: | Dirk | | I am now more confused (and I appreciate your help in sorting this out). | | I executed | require(“rJava”) | and received the following error: | | > Error: package or namespace load failed for ‘rJava’: | > .onLoad f

Re: [R] Identifying presence of Java

2019-11-09 Thread Dirk Eddelbuettel
Dennis, R does that for you already as it needs to know it for rJava too. On my (Linux) box: edd@rob:~$ R CMD config JAVA /usr/lib/jvm/default-java/bin/java edd@rob:~$ R CMD config JAVA_HOME /usr/lib/jvm/default-java edd@rob:~$ You could also do the equivalent of `which` or `type -

Re: [R] Installing dyplr on Linux requires a ton of chasing down dependencies

2019-10-14 Thread Dirk Eddelbuettel
Adam, You may find this blog post and the video instructive: http://dirk.eddelbuettel.com/blog/2019/06/09#022_rocker_and_ppas It illustrates how 'installing tidyverse' (or rstan) can be a single and done in under two minutes == on Linux, with the appropriate distribution and settings. In sh

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 13:13, Henrik Bengtsson wrote: | On Sat, Jan 5, 2019 at 9:41 AM Dirk Eddelbuettel wrote: | > | > | > On 5 January 2019 at 09:14, William Dunlap via R-help wrote: | > | You would get these errors ("R: file or directory not found, version: file | > | or

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 20:40, Winfried Moser wrote: | dirk & bill, you guys are incredible! the non-silent .Rprofile was the | problem! | making the code interactive didn't help either, only silenceing it helped! Good to know you have it fixed. | thanks so much! i assume moving to r-sig-debian i

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 09:14, William Dunlap via R-help wrote: | You would get these errors ("R: file or directory not found, version: file | or directory not found...") if you had a ~/.Rprofile file containing the | line 'cat(version$version.string, sep="\n"). Well spotted -- very much so. That i

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 4 January 2019 at 23:23, Winfried Moser wrote: | dear community, | | i get a *non-zero exit status* installing the survey-package in R version | 3.5.2 on ubuntu 18.04. the problem seems to be related to *g++* and/or the | package *minqa*. in the output of the installation procedure i found th

Re: [R] Failed to install RQuantLib in Ubuntu machine

2019-01-05 Thread Dirk Eddelbuettel
On 3 January 2019 at 03:16, Christofer Bogaso wrote: | I was trying to install RQuantLib in my Ubuntu machine which failed with | below information : Try this on the shell instead: sudo apt-get install r-cran-rquantlib Otherwise maybe rebuild Rcpp from inside R, or also install it from sou

Re: [R] CRAN updates

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 05:46, Rich Shepard wrote: |Is there a file where I can specify the repository to use when upgrading | packages rather than having R ask each time? Many ways. You want to set options(repos) -- see eg help(download.packages) and see help(Startup) for the many ways where y

Re: [R] R shared library (/usr/lib64/R/lib/libR.so) not found.

2018-08-25 Thread Dirk Eddelbuettel
Rolf, I noticed this thread started by you as well as a few of the excellent follow-ups. While it conclcuded, allow me a few quick comments: - Some of us go through some effort to provide R on Ubuntu (and Debian) in a reliable and reproducible manner. And it works and is used by many people

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Dirk Eddelbuettel
On 5 March 2018 at 03:13, Sparks, John wrote: | library(quantmod) | #in fairness, I did not include this last time and my example was therefore not reproducible. Apologies to Bert and everyone else #for not following the posting guidelines. | aapl_total<-getOptionChain("AAPL", NULL)> | | How c

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Dirk Eddelbuettel
On 5 March 2018 at 02:46, Sparks, John wrote: | I agree that they look like dates, I don't know how to determine if they are actually dates. You know options but you are confused about maturity dates, i.e. expiry? In information in that list (ie along the date dimension) is the expiry; at each

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Dirk Eddelbuettel
On 3 December 2017 at 20:30, Martin Møller Skarbiniks Pedersen wrote: | On 3 December 2017 at 20:19, Dirk Eddelbuettel wrote: | Thanks for your answers. I got a few more questions. | | > | > 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read | > this and w

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Dirk Eddelbuettel
"Rcpp-attributes", package="Rcpp") in R is even easier. On 3 December 2017 at 13:19, Dirk Eddelbuettel wrote: | 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read | this and would have missed this were it not for luck. "R has its own list, rcpp-d

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Dirk Eddelbuettel
Martin, You are making your life way too complicated. There are a number of things I would do differently: 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read this and would have missed this were it not for luck. On 3 December 2017 at 02:06, Martin Møller Skarbiniks Peder

Re: [R] installing "rgl" package

2017-11-24 Thread Dirk Eddelbuettel
On 24 November 2017 at 11:30, Santosh wrote: | Hi All, Duncan, Rolf, Ista, DIrk, | | Thanks for the suggestions and I tried all of them (as suggested by Duncan, | Rolf, Ista and Dirk)... I still get similar error as before while | installing 'rgl' package.. I also tried to manually configure "rgl

Re: [R] installing "rgl" package

2017-11-24 Thread Dirk Eddelbuettel
On 23 November 2017 at 15:05, Santosh wrote: | I am trying to install 'rgl' package in Ubuntu.. Would highly appreciate | your assistance .. I tried several leads available on various discussion | fora and nothing helped so far. Install the _pre-built binary package_ via sudo apt install r-c

Re: [R] tcltk problems

2017-11-19 Thread Dirk Eddelbuettel
On 20 November 2017 at 08:38, Rolf Turner wrote: | Point of order Mr. Chairman. It is completely unfair to say that I shot | myself in the foot. You moved files [or, in this case, created symlinks] below /usr. Most of us repeatedly said you should not have to. | Well, OK. What list *should*

Re: [R] tcltk problems

2017-11-19 Thread Dirk Eddelbuettel
On 19 November 2017 at 12:17, peter dalgaard wrote: | Dirk may want to dig in here: I respectfully decline. R builds fine on every Ubuntu system, and always has. No bug in R, or Ubuntu, or Debian (which would be cup of tea). There is the distro package (which may be older if an older distro lik

Re: [R] tcltk problems

2017-11-18 Thread Dirk Eddelbuettel
Rolf, A few quick points as I just noticed this thread (as I don't regularly dip into r-help any more): 1) You really do not need to builds R locally on Ubuntu. I update the Debian package hours after Peter cuts a release. Michael rolls Ubuntu releases off these typically the same or

Re: [R] R Date Time

2017-04-25 Thread Dirk Eddelbuettel
On 25 April 2017 at 18:05, Duncan Murdoch wrote: | On 25/04/2017 5:41 PM, Dirk Eddelbuettel wrote: | > | > On 25 April 2017 at 16:04, Jeff Reichman wrote: | > | R Users | > | | > | Having problems converting the following DTG into an R recognized date/time | > | field | >

Re: [R] R Date Time

2017-04-25 Thread Dirk Eddelbuettel
On 25 April 2017 at 16:04, Jeff Reichman wrote: | R Users | | Having problems converting the following DTG into an R recognized date/time | field | | 01-01-2016T14:02:23.325 | | Would I separate it into a date field and time filed then put it back | together??? The anytime package (on CRAN) do

Re: [R] Earth Mover's Distance

2017-03-07 Thread Dirk Eddelbuettel
The earthmovdist repo on R-Forge is alive and well. Rainer and I simply stopped doing work on it as the authors of the Emd-L1 library we use could not get a liberal license for this. Note the language in the source code (src/emdL1.cpp) and please make sure YOUR use is in compliance. But as I us

Re: [R] Any reason not to use RUnit any longer?

2017-03-07 Thread Dirk Eddelbuettel
On 6 March 2017 at 19:04, Hans-Peter Suter wrote: | I see that quite some packages nowadays use testthat and that RUnit doesn't | have recent updates. On the other hand Rccp, fTrading and others (still) | test with RUnit. RUnit is alive and well, look at https://cran.r-project.org/package=

Re: [R] xvfb? cron job updates R packages, fails on some requiring X11

2017-01-19 Thread Dirk Eddelbuettel
Paul, Just prefix the command as you would with, say, /usr/bin/time. An example is here: https://github.com/RcppCore/rcpp-logs/blob/master/scripts/runRcppDepends.r#L140L-L142 from the script I use to test all Rcpp dependencies -- now over 900 -- unattended. Some packages also need OpenGL

Re: [R] Rbbg usurped ?

2016-12-28 Thread Dirk Eddelbuettel
On 28 December 2016 at 13:46, John Laing wrote: | I've cleaned up the findata repository, you should now be able to install | Rbbg as expected. | | But that said, the package is no longer being actively developed. Recent | efforts have been taking place in the Rblpapi package. The interface is |

Re: [R] Using C library in R

2016-07-23 Thread Dirk Eddelbuettel
Jeff Newmiller dcn.davis.ca.us> writes: > You are entitled to your opinion, but apparently you have not read the Posting Guide either. Where as you chose to ignore it (cf paragraph about Good Manners). That is clearly superior. The Posting Guide is not specific about this and does NOT say tha

Re: [R] Using C library in R

2016-07-22 Thread Dirk Eddelbuettel
Jeff Newmiller dcn.davis.ca.us> writes: > 2) Interfacing R with other languages is off-topic on this list. There are other lists where such issues are > on-topic. Your post is a bit like walking into a bowling alley and asking if anyone there can solve your > chess problem... someone might be ab

Re: [R] detect computer drives

2015-11-27 Thread Dirk Eddelbuettel
On 27 November 2015 at 15:43, Adrian Dușa wrote: | Is there a method to detect the computer's drives? | That would include USB sticks, when they are recognised by the operating | system. That is very obviously OS-dependent amd would need to be wrapped conditional on the OS. In R you can test for

Re: [R] QuantMod and XML

2015-11-07 Thread Dirk Eddelbuettel
On 7 November 2015 at 19:37, Robert Sherry wrote: | Warning message: package ‘XML’ is not available (for R version 3.1.2) That is your problem. You are running R 3.1.2. That is old and outdated. CRAN has packages -- which may on occassion impose a '>=' relation. That is the case here. Yo

Re: [R] how to add 1 + 1 with the interface between R and C

2015-09-21 Thread Dirk Eddelbuettel
peter dalgaard gmail.com> writes: > C is call by value and k and res are pointers. You need a dereferencing step or nothing with happen. Try > > *res = *k + 1; Or you use Rcpp which writes the glue code. Save the following into a file: #include // [[Rcpp::export]] int adder(int x, int y) {

Re: [R] Rcpp, function signature

2015-08-28 Thread Dirk Eddelbuettel
peter dalgaard gmail.com> writes: > But for the benefit of the rest of us: A NumericVector is a pointer, right? Effectively even though it is not treated as one by the users. But you know what P in SEXP stands for, and Rcpp objects really are what we call "proxy objects" for the respective unde

Re: [R] Rcpp, function signature

2015-08-27 Thread Dirk Eddelbuettel
Michael Meyer via R-help r-project.org> writes: > I am an (very) grateful user of Rcpp. Glad to hear that! But you are on the wrong mailing list. Please ask on rcpp-devel. Dirk __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see ht

Re: [R] Rcpp cpp11 and R CMD build

2015-06-24 Thread Dirk Eddelbuettel
Edwin van Leeuwen gmail.com> writes: > > Thank you! I was missing the SystemRequirements. I guess it could be useful > to add this to the example given here: > http://gallery.rcpp.org/articles/simple-lambda-func-c++11/ No. If you actually read the Rcpp documentation--eg the Rcpp Attributes vi

Re: [R] QMLE of MGARCH

2015-05-01 Thread Dirk Eddelbuettel
Masher Masher gmail.com> writes: > So my question is: is the function garchFit the best one to estimate > parameters using the QML or should I better use other packages for > convenience. You may want to look at the rmgarch package. Dirk __ R-help@r-p

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread Dirk Eddelbuettel
On 18 April 2015 at 05:29, John Kane wrote: | I think it moved to http://rgraphgallery.blogspot.com/ with a different interface. I don't think so. Something I contributed years ago to the original Graph Gallery is not on this site. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread Dirk Eddelbuettel
On 18 April 2015 at 20:10, Jinsong Zhao wrote: | Does anyone here know where does the R Graph Gallery | (http://addictedtor.free.fr/graphiques/) move to? I googled, but don't | find any useful hints. It went down due to (IIRC) hardware failure. It was said that it would come back. That was a wh

Re: [R] upgrading issues with Rcpp

2015-02-11 Thread Dirk Eddelbuettel
arnaud gaboury gmail.com> writes: > Now when trying to update Rcpp: > > gabx hortensia [R] install.packages("Rcpp") > . > Error in unloadNamespace(pkg_name) : > namespace ‘Rcpp’ is imported by ‘reshape2’, ‘plyr’, ‘dplyr’ so > cannot be unloaded > .. > > I can't

Re: [R] How to tell g++ where Rcpp.h is located?

2014-12-13 Thread Dirk Eddelbuettel
On 14 December 2014 at 01:40, Dr.Richard Dybowski wrote: | I am new to Rcpp and want to try the example given in | http://gallery.rcpp.org/articles/r-function-from-c++/ | I have installed the Rcpp package via RStudio, but I do not know how to | tell my C++ compiler (g++) where to find the header f

Re: [R] How to put inlined C code on a worker node?

2014-11-14 Thread Dirk Eddelbuettel
Mikhail, The canonical recommendation is to wrap you code in a package -- either source or even binary -- and to install it on the nodes. Writing a package is the correct answer to many questions, and is particularly true here. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debia

Re: [R] Microsoft fighting against cxxfunction() and winning

2014-10-18 Thread Dirk Eddelbuettel
On 17 October 2014 at 11:57, Rainer K. SACHS wrote: | Running Windows 7, 64 bit (but also including, I think, 32 bit R files) | RStudio 0.98.501 | win-library 3.1 | | Getting error messages, probably related to add_path, for the | following example script; I did look within RStudio and on the | i

Re: [R] Forecast Package in R version 3.1.0

2014-04-28 Thread Dirk Eddelbuettel
Paul Bernal gmail.com> writes: > This is what is happening when I try downloading the Rcpp package in R > version 3.1.0 > > Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) > : > there is no package called ‘Rcpp’ > Error: package or namespace load failed for ‘for

Re: [R] Memory allocation using .C interface

2014-04-09 Thread Dirk Eddelbuettel
Cassiano dos Santos gmail.com> writes: > I am testing a call to a C function from R, using .C interface. The test > consists in passing a numeric vector to the C function with no entries, > dynamically allocates n positions, makes attributions and return the > vector to R. Asking on StackOverflo

Re: [R] help with pROC installation on a Debian box (Rcpp related)

2014-03-28 Thread Dirk Eddelbuettel
Luca Braglia gmail.com> writes: > g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o > > Rcpp:::LdFlags() > > -L/usr/lib/R/lib -lR > g++: error: >: File o directory non esistente This can happen when you have a ~/.Rprofile that messes up the invocation of Rscript in the src/Makevars (which

[R] [R-pkgs] Rcpp 0.11.0

2014-02-03 Thread Dirk Eddelbuettel
bout Rcpp should be directed to the Rcpp-devel mailing list https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel While we prefer the mailing list, StackOverflow has also become a frequently used resource under the [rcpp] tag: http://stackoverflow.com/questions/t

Re: [R] R command execution at specific time from within R

2013-12-23 Thread Dirk Eddelbuettel
Costas Vorlow gmail.com> writes: > I am trying to write a code that executes an R command at specific time > intervals. > > É want R to do that instead of the operating system. > > Any help/pointer extremely welcome. Don't do it. Just rely on cron [if you're lucky enough to be on Linux or OS

Re: [R] Unable to install RcppEigen package due to Rcpp dependency issues

2013-12-23 Thread Dirk Eddelbuettel
Rewarp gmail.com> writes: > I am trying to install RcppEigen, which depends on Rcpp. Here's what the > terminal says: > > > install.packages("RcppEigen") [...] > g++ -shared -o RcppEigen.so RcppEigen.o fastLm.o > -L/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -lRcpp > -Wl,-rpath,/home/

Re: [R] unable to install package xts

2013-11-11 Thread Dirk Eddelbuettel
Wang Chongyang gmail.com> writes: > I am using Ubuntu 12.04 and unable to install xts. Here are the info: > > usr/bin/ld: cannot find -lgfortran Do 'sudo apt-get install r-base-dev' to install a set of requirement for building packages, which includes among other things the Fortran library you

Re: [R] R CMD check Error: package MASS was built before R 3.0.0 - not true!?

2013-10-29 Thread Dirk Eddelbuettel
Christian Hennig ucl.ac.uk> writes: > I just updated my R to 3.0.2 and ran > R CMD check --as-cran on the just produced new version of fpc. > > I got an error > Error: package "MASS" was built before R 3.0.0: please re-install it > > - but I actually *did* re-install MASS without error just befo

Re: [R] No speed effect by using RcppArmadillo compared to R in matrix operations

2013-10-26 Thread Dirk Eddelbuettel
Andreas Recktenwald mx.uni-saarland.de> writes: > another option if you're using Linux AND an Intel processor would be > linking R against Intel MKL (Math Kernel Library). Under Linux you can You do not have to "link" R against MKL. One simply builds and links R against _any_ BLAS implementa

Re: [R] Need help using Rcpp + Rmpi

2013-06-24 Thread Dirk Eddelbuettel
ey | | [[alternative HTML version deleted]] | | __ | R-help@r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-help | PLEASE do read the posting guide http://www.R-project.org/posting-guide.html | and provide commented, mi

Re: [R] Rcpp with OpenMP - Need example Makevars

2013-05-24 Thread Dirk Eddelbuettel
iated! | Kind regards and have a nice weekend! | Cheers! | | __ | R-help@r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-help | PLEASE do read the posting guide http://www.R-project.org/posting-guide.html | and provide comment

Re: [R] bigmemory and R 3.0

2013-04-29 Thread Dirk Eddelbuettel
R> library(bigmemory) Loading required package: bigmemory.sri Loading required package: BH bigmemory >= 4.0 is a major revision since 3.1.2; please see packages biganalytics and and bigtabulate and http://www.bigmemory.org for more information. R> -- Dirk Eddelbuettel | e...@debian.org

Re: [R] R broken after upgrade to 2.15.3 (Ubuntu 12.10, 64bit)

2013-03-04 Thread Dirk Eddelbuettel
venue. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pr

Re: [R] Armadillo error in R extension

2013-02-01 Thread Dirk Eddelbuettel
http://gallery.rcpp.org/tags/armadillo/ Hope this helps, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht

Re: [R] Integrating Java, C++ and R

2013-01-04 Thread Dirk Eddelbuettel
m someone with better Java understanding. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proje

[R] [R-pkgs] Rcpp 0.10.0

2012-11-14 Thread Dirk Eddelbuettel
s also become a frequently used resource under the [rcpp] tag: http://stackoverflow.com/questions/tagged/rcpp Dirk Eddelbuettel, Romain Francois, Doug Bates, John Chambers and JJ Allaire November 2012 -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [R] Having two different versions of a package in the same R installation

2012-10-02 Thread Dirk Eddelbuettel
. The one being found first when going down .libPaths() is the default, the other can be loaded by supplying the path to library(). Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https

Re: [R] Compiling R2.15.1 on ubuntu with x86-64 architecture and shared library

2012-09-17 Thread Dirk Eddelbuettel
nary_ of R 2.15.1 for your architecture. If you get stuck, please subscribe to r-sig-debian and ask there. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] Question about R performance on UNIX/LINUX with different memory/swap configurations

2012-09-16 Thread Dirk Eddelbuettel
he smaller memory machines have an advantage. Would you be able to provide some "empirical proofs" for that conjecture? Please demonstrate how, say, a X gb ram machine outperforms one with Y gb where Y > X. Less memory is /never/ better. Dirk -- Dirk Eddelbuettel |

Re: [R] Where is the R configuration file or how to override R compilers

2012-09-16 Thread Dirk Eddelbuettel
-std=c++0x or -pedantic, or to select clang / clang++ instead of gcc / g++, ... Greetings to Northbrook, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] R equivalent of python module structure and functionality?

2012-09-11 Thread Dirk Eddelbuettel
r the plug. I also wanted to point Tom to CRAN packages getopt optparse written specifically to support command-line argument parsing with R scripts (ie via Rscript and littler). Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelb

Re: [R] Problem installing Rmpi with Open MPI

2012-08-31 Thread Dirk Eddelbuettel
is a very responsive upstream author who has written a tremendously useful package. Dirk | | | On 08/30/2012 11:02 AM, Dirk Eddelbuettel wrote: | > On 29 August 2012 at 20:07, Linh Tran wrote: | > | Thank you for the advice. I tried using the command, and it still | > | wouldn't load.

Re: [R] Problem installing Rmpi with Open MPI

2012-08-30 Thread Dirk Eddelbuettel
lly linked builds of Open MPI for several years on Debian with good success. I was involved in an overhaul of Debian's Open MPI packages around 2006/2007; the package has since been very well maintained by others. Dirk | On 08/29/2012 01:40 PM, Dirk Eddelbuettel wrote: | > On 29 August 20

Re: [R] Problem installing Rmpi with Open MPI

2012-08-29 Thread Dirk Eddelbuettel
ure it out. Can someone help!? Thanks so much in advanced. | | I'm using an HP Envy laptop with Ubuntu 12.04. Output is below, with the | error at the bottom. I suggest you do sudo apt-get install r-cran-rmpi which installs the prebuild Rmpi as well as the Open MPI libary it depends u

Re: [R] littler and rJava

2012-08-27 Thread Dirk Eddelbuettel
--with-java-libsLink littler to R's java libraries edd@max:~/svn/littler$ a while back but that may not be sufficient. Would you have time to poke around at your end how we could make this better (presuming that you want something more solid than the LD_LIBRARY_PATH adjustment

Re: [R] Using R as Shared Library

2012-08-12 Thread Dirk Eddelbuettel
o the embedded R interpreter and calls an R function to display it. You can send full R objects back and forth thanks to Rcpp, and there are over a dozen examples included in the packages, as well as more advanced use of embedded R within the context of MPI (for parallel computing), Qt (for GUIs and

Re: [R] embedding data frame in R code?

2012-08-02 Thread Dirk Eddelbuettel
on changed this (R 2.15.0 maybe?) but now the much simpler direct use works without the need to close the connection: R> tab <- read.table(textConnection("a b\n1 2\n3 4"), header=TRUE) R> tab a b 1 1 2 2 3 4 R> showConnections() description class mode text

Re: [R] turning R expressions into functions?

2012-06-30 Thread Dirk Eddelbuettel
570 591.5 5422 R> Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-

Re: [R] #!/usr/bin/env Rscript --vanilla ??

2012-04-13 Thread Dirk Eddelbuettel
On 13 April 2012 at 10:32, Martin Maechler wrote: | I think that's my first true question (rather than answer) | to R-help. | | As R has, for a long time, become my primary scripting and | programming language, I'm prefering at times to write Rscript | files instead of shell scripts, notably whe

Re: [R] A kind of set operation in R

2012-04-05 Thread Dirk Eddelbuettel
Julio, Nobody mentioned the _set_ operations union(), intersect(), setdiff(), which are described under 'help(union)' (and the other names, of course) R> X <- c(10:13, 17,18) R> Y <- c(11,12,17,18) R> intersect(X, Y)# gives the actual values [1] 11 12 17 18 R> X %in% inters

[R] [R-pkgs] New package RcppSMC 0.1.0 for Sequential Monte Carlo and Particle Filters

2012-03-22 Thread Dirk Eddelbuettel
ful combination of R and C++. = Support = Questions about RcppSMC should be directed to the Rcpp-devel mailing list https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel and Adam Johansen March 2012 -- "Outside of a dog, a book is a man

Re: [R] how to pass 'raw' values with cfunction()?

2012-03-17 Thread Dirk Eddelbuettel
On 17 March 2012 at 14:34, Dan Kelley wrote: | I am having trouble handing "raw" data to a C function, using "cfunction", as demonstrated in the function and output pasted below. Can anyone suggest what I'm doing incorrectly? Thanks. Dan Kelley [Dalhousie University]. Don't use the .C conven

Re: [R] install rJava in Ubuntu 11.10

2012-02-25 Thread Dirk Eddelbuettel
On 24 February 2012 at 10:32, John Kane wrote: | I am trying to install rJava on a WUBI Ubuntu 11.10 installation of R with no luck. I was originally trying to install the iplots package and encountered this rJava problem. Just install the existing binary package, eg via sudo apt-get

Re: [R] Access to OpenBLAS

2012-02-14 Thread Dirk Eddelbuettel
On 14 February 2012 at 09:01, Scott Raynaud wrote: | My IT people have set up a Kubuntu box with an RWkard front | end.  I have OpenBLAS set up as a shared BLAS but I'm not | sure how to get R to see it.  A.3.1 of the installation docs talks | about it but I'm not clear if I need a option on my st

Re: [R] Get identical results for parallel and sequential?

2012-02-12 Thread Dirk Eddelbuettel
On 12 February 2012 at 19:13, Uwe Ligges wrote: | Please do not double post. And also do not cross-post: the same questions had been sent to (as well as answered at) the R-SIG-HPC list. Double-posting and cross-posting is impolite. Dirk -- "Outside of a dog, a book is a man's best friend. Ins

Re: [R] Need very fast application of 'diff' - ideas?

2012-01-28 Thread Dirk Eddelbuettel
On 28 January 2012 at 11:46, Dirk Eddelbuettel wrote: | | On 28 January 2012 at 16:20, Hans W Borchers wrote: | | R. Michael Weylandt gmail.com> writes: | | > | | > I'd write your own diff() that eliminates the method dispatch and | | > argument checking that diff -&g

Re: [R] Need very fast application of 'diff' - ideas?

2012-01-28 Thread Dirk Eddelbuettel
On 28 January 2012 at 16:20, Hans W Borchers wrote: | R. Michael Weylandt gmail.com> writes: | > | > I'd write your own diff() that eliminates the method dispatch and | > argument checking that diff -> diff.default does. | > | > x[-1] - x[-len(x)] # is all you really need. | > (# you could also

Re: [R] Calling R functions within C/C++

2012-01-05 Thread Dirk Eddelbuettel
On 5 January 2012 at 15:04, Ian Schiller wrote: | Hello everyone! | | First of all, please note that I'm working under Windows 7. | | I have written a Gibbs sampler in R and I'm now in the process of translating it in C++ to increase the speed. I'm relatively new to C++ and this question may

Re: [R] Calling R functions from C++ under VS2005

2011-12-22 Thread Dirk Eddelbuettel
On 22 December 2011 at 15:25, Jawad Elomari wrote: | I'm trying to call some of R's statistical functions within my C++ | code, developed under VS2005, but I can't seem to find out how to do i) As has been stated fairly frequently, R itself does not build under VS* making the linking of C

Re: [R] Help for R parallelization

2011-12-17 Thread Dirk Eddelbuettel
Alvaro, On 17 December 2011 at 12:23, Alvaro Jose Abackerli wrote: | Dear Sir/Madam, | | I am a Brazilian researcher working in São Paulo – Brazil. I’ve being using R-software for many years with my students in some engineering applications, but up to now we've being using only in stand-alone

Re: [R] Create web applications to run R scripts

2011-10-01 Thread Dirk Eddelbuettel
On Sat, Oct 01, 2011 at 11:34:47AM -0700, syrvn wrote: > Hello, > > is there anything similar to the Rwui package to create web applications to > run R scripts? There is an entire section of the R FAQ devoted to this. Dirk -- Three out of two people have difficulties with fractions. _

Re: [R] X11 problem

2011-08-25 Thread Dirk Eddelbuettel
On 26 August 2011 at 08:39, Rolf Turner wrote: | | Carole: | | If you really need to install R from source you probably need to do: | | sudo apt-get update | sudo apt-get install libx11-dev | | before you do your ./configure and make. Whoever _really_ insists on building locally sho

Re: [R] X11 problem

2011-08-25 Thread Dirk Eddelbuettel
On 25 August 2011 at 22:24, Linlin Yan (颜林林) wrote: | Because the official source is not as new as the latest version yet. That is not true --- you get the most recent R version prebuilt for Ubuntu (and other Linux distros) via the CRAN repositories. See the R FAQ about where to get to current U

Re: [R] Compile on Fedora

2011-08-21 Thread Dirk Eddelbuettel
On 21 August 2011 at 10:18, Noah Silverman wrote: | Hi, | | I want to create a custom build of R, for my particular machine that will run as fast as possible. | | CPU: Dual cora AMD 64 bit | | OS: Fedora 15 | | I know there are a lot of options for compile time flags, lapack, blas, atlas,

Re: [R] rJava on Debian squeeze (or other versions of Linux)?

2011-08-06 Thread Dirk Eddelbuettel
On 5 August 2011 at 23:19, Barnet Wagman wrote: | Has anyone successfully installed rJava on Debian squeeze (or any other | version of linux)? | | I keep getting the | | ... (JDK) is missing or not registered in R | | | error message when installing the package. | | I've tried running 'R

Re: [R] inline/Rcpp: Problem with space in path under Windows

2011-07-24 Thread Dirk Eddelbuettel
Hi Dieter, On 24 July 2011 at 07:12, Dieter Menne wrote: | Hi, Dirk, | | Dirk Eddelbuettel wrote: | > | > | > Thanks for your interest in Rcpp. We generally prefer questions about | > Rcpp / RInside / ... on the rcpp-devel list. | > | I know that list, but I was not sure if

Re: [R] inline/Rcpp: Problem with space in path under Windows

2011-07-24 Thread Dirk Eddelbuettel
Hi Dieter, Thanks for your interest in Rcpp. We generally prefer questions about Rcpp / RInside / ... on the rcpp-devel list. On 24 July 2011 at 01:09, Dieter Menne wrote: | I am trying to run inline/Rcpp under Windows 64. The RTools are installed on | a spaceless path D:\rtools. | | Inlining

Re: [R] cannot install Rcmdr on ubuntu 11.4

2011-06-16 Thread Dirk Eddelbuettel
On 16 June 2011 at 07:17, Frans Marcelissen wrote: | | Hello, | For one reason or another, I cannot install Rcmdr on my R 2.12.2 ubuntu 11.4 system. | I run R as root When I try to install Rcmdr, then whatever mirror I select, I get the message: Rcmd is an Ubuntu package too, so just do $ s

Re: [R] Export a function from RCPP in R of type double

2011-06-02 Thread Dirk Eddelbuettel
On 2 June 2011 at 01:27, arvanitis wrote: | I have written a small c++ function of type double function(double,double); | and i want to export it in R using RCPP. After some trials i have realized Rcpp uses the .Call() interface which imposes 'SEXP function(SEXP, SEXP, ...); Please see 'Writing

Re: [R] Rscript hangs on exit with ubuntu 11.04

2011-05-17 Thread Dirk Eddelbuettel
On 17 May 2011 at 12:18, Mikael Högqvist wrote: | Hi, | | I have run into a strange issue with Rscript and plyr. When running | the following Rscript: | | #!/usr/bin/Rscript | library(plyr) | d = ddply(data.frame(a=1:101,b=1:101), .(a,b), nrow) | head(d) | | the script does not terminate. It pr

  1   2   3   4   >