Re: [R] [Rd] I do not want that R CMD build removes temp directory

2022-12-15 Thread Simon Urbanek
Yes: $ R CMD INSTALL --help | grep error --no-clean-on-error do not remove installed package on error But probably more commonly used way is to install the package from its unpacked directory as that avoids the use of temporary directories in the first place. In you case you can als

Re: [R] R - Java integration maintained

2021-06-16 Thread Simon Urbanek
Eduard, you got lucky that a friendly listener has forwarded me this e-mail, but it would make a lot more sense to ask the maintainer (me) directly. Yes, it is maintained. However, I am not providing Maven releases, Maven is not the official source, the canonical source is GitHub and rJava re

Re: [R] Identifying presence of Java

2019-11-10 Thread Simon Urbanek
FWIW you cannot assume that java will be on the PATH - especially on Windows it typically is not. That’s why rJava uses registry on Windows to find the Java location. For other platforms there is R CMD config JAVA Cheers, Simon > On Nov 10, 2019, at 3:26 PM, Dennis Fisher wrote: > > Abby >

Re: [R] R under OS X El Capitan 10.11.2

2017-02-10 Thread Simon Urbanek
Please use R-SIG-Mac and include important details such as your sessionInfo() as well as how you installed the packages. Also make sure you have re-installed Rcpp and that you don't have an older version on your library path. Cheers, Simon > On Jan 1, 2016, at 9:54 PM, Paul Schlesinger wrote

Re: [R] Error while integrating R with netbeans using rJava

2016-01-28 Thread Simon Urbanek
.. this looks like a quoting problem in you classpath - you'll need to quote it properly otherwise the space in your class path gets interpreted as the next argument. > On Jan 28, 2016, at 8:08 AM, Ulrik Stervbo wrote: > > Hi Daphne, > > It seems Java cannot find what it is looking for. >

Re: [R] Error with RJDBC when trying dbUnloadDriver()

2014-09-12 Thread Simon Urbanek
Julian, On Sep 12, 2014, at 6:03 AM, julian.bo...@elitepartner.de wrote: > Hello everyone, Hello Simon, > > I am starting to use RJDBC. When trying to unload the driver, I get an Error > message – even when not connecting to any database. > This issue has been reported before in 2011 > (https

Re: [R] Cairo package error: "unable to load..."

2014-07-24 Thread Simon Urbanek
anything - you have to install it yourself - it just tells you how. Cheers, Simon > Thank you again! > > Leonardo > > > 2014-07-24 10:43 GMT-03:00 Simon Urbanek : > Leonardo, > > you don't have X11 installed and it no longer ships with OS X 10.9 - you need

Re: [R] Cairo package error: "unable to load..."

2014-07-24 Thread Simon Urbanek
ge not found > Error: package or namespace load failed for ‘Cairo’ > > > traceback() > > 2: stop(gettextf("package or namespace load failed for %s", sQuote(package)), >call. = FALSE, domain = NA) > 1: library(Cairo) > > > Verifi

Re: [R] rJava fail

2014-05-30 Thread Simon Urbanek
On May 30, 2014, at 9:55 AM, Bond, Stephen wrote: > > R version 3.1.0 (2014-04-10) -- "Spring Dance" > Copyright (C) 2014 The R Foundation for Statistical Computing > Platform: i386-w64-mingw32/i386 (32-bit) > >> library(rJava) > Error : .onLoad failed in loadNamespace() for 'rJava', details: >

Re: [R] [Rd] How can C++ read the R object written into socket with saveRDS or save

2013-06-26 Thread Simon Urbanek
On Jun 25, 2013, at 11:52 AM, Rong lI Li wrote: > > Hi, all, > > Recently, I met one issue when using socket between R & C++ to transmit R > object. Would you pls help give me some suggestions? Many thanks! > > [Background]: > I create a socket connection between R & C++ binary first, and then,

Re: [R] [Rd] R/Sweave/cairo/freetype bug fix.

2013-04-01 Thread Simon Urbanek
t has never > been explicitly spelled out - the problem was (is) with cairo's pdf/ps > generation, aided by freetype. > But then why would even the old binary in the Cairo package be an issue? It uses Win32 API, not freetype. Cheers, Simon >> -

Re: [R] [Rd] R/Sweave/cairo/freetype bug fix.

2013-03-30 Thread Simon Urbanek
On Mar 30, 2013, at 9:24 AM, Hin-Tak Leung wrote: > Perhaps that's too much details. There is (will be) a new freetype because of > cairo's unanticipated usage (which R uses, among other cairo users). Most > people should upgrade or request an upgrade eventually, when they are > comfortable. >

Re: [R] rJava works with 32-bit but not 64

2013-02-05 Thread Simon Urbanek
On Feb 5, 2013, at 5:51 PM, Spencer Graves wrote: > On 2/4/2013 3:55 PM, Simon Urbanek wrote: >> On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote: >> >>> On 2/4/2013 7:03 AM, Simon Urbanek wrote: >>>> On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote: &g

Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Simon Urbanek
On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote: > On 2/4/2013 7:03 AM, Simon Urbanek wrote: >> On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote: >> >>> On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote: >>>> Le lundi 04 février 2013 à 08:19 -0400, Simon Ur

Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Simon Urbanek
On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote: > On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote: >> Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit : >>> On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote: >>> >>>> On 2/3/2013 11:

Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Simon Urbanek
On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote: > On 2/3/2013 11:21 PM, Pascal Oettli wrote: >> Hello, >> >> Do you have a 64-bit version of Java? >> >> rJava says to you: >> call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java >> and make sure R and Java have matching

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

2013-01-09 Thread Simon Urbanek
On Jan 4, 2013, at 11:41 AM, Dirk Eddelbuettel wrote: > > On 4 January 2013 at 16:57, Suzen, Mehmet wrote: > | On 4 January 2013 11:36, Royden Fernandes wrote: > | > Hi, > | > > | > I am able to integrate C++ and R through RInside library. However when I > | > | Questions regarding RInside sho

Re: [R] Java, rJava, and Windows x64

2013-01-09 Thread Simon Urbanek
On Oct 29, 2012, at 11:17 AM, Robert Baer wrote: > When running [1] "R version 2.15.1 (2012-06-22)" "x86_64-pc-mingw32", rJava > fails. I have installed both the 32-bit and 64-bit versions of Java 7 update > 9. > > > library(rJava) > Error : .onLoad failed in loadNamespace() for 'rJava', detai

Re: [R] rJava Error

2013-01-09 Thread Simon Urbanek
On Jun 27, 2012, at 12:16 AM, fabin.ittiachan wrote: > Hi, > > I'm receiving an error when I am trying to install rJava. I have posted the > error below. > Your R was not compiled with --enable-R-shlib so you can't use JRI (see http://rforge.net/rJava). You can either disable JRI (if you don't

Re: [R] [R-sig-hpc] recursion depth limitations

2012-12-14 Thread Simon Urbanek
On Dec 14, 2012, at 6:25 AM, Suzen, Mehmet wrote: > On 14 December 2012 12:13, Suzen, Mehmet wrote: >> On 13 December 2012 23:21, Rui Barradas wrote: >>> But it does, each recursive call will load another copy of the function, and >>> another copy of the variables used. >>> In fact, the cost ca

Re: [R] [R-sig-hpc] recursion depth limitations

2012-12-13 Thread Simon Urbanek
On Dec 13, 2012, at 10:45 AM, Suzen, Mehmet wrote: > Hello List, > > I am aware that one can set with recursion depth 'options(expressions > = #)', but it has 500K limit. Why do we have a 500K limit on this? Because it's far beyond what you can handle without changing a lot of other things. 500

Re: [R] [R-SIG-Mac] problem with the installation of r commander on a mac

2012-10-04 Thread Simon Urbanek
In fun(libname, pkgname) : couldn't connect to display ":0" suggests that X11 is not running. Note that X11 is no longer part of OS X since Mountain Lion. Cheers, Simon On Oct 4, 2012, at 4:32 PM, John Fox wrote: > Dear Marco, > > To provide some background, you and I have corresponded about

Re: [R] [R-sig-hpc] Quickest way to make a large "empty" file on disk?

2012-09-28 Thread Simon Urbanek
On Sep 28, 2012, at 12:44 PM, Jonathan Greenberg wrote: > Rui: > > Quick follow-up -- it looks like seek does do what I want (I see Simon > suggested it some time ago) -- what do mean by "trash your disk"? I can't speak for Rui, but the difference between seeking and explicit write is that t

Re: [R] [R-sig-hpc] Quickest way to make a large "empty" file on disk?

2012-05-02 Thread Simon Urbanek
On May 2, 2012, at 6:23 PM, Jonathan Greenberg wrote: > R-helpers: > > What would be the absolute fastest way to make a large "empty" file (e.g. > filled with all zeroes) on disk, given a byte size and a given number > number of empty values. I know I can use writeBin, but the "object" in > thi

Re: [R] help updating package rJava (on ubuntu)

2012-02-19 Thread Simon Urbanek
On Feb 19, 2012, at 4:31 PM, Karl Brand wrote: > Hi Hasan, > > Success. For myself and FWIW to other useR's here's how i spent the sunny > half of my sunday to achieve it :/ > > Many thanks for your and Simon's input, > FWIW you should not need to set any custom settings if you system is prop

Re: [R] JGR Segmentation fault

2012-02-19 Thread Simon Urbanek
On Feb 19, 2012, at 2:48 AM, dberringer wrote: > I have been trying to get JGR up and running but so far no luck. I installed > R from source using the homebrew package manager and everything works fine > and I was able to install JGR and all its dependencies. Every time I try to > start JGR I

Re: [R] help updating package rJava (on ubuntu)

2012-02-18 Thread Simon Urbanek
On Feb 18, 2012, at 10:44 AM, Karl Brand wrote: > Esteemed useRs and Devs, > > Attempts to update package:rJava to the latest version have failed. See my > code and output below. > > Notably, as suggested here > http://stackoverflow.com/questions/3311940/r-rjava-package-install-failing > > $

Re: [R] [R-SIG-Mac] txtStart creates a NULL file

2012-02-14 Thread Simon Urbanek
7;ll forward this to R-SIG-Mac and see if Simon (Urbanek) picks it up. > Interestingly, this is a bug in R: R_ReplDLLdo1() fails to invoke top-level handlers (txtStart uses top-level handler to collect values of expressions but the handler is never called). This may be a one-liner fix but I

Re: [R] memory allocation in R

2011-11-27 Thread Simon Urbanek
On Nov 23, 2011, at 10:42 AM, Marc Jekel wrote: > Dear R community, > > I was observing a memory issue in R (latest 64bit R version running on a win > 7 64 bit system) that made me curious. > > I kept track of the memory f my PC allocated to R to calculate + keep several > objects in the work

Re: [R] [stats-rosuda-devel] Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, : java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String; )Ljava/lang/String;

2011-11-15 Thread Simon Urbanek
Please ask the authors and/or discussion list of dism, it may be a bug in dism or incompatibility between the maxent you are using and the package, I can't check sine maxent has a restrictive license. Also please do not cross-post to multiple mailing lists. Thanks, Simon On Nov 14, 2011, at 1:

Re: [R] Use of ICA for sound

2011-10-16 Thread Simon Urbanek
On Oct 16, 2011, at 1:44 AM, Noah Silverman wrote: > Hi, > > I'm looking at the "cocktail party" classic problem. > > I can see how to use ICA to separate the components. But, How do I then > create new wav files of the separated sounds so that they can be played? > FWIW you can play sounds

Re: [R] iplots

2011-10-15 Thread Simon Urbanek
On Oct 7, 2011, at 6:32 AM, wrote: > Hi guys, > > I am trying to plot a scatterplot with lines instead of with points using > function iplot in library iplots. > > The best I can come up with is > > x =(1:100) > y = rnorm(100) > iplot(x,y,ptDiam=0) > ilines(x,y) > > Do you guys know of

Re: [R] [Rd] R CMD CHECK doens't run configure when testing install? (Revised)

2011-07-29 Thread Simon Urbanek
On Jul 28, 2011, at 6:56 PM, Alexander James Rickett wrote: > I'm trying to get ready to submit a package to CRAN, but in order for the > package to install on OS X, I need to temporarily set the environment > variable NOAWT=1. I put 'export NOAWT=1' in my package's 'configure' script, > and

Re: [R] How to get R plots with FastRweb

2011-04-20 Thread Simon Urbanek
Devi, FastRWeb doesn't use Java - it is entirely R based so all you need is a web server with either CGI or PHP. The client it uses is either a C++ client (part of FastRWeb in the cgi-bin directory of the installed package - just copy to you server's cgi-bin) or a PHP client (in Rserve/src/clie

Re: [R] [R-SIG-Mac] Plotting Chinese characters

2011-02-09 Thread Simon Urbanek
Alberto, you simply need a font that has those characters. For example on 10.6 this works: plot.new(); plot.window(0:1,0:1); text(0.5,0.5,"精市",cex=10,family="Hei") You may want to check your system for fonts that you can use (those that have chinese characters when you click on them in Font Bo

Re: [R] [Rd] manipulating the Date & Time classes

2011-02-08 Thread Simon Urbanek
Mike, On Feb 8, 2011, at 3:24 PM, Mike Williamson wrote: > Hello, > >This is mostly to developers, but in case I missed something in my > literature search, I am sending this to the broader audience. > > > - Are there any plans in the works to make "time" classes a bit more > friendly

Re: [R] R 2.12.0 and JGR

2010-10-20 Thread Simon Urbanek
On Oct 20, 2010, at 9:14 AM, Dennis Murphy wrote: > Hi: > > Even more fun with Deducer in 2.12.0: > > I downloaded the JGR 64-bit executable from R-forge and installed the latest > binary of the package from there a half hour ago. The old 1.61 loader only supports R < 2.12. You'll need the ne

Re: [R] rJava: System.exit(1) in Java causes R crash

2010-08-18 Thread Simon Urbanek
On Aug 18, 2010, at 12:18 AM, Sigal Blay wrote: > I'm writing a package that successfully calls Java from R using rJava. > When R sends my Java function bad data (through .jcall()), > I get the error message details (when I run it on a console) > and then: > > Java requested System.exit(1), clo

Re: [R] [stats-rosuda-devel] How to update JGR

2010-04-10 Thread Simon Urbanek
On Apr 9, 2010, at 6:10 PM, wrote: > I recently updated R on Linus/SuSE 11.1 > I complained because no on-line help was available from JGR after R update. I > was told to update JGR as well. > How can I do that ? > I installed JGR on SuSE three times in the past with different R > versions.Eve

Re: [R] [R-SIG-Mac] How to interrupt an R process that hangs

2010-03-15 Thread Simon Urbanek
hings, but that's not always possible. Is there a way to interrupt it? I tried: kill -s INT and at least on Mac it had no effect. Thanks again, Matt On Mon, Mar 15, 2010 at 1:19 PM, Simon Urbanek wrote: On Mar 15, 2010, at 14:42 , Adam D. I. Kramer wrote: +1--this is the single mo

Re: [R] [R-SIG-Mac] How to interrupt an R process that hangs

2010-03-15 Thread Simon Urbanek
e (and so doe ^C or pushing the Stop button etc). Cheers, Simon On Mon, Mar 15, 2010 at 1:19 PM, Simon Urbanek wrote: On Mar 15, 2010, at 14:42 , Adam D. I. Kramer wrote: +1--this is the single most-annoying issue with R that I know of. My usual solution, after accomplishing nothing a

Re: [R] [R-SIG-Mac] How to interrupt an R process that hangs

2010-03-15 Thread Simon Urbanek
On Mar 15, 2010, at 14:42 , Adam D. I. Kramer wrote: +1--this is the single most-annoying issue with R that I know of. My usual solution, after accomplishing nothing as R spins idly for a couple hours, is to kill the process and lose any un-saved work. save.history() is my friend, but is

Re: [R] [stats-rosuda-devel] R: R help unavailable

2010-03-03 Thread Simon Urbanek
On Mar 3, 2010, at 7:45 , wrote: Actually the problem exists only if I use JGR. Make sure you upgrade JGR. You need JGR 1.7 or higher to work with R 2.10. If you have any questions, please use the JGR mailing list stats- rosuda-devel. Thanks, Simon If I launch R from a terminal win

Re: [R] multicore children not quiting

2010-02-05 Thread Simon Urbanek
On Feb 5, 2010, at 10:04 AM, Markus Loecher wrote: > Hi Simon, > I recently switched to a different flavor of Linux and find that the children > that are spawn off by e.g. mclapply() seem to persist forever until I kill > them explicitly. > Is there anything I can do ? > I can reproduce the i

Re: [R] [stats-rosuda-devel] how to install JGR manually?

2009-10-16 Thread Simon Urbanek
On Oct 16, 2009, at 16:49 , Liviu Andronic wrote: On 10/16/09, c...@witthoft.com wrote: It doesn't get that far. I launch jgr.exe and it announces that it can't connect to the internet, and shuts itself down. In R, does the following work? require(JGR) JGR() No. JGR() creates a start

Re: [R] [stats-rosuda-devel] how to install JGR manually?

2009-10-16 Thread Simon Urbanek
On Oct 16, 2009, at 9:14 , Liviu Andronic wrote: (cc'ing JGR specific list) Yes, thanks, stats-rosuda-devel is where this post should go. Carl, On 10/15/09, Carl Witthoft wrote: Here's the problem: on Windows, the 'jgr.exe' tool starts up by checking for a connecting to the 'net in order

Re: [R] Help ::Not able to Connect R to SQL Server 2000

2009-08-06 Thread Simon Urbanek
On Aug 6, 2009, at 10:36 , bed.si...@oracle.com wrote: Hi Simon, I am using the R 2.9.1 with Window XP. I have one query related with R to the database. I have successfully connected R to MS-Access. But when I tried to connect R to SQL Server 2000 then it throwing some class not foun

Re: [R] R: JGR installation errors

2009-06-19 Thread Simon Urbanek
ne case it's ok. If it occurred later after JGR is started, that would be something to worry about. Cheers, Simon Regards, Maura -Messaggio originale----- Da: Simon Urbanek [mailto:simon.urba...@r-project.org] Inviato: ven 19/06/2009 15.43 A: mau...@alice.it Cc: stats-rosud

Re: [R] JGR installation errors

2009-06-19 Thread Simon Urbanek
MAura, On Jun 19, 2009, at 7:36 , wrote: I remember JGR installation on SuSE 10.3 as a nightmare that eventually I overcame with JGR designers' help. I have installed SuSE 11.1, latest R version and am trying to install JGR again. It is still a nightmare. Well, good Linux distros offe

Re: [R] [stats-rosuda-devel] Problem with JGR. Was: Re: Using help()

2009-01-26 Thread Simon Urbanek
On Jan 25, 2009, at 9:35 , Michael Kubovy wrote: Dear Friends, Thanks to Rolf Turner, Brian Ripley and Patrick Burns for their answers.They don't quite resolve the problem, which I now realize is due to non-standard behavior of JGR, at least on my machine (I verified that Mac GUI works e

Re: [R] [R-SIG-Mac] rimage doesn't install on Mac OS X 10.4

2008-11-12 Thread Simon Urbanek
Scott, can you, please, include sessionInfo() in your output? Without knowing what machine you're running on (and incomplete output you sent) I can only guess that you simply don't have universal binary of your dependent libraries so you cannot build a universal package (somewhat likely g

Re: [R] cairo and rapache [was: Weird errors on MAC OS X Leopard when using Cairo/GDD through Rserve]

2008-01-10 Thread Simon Urbanek
Charles, Greg, the problem is that Apple's FreeType on Leopard uses CF calls (albeit just to get files), so it breaks on fork. (The message is moot, because the whole point of using fork is to *not* use exec). In any case the solution is to compile your own version of freetype, fontconfig