Re: [R] Using grid.layout inside grid.layout with grid package: naming of the viewports affects plotting

2014-11-27 Thread Helske Satu
Hi Paul, Thank you for your illustrative explanation and help with rewriting the code. It works now and, more importantly, I understand what is happening and why. Best regards, Satu >-Original Message- >From: Paul Murrell [mailto:p...@stat.auckland.ac.nz] >Sent: 27. marrask

[R] Using grid.layout inside grid.layout with grid package: naming of the viewports affects plotting

2014-11-26 Thread Helske Satu
("A") stackedplot(main="A") I tried with different names and found out that if I plot in reversed alphabetical order everything works fine. Once I try to plot in a viewport with a name earlier in alphabetical order, all other plots thereafter are plotted in the same view

Re: [R] Inline Package: void vs return type functions

2010-04-19 Thread satu
Many Thanks for your help Best, Sergio -- View this message in context: http://n4.nabble.com/Inline-Package-void-vs-return-type-functions-tp1838423p2015898.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

[R] Inline Package: void vs return type functions

2010-04-13 Thread satu
Dear all, After having a look at the "inline" package and also going through the "Rcpp" package which is tighty related to it, it came to me this question: 1) my C/ C++ code has a return type (let say a double[][] or a user define class) 2) I am working with an extensive library built by someon

[R] problem solved!

2010-04-13 Thread satu
Dear Uwe Ligges, Douglas and Romain, You were right. After changing to test.dl it worked. After doing that I re run the example provided in the "inline" package and worked well. It seems to me that the problem was that: 1) in the enviroment variables the path didn´t have the \bin folders of R too

Re: [R] I can´t run the example shown in the inline pa ckage

2010-04-09 Thread satu
Dear Romain, you are right. Apologies, here is the complete result from your script: > code <- '#include \nSEXP f(){\n return R_NilValue ; }' > writeLines( code, "test.c" ) > system( "R CMD SHLIB test.c" ) gcc -I"C:/R/R-210~1.1/include"-O3 -Wall -std=gnu99 -c test.c -o test.o gcc -sh

Re: [R] Okay, here is what I am doing

2010-04-09 Thread satu
Dear Romain, I am working with a PC with Windows-XP I do have Rtools installed and running the code you propose, this is what I get as a result: > code <- '#include \nSEXP f(){\n return R_NilValue ; }' > writeLines( code, "test.c" ) > dyn.load( "test.so" ) Error in inDL(x, as.logical(local), as

[R] Okay, here is what I am doing

2010-04-08 Thread satu
All is done in R 2.10.1 wiht the package "inline" version 0.3.4,,, this are the packages that I have loaded into the workspace > search() [1] ".GlobalEnv""package:inline""package:stats" "package:graphics" "package:grDevices" "package:datasets" "package:rcom" [8] "package:r

[R] I can´t run the example shown in the inline pa ckage

2010-04-08 Thread satu
I want to run some R script using the inline package (which allows to create and run inline C++ code in my humble understanding). So, after loading the required packages and copy and paste the example that runs C code (in the Reference Manual as a PDF), I have a compilation error. Any body has eve