Re: [Rd] R CMD SHLIB in Windows XP - No output at all
Hi all, Thanks a LOT for your help. My issue actually came from the fact that my Renviron.site file was modifying the path variable (I though windows path and R path were different so hardcoded a path in Renviron. Because of this, the command in R "tool::.SHLIB()" was crashing R without any error message. I can finally use Rcpp and RcppArmadillo, love it ! Best, Lorenzo -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at-all-tp4385797p4393012.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB in Windows XP - No output at all
It looks like my original path had R_HOME for 2.14.0 in it, but what I did works when that was changed. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On > Behalf Of William Dunlap > Sent: Wednesday, February 15, 2012 5:27 PM > To: Lorenzo; r-devel@r-project.org > Subject: Re: [Rd] R CMD SHLIB in Windows XP - No output at all > > Does the following example help? I installed Duncan Murdoch's > Rtools-2.13 into E:\Rtools-2.13 and R into E:\Program Files\R\R-2.14.1. > I put a small file of C code into E:\temp\junk.c. Here is record > of what I did after opening a new cmd.exe window. Setting PATH > is critical: put the 2 bin directories under Rtools first in PATH. > You might want R_HOME\bin early too, if you already have some other R_HOME > directory in your standard PATH. > > C:\Documents and Settings\wdunlap>set PATH=e:\Rtools-2.13\bin;e:\Rtools- > 2.13\MinGW\bin;%PATH%;e:\Program Files\R\R-2.14.1\bin > > C:\Documents and Settings\wdunlap>e: > > E:\>cd \temp > > E:\temp>R CMD SHLIB -o junk.dll junk.c > cygwin warning: > MS-DOS style path detected: E:/PROGRA~1/R/R-214~1.0/etc/i386/Makeconf > Preferred POSIX equivalent is: > /cygdrive/e/PROGRA~1/R/R-214~1.0/etc/i386/Makeconf > CYGWIN environment variable option "nodosfilewarning" turns off this > warning. > Consult the user's guide for more details about POSIX paths: > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > gcc -I"E:/PROGRA~1/R/R-214~1.0/include" > -I"d:/RCompile/CRANpkg/extralibs/local/include" -O3 - > Wall -std=gnu99 -mtune=core2 -c junk.c -o junk. > o > gcc -shared -s -static-libgcc -o junk.dll tmp.def junk.o > -Ld:/RCompile/CRANpkg/extralibs/local/lib - > LE:/PROGRA~1/R/R-214~1.0/bin/i386 -lR > > E:\temp>type junk.c > void my_junk(double *x) > { > *x = *x + 100.0; > } > > E:\temp>R > ... [elided startup messages] ... > > dyn.load("junk.dll") > > .C("my_junk", pi) # expect to get 100+3.14159265... > [[1]] > [1] 103.1416 > > > > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > -Original Message- > > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] > > On Behalf Of Lorenzo > > Sent: Wednesday, February 15, 2012 4:03 PM > > To: r-devel@r-project.org > > Subject: Re: [Rd] R CMD SHLIB in Windows XP - No output at all > > > > Hi Duncan, > > > > Thanks for your help, I am actually using R Windows version 2.14.1 (22th Dec > > 2011). > > > > Actually by "R CMD SHLIB *.*" I actually meant putting any file name after > > the R CMD SHLIB ("R CMD SHLIB convolve.c" for example). > > Another case which fails is : creating a Rcpp Armadillo package skeleton > > (named MyPackage for example) and trying the R CMD INSTALL MyPackage. Fails > > as well on the R CMD SHLIB line. > > > > What I actually don't understand is how the R CMD SHLIB command links to the > > RTools cygwin and mingw. > > It really looks like the "make" function works in my command line when I use > > it directly but the link between R CMD SHLIB and cygwin fails... > > > > -- > > View this message in context: > > http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at- > > all-tp4385797p4392482.html > > Sent from the R devel mailing list archive at Nabble.com. > > > > __ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB in Windows XP - No output at all
Does the following example help? I installed Duncan Murdoch's Rtools-2.13 into E:\Rtools-2.13 and R into E:\Program Files\R\R-2.14.1. I put a small file of C code into E:\temp\junk.c. Here is record of what I did after opening a new cmd.exe window. Setting PATH is critical: put the 2 bin directories under Rtools first in PATH. You might want R_HOME\bin early too, if you already have some other R_HOME directory in your standard PATH. C:\Documents and Settings\wdunlap>set PATH=e:\Rtools-2.13\bin;e:\Rtools-2.13\MinGW\bin;%PATH%;e:\Program Files\R\R-2.14.1\bin C:\Documents and Settings\wdunlap>e: E:\>cd \temp E:\temp>R CMD SHLIB -o junk.dll junk.c cygwin warning: MS-DOS style path detected: E:/PROGRA~1/R/R-214~1.0/etc/i386/Makeconf Preferred POSIX equivalent is: /cygdrive/e/PROGRA~1/R/R-214~1.0/etc/i386/Makeconf CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames gcc -I"E:/PROGRA~1/R/R-214~1.0/include" -I"d:/RCompile/CRANpkg/extralibs/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c junk.c -o junk. o gcc -shared -s -static-libgcc -o junk.dll tmp.def junk.o -Ld:/RCompile/CRANpkg/extralibs/local/lib -LE:/PROGRA~1/R/R-214~1.0/bin/i386 -lR E:\temp>type junk.c void my_junk(double *x) { *x = *x + 100.0; } E:\temp>R ... [elided startup messages] ... > dyn.load("junk.dll") > .C("my_junk", pi) # expect to get 100+3.14159265... [[1]] [1] 103.1416 > Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On > Behalf Of Lorenzo > Sent: Wednesday, February 15, 2012 4:03 PM > To: r-devel@r-project.org > Subject: Re: [Rd] R CMD SHLIB in Windows XP - No output at all > > Hi Duncan, > > Thanks for your help, I am actually using R Windows version 2.14.1 (22th Dec > 2011). > > Actually by "R CMD SHLIB *.*" I actually meant putting any file name after > the R CMD SHLIB ("R CMD SHLIB convolve.c" for example). > Another case which fails is : creating a Rcpp Armadillo package skeleton > (named MyPackage for example) and trying the R CMD INSTALL MyPackage. Fails > as well on the R CMD SHLIB line. > > What I actually don't understand is how the R CMD SHLIB command links to the > RTools cygwin and mingw. > It really looks like the "make" function works in my command line when I use > it directly but the link between R CMD SHLIB and cygwin fails... > > -- > View this message in context: > http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at- > all-tp4385797p4392482.html > Sent from the R devel mailing list archive at Nabble.com. > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB in Windows XP - No output at all
Hi Duncan, Thanks for your help, I am actually using R Windows version 2.14.1 (22th Dec 2011). Actually by "R CMD SHLIB *.*" I actually meant putting any file name after the R CMD SHLIB ("R CMD SHLIB convolve.c" for example). Another case which fails is : creating a Rcpp Armadillo package skeleton (named MyPackage for example) and trying the R CMD INSTALL MyPackage. Fails as well on the R CMD SHLIB line. What I actually don't understand is how the R CMD SHLIB command links to the RTools cygwin and mingw. It really looks like the "make" function works in my command line when I use it directly but the link between R CMD SHLIB and cygwin fails... -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at-all-tp4385797p4392482.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB in Windows XP - No output at all
Hi Dirk, Thanks for your suggestion. Seems that I have the same issue with the inline package, here is my output : INLINE SIMPLE EXAMPLE > library(Rcpp) > library(inline) > library(RcppArmadillo) > foo <- ' + int i, j, na, nb, nab; + double *xa, *xb, *xab; + SEXP ab; + + PROTECT(a = AS_NUMERIC(a)); + PROTECT(b = AS_NUMERIC(b)); + na = LENGTH(a); nb = LENGTH(b); nab = na + nb - 1; + PROTECT(ab = NEW_NUMERIC(nab)); + xa = NUMERIC_POINTER(a); xb = NUMERIC_POINTER(b); + xab = NUMERIC_POINTER(ab); + for(i = 0; i < nab; i++) xab[i] = 0.0; + for(i = 0; i < na; i++) + for(j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j]; + UNPROTECT(3); + return(ab); + ' > foo [1] "\n int i, j, na, nb, nab;\n double *xa, *xb, *xab;\n SEXP ab;\n\n PROTECT(a = AS_NUMERIC(a));\n PROTECT(b = AS_NUMERIC(b));\n na = LENGTH(a); nb = LENGTH(b); nab = na + nb - 1;\n PROTECT(ab = NEW_NUMERIC(nab));\n xa = NUMERIC_POINTER(a); xb = NUMERIC_POINTER(b);\n xab = NUMERIC_POINTER(ab);\n for(i = 0; i < nab; i++) xab[i] = 0.0;\n for(i = 0; i < na; i++)\nfor(j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j];\n UNPROTECT(3);\n return(ab);\n" > funx <- cfunction(signature(a="numeric",b="numeric"), foo, Rcpp=FALSE, > verbose=FALSE) ERROR(s) during compilation: source code errors or compiler configuration errors! Program source: 1: #include 2: #include 3: #include 4: 5: 6: extern "C" { 7: SEXP file48858916c0f ( SEXP a, SEXP b ); 8: } 9: 10: SEXP file48858916c0f ( SEXP a, SEXP b ) { 11: 12: int i, j, na, nb, nab; 13: double *xa, *xb, *xab; 14: SEXP ab; 15: 16: PROTECT(a = AS_NUMERIC(a)); 17: PROTECT(b = AS_NUMERIC(b)); 18: na = LENGTH(a); nb = LENGTH(b); nab = na + nb - 1; 19: PROTECT(ab = NEW_NUMERIC(nab)); 20: xa = NUMERIC_POINTER(a); xb = NUMERIC_POINTER(b); 21: xab = NUMERIC_POINTER(ab); 22: for(i = 0; i < nab; i++) xab[i] = 0.0; 23: for(i = 0; i < na; i++) 24: for(j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j]; 25: UNPROTECT(3); 26: return(ab); 27: 28: warning("your C program does not return anything!"); 29: return R_NilValue; 30: } *Error in compileCode(f, code, language, verbose) : Compilation ERROR, function(s)/method(s) not created! In addition: Warning message: running command 'C:/Trading/R/R-2.14.1/bin/i386/R CMD SHLIB file48858916c0f.cpp 2> file48858916c0f.cpp.err.txt' had status 1 * # Looks like my issue on R CMD SHLIB is causing the compileCode function to fail. -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at-all-tp4385797p4392407.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] read.spss issues
On Feb 15, 2012, at 3:28 PM, Thomas Lumley wrote: On Wed, Feb 15, 2012 at 7:05 PM, Jeroen Ooms > wrote: The second problem is that the spss dataformat allows to specify 'duplicate labels', whereas this is not allowed for factors. read.spss does not deal with this and creates a bad factor x <- read.spss("http://www.stat.ucla.edu/~jeroen/spss/duplicate_labels.sav ", use.value.labels=T); levels(x$opinion); which causes issues downstream. I am not sure if this is an issue in read.spss() or as.factor(), but I guess it might be wise to try to detect duplicate levels and assign them all with one and the same integer value when converting to a factor. I think this one would be better dealt with by giving an error. SPSS value labels are just labels, so they don't map very well onto R factors, which are enumerated types. Rather than force them and lose data, I would prefer to make the user decide what to do. I could imagine that users might appreciate the possibility of getting the data from read.spss one pass, but also getting the labels from a separate function that made a best guess at what was needed but did not try to unambiguously match up variables with factor levels for all variables. For big datasets, there might be only a few edits needed to throw out duplicates and save a lot of typing errors. -- David Winsemius, MD West Hartford, CT __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] read.spss issues
On Wed, Feb 15, 2012 at 7:05 PM, Jeroen Ooms wrote: > The second problem is that the spss dataformat allows to specify > 'duplicate labels', whereas this is not allowed for factors. read.spss > does not deal with this and creates a bad factor > > x <- read.spss("http://www.stat.ucla.edu/~jeroen/spss/duplicate_labels.sav";, > use.value.labels=T); > levels(x$opinion); > > which causes issues downstream. I am not sure if this is an issue in > read.spss() or as.factor(), but I guess it might be wise to try to > detect duplicate levels and assign them all with one and the same > integer value when converting to a factor. I think this one would be better dealt with by giving an error. SPSS value labels are just labels, so they don't map very well onto R factors, which are enumerated types. Rather than force them and lose data, I would prefer to make the user decide what to do. -thomas -- Thomas Lumley Professor of Biostatistics University of Auckland __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] help.search() in html?
On Wed, Feb 15, 2012, Duncan Murdoch wrote: > Fixed now on my system and committed as r58351. It was simply a typo in > some housekeeping changes made in December, where > paste(..., sep="") was replaced by paste0(...). Many thanks for your swift attention and fix. I can confirm the fix on my machine with r58354. h. -- +--- | Hiroyuki Kawakatsu | Business School, Dublin City University | Dublin 9, Ireland. Tel +353 (0)1 700 7496 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] requesting a new SIG mailing list
Hi all, > It would be great if Sara of someone of the maintainers of the r-sig-ecology > list could add that info to the info page. I'm talking with the other maintainer about revising both the short and the long descriptions. > I think that r-sig-env would be much more intuitive for environmental > scientists coming from fields different from ecology, but I don't think it > is possible to change the name of an existing mailing list. > > However, I'm wondering if it would be possible to create an alias termed > 'r-sig-env' to 'r-sig-ecology' ?, in order to make the name of the list more > intuitive for environmental scientists but without disturbing the current > users. I don't know that there is any mechanism for doing either of those things. Changing the name would be disruptive, and I don't know of an alias option. I think ecology is a more inclusive term than environmental anyway, but then I'm an ecologist. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] which R package is used for browsing web pages through coding
Probably not R-devel, more likely R-help or google. Why not just use the 6+ solutions you have outlined and use R for what R is good at? Jeff On Fri, Feb 10, 2012 at 4:54 AM, sagarnikam123 wrote: > i know RCurl pakage to retrieve web content,it has limited use, i want > interactive package like > > (in perl--->Mechanize, > In java--->Watij,Prowser,HTMLunit,HTTPunit, > in Ruby>Watir ,etc) > > this modules/packages opens appropriate browser,which can create > queries,retrieves output, clicks buttons, fill up form > automatically,searches keyword in search engine, Downloads many items from > internet > All this is by coding > > if find ,kindly give me sample examples(codes) at list two/five > if not found,give me RCurl's sample codes starting from how to import > library to closing browser, > with explanation for each line of code > > > -- > View this message in context: > http://r.789695.n4.nabble.com/which-R-package-is-used-for-browsing-web-pages-through-coding-tp4375909p4375909.html > Sent from the R devel mailing list archive at Nabble.com. > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com www.esotericR.com R/Finance 2012: Applied Finance with R www.RinFinance.com See you in Chicago __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB in Windows XP - No output at all
On 13/02/2012 7:09 PM, Lorenzo wrote: Hello all, I'm trying hard to make R CMD SHLIB work on Windows XP (32-bit) - please note that I don't have the admin rights on the computer. In terms of setup, I have followed the procedure : => installed Rtools 2.14 => changed my path : PATH=C:\Trading\R\RTools\bin;C:\Trading\R\RTools\MinGW\bin;C:\Trading\R\R-2.14.1\bin\i386;C:\WINDOWS\system32;%OTHER_PATHS% But when I try R CMD SHLIB *.* I have litterally nothing, no output at all. (and R CMD INSTALL debug tells me, of course that the operation failed while calling R CMD SHLIB) I tried the command R CMD SHLIB -n, which gives me : make -f "C:/Trading/R/R-2.14.1/etc/i386/Makeconf" -f "C:/Trading/R/R-2.14.1/share/make/winshlib.mk" SHLIB= OBJECTS= So I had a closer look at these two files, and found some strange things in Makeconf, for example a variable LOCAL_SOFT with a d: path which has nothing to do with my configuration : LOCAL_SOFT = d:/RCompile/CRANpkg/extralibs/local That's a path on the machine which builds the R binary distributions. It shouldn't have leaked out, but it should be harmless. I think the problem might be with the "*.*". On a Unix system, the shell expands wildcards, but on Windows, the individual commands are supposed to do it. But our commands generally follow the Unix conventions, so perhaps nobody is expanding that, and nothing is being requested. (When I try it in R-patched, it works. But I'm not using that version of Rtools, and you don't say what version of R you're using.) If you use a bash shell (e.g. from Cygwin) then it will follow the Unix convention, and that will probably work. That's what I normally do. Alternatively, you can just list the files that you want to compile. If it's a long list, I think there are Windows ways to put the whole list into a shell variable and put the shell variable on that line, but I forget what they are. I would certainly try that for debugging purposes. Duncan Murdoch Ok, the thing is, my Makeconf is strange, but when I actually use the """ make -f "C:/Trading/R/R-2.14.1/etc/i386/Makeconf" -f "C:/Trading/R/R-2.14.1/share/make/winshlib.mk" SHLIB= OBJECTS= """ directly in the command prompt, it works more or less. I managed to build a simple dll based on C code (convolve2.dll, from the example), but couldn't build any dll based on c++ code. Is my SHLIB properly set up ? Why do I have a strange Makeconf ? Should I try to find a proper version of the file ? or reinstall R ? Does anyone have any idea how to fix that ? Been trying to fix it for a long time now ! Thanks in advance ! Lorenzo -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at-all-tp4385797p4385797.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] help.search() in html?
Fixed now on my system and committed as r58351. It was simply a typo in some housekeeping changes made in December, where paste(..., sep="") was replaced by paste0(...). Duncan Murdoch On 15/02/2012 8:03 AM, hkawa...@gmail.com wrote: Hi, I have options(help_type="html") in my .Rprofile and when I type ?foo, the man page appears as a new tab in my web browser (which is already running). Fine. However, when I type ??foo, rather than the results appearing in a new tab, a new instance of the web browser is spawned with the default homepage displayed. Same with help.search("foo"). Am I the only one seeing this? Is there some setting/option that I am missing? (At the moment, I bring up a man page via ?foo and then manually follow the link at the bottom of the page to go up to the search engine page.) R --vanilla shows the results of ??foo in the terminal window as expected. I am running > sessionInfo() R Under development (unstable) (2012-02-13 r58337) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.15.0 h. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] help.search() in html?
On 15/02/2012 8:03 AM, hkawa...@gmail.com wrote: Hi, I have options(help_type="html") in my .Rprofile and when I type ?foo, the man page appears as a new tab in my web browser (which is already running). Fine. However, when I type ??foo, rather than the results appearing in a new tab, a new instance of the web browser is spawned with the default homepage displayed. Same with help.search("foo"). Am I the only one seeing this? Is there some setting/option that I am missing? (At the moment, I bring up a man page via ?foo and then manually follow the link at the bottom of the page to go up to the search engine page.) R --vanilla shows the results of ??foo in the terminal window as expected. I just tried it on Windows, and got this error message in R-devel: > options(help_type="html") > ??mean starting httpd help server ... done Error in shell.exec(url) : 'http://127.0.0.1: 13432 /doc/html/Search?pattern= mean ' not found Looks like some spaces have crept into the URL. I'll take a look. (R-patched was fine.) Duncan Murdoch I am running > sessionInfo() R Under development (unstable) (2012-02-13 r58337) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.15.0 h. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] executable files R package
On 13/02/2012 2:36 PM, sahir bhatnagar wrote: I am in the process of creating a package in R which calls pre-compiled C code i.e. '.exe' files in Windows. Since CRAN will not accept packages with binary code files, what are my options to meet the requirements while still including the executable file? I think you should ask the CRAN administrators that, but my understanding is that they are unlikely to accept your package as described. CRAN is interested in platform-neutral packages, and if you have an .exe, you're going to be Windows-only. If you include the source code for that .exe and put together the Makefile to compile it, then they'd be more receptive, and someone might offer help to get it to run on other platforms if it doesn't on your first attempt. If you don't want to include the .exe source (or can't), I think you should just publish it on your own web page. Duncan Murdoch I read section 1.5.2 of the manual which mentions three options two of which involve negotiating with CRAN administrators. The third references the package Cairo which arranges to download additional software, but I don't see how this will allow my package to get accepted. It would seem that I need to ensure that my package works under both architectures (32 and 64 bit). 1) Would this be sufficient to get it accepted? 2) If so, does anyone have any documentation in performing this task, or can someone point me in the right direction? I was told that 'arulesSequences' is an example of a CRAN package while compiles executables. Was this package accepted because it worked under both architectures? or are there other reasons. thanks __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB in Windows XP - No output at all
On 13 February 2012 at 16:09, Lorenzo wrote: | Hello all, | | I'm trying hard to make R CMD SHLIB work on Windows XP (32-bit) - please Have a look at the countless examples and hundreds of unit tests in the Rcpp package. Almost all of them work by using the inline package to compile, link and load shared libraries on the fly. And yes, it all works fine on Windows XP. [ We do here that people on Windows 7 have to fight with security and admin settings though. ] You "merely" need to install Rtools right and get your PATH settings sorted out. This is documented in numerous places. Dirk | note that I don't have the admin rights on the computer. | In terms of setup, I have followed the procedure : | => installed Rtools 2.14 | => changed my path : | PATH=C:\Trading\R\RTools\bin;C:\Trading\R\RTools\MinGW\bin;C:\Trading\R\R-2.14.1\bin\i386;C:\WINDOWS\system32;%OTHER_PATHS% | | But when I try R CMD SHLIB *.* I have litterally nothing, no output at all. | (and R CMD INSTALL debug tells me, of course that the operation failed while | calling R CMD SHLIB) | I tried the command R CMD SHLIB -n, which gives me : | make -f "C:/Trading/R/R-2.14.1/etc/i386/Makeconf" -f | "C:/Trading/R/R-2.14.1/share/make/winshlib.mk" SHLIB= OBJECTS= | | So I had a closer look at these two files, and found some strange things in | Makeconf, for example a variable LOCAL_SOFT with a d: path which has nothing | to do with my configuration : | LOCAL_SOFT = d:/RCompile/CRANpkg/extralibs/local | | Ok, the thing is, my Makeconf is strange, but when I actually use the | """ make -f "C:/Trading/R/R-2.14.1/etc/i386/Makeconf" -f | "C:/Trading/R/R-2.14.1/share/make/winshlib.mk" SHLIB= OBJECTS= """ | directly in the command prompt, it works more or less. | I managed to build a simple dll based on C code (convolve2.dll, from the | example), but couldn't build any dll based on c++ code. | | Is my SHLIB properly set up ? Why do I have a strange Makeconf ? Should I | try to find a proper version of the file ? or reinstall R ? | | Does anyone have any idea how to fix that ? | Been trying to fix it for a long time now ! | | Thanks in advance ! | | Lorenzo | | -- | View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at-all-tp4385797p4385797.html | Sent from the R devel mailing list archive at Nabble.com. | | __ | R-devel@r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-devel -- "Outside of a dog, a book is a man's best friend. Inside of a dog, it is too dark to read." -- Groucho Marx __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] executable files R package
I am in the process of creating a package in R which calls pre-compiled C code i.e. '.exe' files in Windows. Since CRAN will not accept packages with binary code files, what are my options to meet the requirements while still including the executable file? I read section 1.5.2 of the manual which mentions three options two of which involve negotiating with CRAN administrators. The third references the package Cairo which arranges to download additional software, but I don't see how this will allow my package to get accepted. It would seem that I need to ensure that my package works under both architectures (32 and 64 bit). 1) Would this be sufficient to get it accepted? 2) If so, does anyone have any documentation in performing this task, or can someone point me in the right direction? I was told that 'arulesSequences' is an example of a CRAN package while compiles executables. Was this package accepted because it worked under both architectures? or are there other reasons. thanks __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] how to convert JGR package script to .exe
i made jDialog through JGR package(Java gui 4 R), i want to export it with imported external package e.g.bio3d,RCOR , into .exe or if not possible convert code to executable jar file how should i go, give me package name,example codes (if possible) -- View this message in context: http://r.789695.n4.nabble.com/how-to-convert-JGR-package-script-to-exe-tp4375925p4375925.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] which R package is used for browsing web pages through coding
i know RCurl pakage to retrieve web content,it has limited use, i want interactive package like (in perl--->Mechanize, In java--->Watij,Prowser,HTMLunit,HTTPunit, in Ruby>Watir ,etc) this modules/packages opens appropriate browser,which can create queries,retrieves output, clicks buttons, fill up form automatically,searches keyword in search engine, Downloads many items from internet All this is by coding if find ,kindly give me sample examples(codes) at list two/five if not found,give me RCurl's sample codes starting from how to import library to closing browser, with explanation for each line of code -- View this message in context: http://r.789695.n4.nabble.com/which-R-package-is-used-for-browsing-web-pages-through-coding-tp4375909p4375909.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] requesting a new SIG mailing list
On 15/02/12 09:07, Dominik Reusser wrote: Dear all, I do think that joining efforts is a good idea. However, hydrologists will probably not intuitively think about joining r-sig-ecology to discuss hydrological issues. Could we therefore explicitely state on the infopage that discussions to hydrology (in addition to general environmental data) are also welcome. It would be great if Sara of someone of the maintainers of the r-sig-ecology list could add that info to the info page. I don't think it is worth it, but probably the appropriate name would then be r-sig-env for such a list? In the description, you are also refering to the Environmetrics task list. I think that r-sig-env would be much more intuitive for environmental scientists coming from fields different from ecology, but I don't think it is possible to change the name of an existing mailing list. However, I'm wondering if it would be possible to create an alias termed 'r-sig-env' to 'r-sig-ecology' ?, in order to make the name of the list more intuitive for environmental scientists but without disturbing the current users. I'm wondering where we can make people aware of the fact, that hydrological issues are discussed on r-sig-ecology. I'm going to ask Gavin Simpson to put references to the list on the environmetrics task view if you agree that this would be useful. I think it would be very useful to make more general the description of the r-sig-ecology in the R mailing list page (http://www.r-project.org/mail.html), something like: R-sig-ecology: Using R in environmental and ecological data analysis Also, we can announce the mailing list during our R-short course on hydrology at EGU. What else? This would be great ! Best regards! Dominik All the best, Mauricio Zambrano-Bigiarini -- === FLOODS Action Water Resources Unit (H01) Institute for Environment and Sustainability (IES) European Commission, Joint Research Centre (JRC) webinfo: http://floods.jrc.ec.europa.eu/ === DISCLAIMER:\ "The views expressed are purely those of th...{{dropped:10}} __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] requesting a new SIG mailing list
Dear all, I do think that joining efforts is a good idea. However, hydrologists will probably not intuitively think about joining r-sig-ecology to discuss hydrological issues. Could we therefore explicitely state on the infopage that discussions to hydrology (in addition to general environmental data) are also welcome. I don't think it is worth it, but probably the appropriate name would then be r-sig-env for such a list? In the description, you are also refering to the Environmetrics task list. I'm wondering where we can make people aware of the fact, that hydrological issues are discussed on r-sig-ecology. I'm going to ask Gavin Simpson to put references to the list on the environmetrics task view if you agree that this would be useful. Also, we can announce the mailing list during our R-short course on hydrology at EGU. What else? Best regards! Dominik Am Dienstag, 14. Februar 2012 schrieb David L Lorenz: > All, > Is it decided then? It does make sense to me, because much of the > hydrologic work that we do is related to aquatic ecology. > I am responsible for coordinating the migration to use R as the > supported statistical package within the Water Mission Area of the USGS. > I'd expect that many of our hydrologists will be interested in subscribing > to r-sig-ecology to keep up with fellow researchers. I am also sure that > some will be frustrated because they will need to wade through material > not directly related to their work. > When I hear r-sig-ecology will be the forum for hydrology, I'll notify > the transition team so that they can subscribe and other hydrologist as > they start to use R. > Thanks. > Dave > > > > From: > Sarah Goslee > To: > mauricio.zambr...@jrc.ec.europa.eu > Cc: > Dominik Reusser , r-devel@r-project.org, > w.buyta...@imperial.ac.uk > Date: > 02/14/2012 11:24 AM > Subject: > Re: [Rd] requesting a new SIG mailing list > Sent by: > r-devel-boun...@r-project.org > > > > Hello, > > I'm one of the maintainers of the r-sig-ecology list, and I think > it would be entirely appropriate to include hydrology within > the scope of the list. > > There hasn't been much hydrologic discussion, as you noted, > but not because we wish to exclude it. > > Sarah > > On Tue, Feb 14, 2012 at 11:31 AM, Mauricio Zambrano-Bigiarini > > wrote: > > Another possibility could be to use the R-sig-ecology, which seems to be > > more related to hydrology: > > > > "analytical techniques and topics that are appropriate for discussion on > > R-sig-ecology are quite broad. For examples of what might be appropriate > > for > > > discussion on this list, please see the Environmentrics Task View > > (http://cran.r-project.org/web/views/Environmetrics.html)" > > (taken from: https://stat.ethz.ch/mailman/listinfo/r-sig-ecology) > > > > However, I did a quick search on the archives of 'R-sig-ecology' for the > > year 2011, and I could only found one single mail related to hydrology: > > > > https://stat.ethz.ch/pipermail/r-sig-ecology/2011-July/002274.html > > > > (in the same search I couldn't find any single reference to hydrology in > > the > > > R-sig-geo during the year 2011) -- Dr. Dominik Reusser North-South Project Potsdam Institute for Climate Impact Research Research Domain 2: Climate Impacts & Vulnerabilities Telephone +49 331 288 26 46 Fax+49 331 288 20709 P.O.Box 60 12 03, 14412 Potsdam, Germany Visiting adress: Pappelallee 20, 14469 Potsdam __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] R CMD SHLIB in Windows XP - No output at all
Hello all, I'm trying hard to make R CMD SHLIB work on Windows XP (32-bit) - please note that I don't have the admin rights on the computer. In terms of setup, I have followed the procedure : => installed Rtools 2.14 => changed my path : PATH=C:\Trading\R\RTools\bin;C:\Trading\R\RTools\MinGW\bin;C:\Trading\R\R-2.14.1\bin\i386;C:\WINDOWS\system32;%OTHER_PATHS% But when I try R CMD SHLIB *.* I have litterally nothing, no output at all. (and R CMD INSTALL debug tells me, of course that the operation failed while calling R CMD SHLIB) I tried the command R CMD SHLIB -n, which gives me : make -f "C:/Trading/R/R-2.14.1/etc/i386/Makeconf" -f "C:/Trading/R/R-2.14.1/share/make/winshlib.mk" SHLIB= OBJECTS= So I had a closer look at these two files, and found some strange things in Makeconf, for example a variable LOCAL_SOFT with a d: path which has nothing to do with my configuration : LOCAL_SOFT = d:/RCompile/CRANpkg/extralibs/local Ok, the thing is, my Makeconf is strange, but when I actually use the """ make -f "C:/Trading/R/R-2.14.1/etc/i386/Makeconf" -f "C:/Trading/R/R-2.14.1/share/make/winshlib.mk" SHLIB= OBJECTS= """ directly in the command prompt, it works more or less. I managed to build a simple dll based on C code (convolve2.dll, from the example), but couldn't build any dll based on c++ code. Is my SHLIB properly set up ? Why do I have a strange Makeconf ? Should I try to find a proper version of the file ? or reinstall R ? Does anyone have any idea how to fix that ? Been trying to fix it for a long time now ! Thanks in advance ! Lorenzo -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-in-Windows-XP-No-output-at-all-tp4385797p4385797.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] requesting a new SIG mailing list
All, Is it decided then? It does make sense to me, because much of the hydrologic work that we do is related to aquatic ecology. I am responsible for coordinating the migration to use R as the supported statistical package within the Water Mission Area of the USGS. I'd expect that many of our hydrologists will be interested in subscribing to r-sig-ecology to keep up with fellow researchers. I am also sure that some will be frustrated because they will need to wade through material not directly related to their work. When I hear r-sig-ecology will be the forum for hydrology, I'll notify the transition team so that they can subscribe and other hydrologist as they start to use R. Thanks. Dave From: Sarah Goslee To: mauricio.zambr...@jrc.ec.europa.eu Cc: Dominik Reusser , r-devel@r-project.org, w.buyta...@imperial.ac.uk Date: 02/14/2012 11:24 AM Subject: Re: [Rd] requesting a new SIG mailing list Sent by: r-devel-boun...@r-project.org Hello, I'm one of the maintainers of the r-sig-ecology list, and I think it would be entirely appropriate to include hydrology within the scope of the list. There hasn't been much hydrologic discussion, as you noted, but not because we wish to exclude it. Sarah On Tue, Feb 14, 2012 at 11:31 AM, Mauricio Zambrano-Bigiarini wrote: > Another possibility could be to use the R-sig-ecology, which seems to be > more related to hydrology: > > "analytical techniques and topics that are appropriate for discussion on > R-sig-ecology are quite broad. For examples of what might be appropriate for > discussion on this list, please see the Environmentrics Task View > (http://cran.r-project.org/web/views/Environmetrics.html)" > (taken from: https://stat.ethz.ch/mailman/listinfo/r-sig-ecology) > > However, I did a quick search on the archives of 'R-sig-ecology' for the > year 2011, and I could only found one single mail related to hydrology: > > https://stat.ethz.ch/pipermail/r-sig-ecology/2011-July/002274.html > > (in the same search I couldn't find any single reference to hydrology in the > R-sig-geo during the year 2011) -- Sarah Goslee http://www.functionaldiversity.org __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Creating XML document extremely slow
> On Fri, 10 Feb 2012 13:18:38 +0100, > Titus von der Malsburg (TvdM) wrote: > Hi list, > I'm using the package XML to create a simple XML document. > Unfortunately constructing the XML tree is extremely slow. My code > (see below) adds only about 100 nodes per second on an Intel i5 > machine. There's clearly something wrong but I don't see what. Have you considered simply writing the XML using standard functions like cat() and friends? That can be much faster than creating an XML object and writing that out (have just done that to write exams into our e-learning platform via XML). Best, Fritz __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] help.search() in html?
Hi, I have options(help_type="html") in my .Rprofile and when I type ?foo, the man page appears as a new tab in my web browser (which is already running). Fine. However, when I type ??foo, rather than the results appearing in a new tab, a new instance of the web browser is spawned with the default homepage displayed. Same with help.search("foo"). Am I the only one seeing this? Is there some setting/option that I am missing? (At the moment, I bring up a man page via ?foo and then manually follow the link at the bottom of the page to go up to the search engine page.) R --vanilla shows the results of ??foo in the terminal window as expected. I am running > sessionInfo() R Under development (unstable) (2012-02-13 r58337) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.15.0 h. -- +--- | Hiroyuki Kawakatsu | Business School, Dublin City University | Dublin 9, Ireland. Tel +353 (0)1 700 7496 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel