Re: [Rd] Should subsetting named vector return named vector including named unmatched elements?

2024-01-18 Thread Steve Martin via R-devel
This is how it's documented in ?`[`: "Character vectors will be matched to the names of the object...") Steve On Thursday, January 18th, 2024 at 2:51 PM, Jiří Moravec wrote: > Subsetting vector (including lists) returns the same number of elements > as the subsetting vector, inclu

Re: [Rd] tools::startDynamicHelp(): Randomly prevents R from exiting (on MS Windows)

2024-01-07 Thread Steve Martin via R-devel
Henrik, I was able to reproduce this both with Rscript and interactively using the same version of R you're using (fresh install) and Windows 10.0.22621.2715. It took about a dozen tries. Steve Original Message On Jan 6, 2024, 12:38, Henrik Bengtsson wrote: > ISSU

Re: [Rd] [External] Re: zapsmall(x) for scalar x

2023-12-19 Thread Steve Martin
What about having mFUN be only an argument of x (NAs and all), with a default of \(x) max(abs(x), na.rm = TRUE)? It's a minor difference, but it might make the mFUN argument a bit simpler to use (no need to carry a dummy argument when NAs in x can be handled directly). Steve * Tangent: Does boxp

Re: [Rd] [External] Re: zapsmall(x) for scalar x

2023-12-18 Thread Steve Martin
<- mFUN(x[!ina]) round(x, digits = if(mx > 0) max(min.d, digits - as.numeric(log10(mx))) else digits) } Steve On Mon, Dec 18, 2023, 05:47 Serguei Sokol via R-devel wrote: > Le 18/12/2023 à 11:24, Martin Maechler a écrit : > >>>>>> Serguei Sokol via R-devel >

Re: [Rd] [External] Re: zapsmall(x) for scalar x

2023-12-17 Thread Steve Martin
nges to zapsmall() in the corner case Gregory brought up could affect the way certain objects are printed, both changing the current behavior and perhaps requiring changes to some other functions. Steve On Sun, 17 Dec 2023 at 12:26, Barry Rowlingson wrote: > > I think what's been missed

Re: [Rd] zapsmall(x) for scalar x

2023-12-16 Thread Steve Martin
00 0 0 0 The same problem can also appear when printing the results of summary.glm() with show.residuals = TRUE if there's little dispersion in the residuals. Steve On Sat, 16 Dec 2023 at 17:34, Gregory Warnes wrote: > > I was quite

Re: [Rd] Use of `[` with array and resulting class

2023-09-29 Thread Steve Martin
dimension c(1, 6, 1), but now both the first and third dimensions are dropped, resulting in a vector with no dimensions. We can use the drop function to explicitly see why b[1, ,] doesn't result in a matrix. > drop(matrix(1:6, 6, 1)) [1] 1 2 3 4 5 6 Steve On Fri, 29 Sept 2023 at 23:28, Jos

Re: [Rd] Augment base::replace(x, list, value) to allow list= to be a predicate?

2023-03-07 Thread Steve Martin
replacement(regmatches(x, m)) mapply(gsub, pattern, as.character(res), x, USE.NAMES = FALSE) } gsub("^..", toupper, c("abc", "xyz")) [1] "ABc" "XYz" But this isn't a simple change to replace() anymore, and I may just be spending too much time

[Rd] unsplit() mangles attributes

2022-11-01 Thread Steve Martin
existing code. It would be much easier if I can just restrict attention to restoring lost names for unclassed vectors :) Any thoughts are much appreciated. Thanks, Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] partial matching of row names in [-indexing

2022-01-14 Thread Steve Martin
s good behaviour or not is a different question, but the documentation seems clear enough (to me, at least). Best, Steve On Fri, 14 Jan 2022 at 20:40, Ben Bolker wrote: > > >People are often surprised that row-indexing a data frame by [ + > character does partial matching (and annoy

Re: [Rd] Feature request: Change default library path on Windows

2021-12-16 Thread Steve Haroz
Thank you for the update. Really helpful! Between this and the unicode changes, the next version will have a very positive impact on Windows users. Best, Steve On Mon, Dec 13, 2021 at 1:02 PM Tomas Kalibera wrote: > The default was now changed in R-devel to the local application data > (

[Rd] Should Position() use match.fun()?

2021-09-08 Thread Steve Martin
t with the other funprog functions, and would mean that Find() and Position() give the same result when expected > equals3 <- function(x) x == 3 > Position("equals3", 1:5) Error in f(x[[i]]) : could not find function "f" > Position2("equ

Re: [Rd] Feature request: Change default library path on Windows

2021-07-25 Thread Steve Haroz
Thanks Ben. I just sent a request for a bugzilla login. Jeroen chimed in earlier in support. Cheers, Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Feature request: Change default library path on Windows

2021-07-25 Thread Steve Haroz
ce who switch to a new cloud backup. Microsoft is unlikely to put out new guidance any time soon. And the current guidance doesn't seem opposed to putting R libraries in either suggested location. So how about we just pick one (I suggest USER/R for simplicity) and discuss how to go about makin

Re: [Rd] Feature request: Change default library path on Windows

2021-07-25 Thread Steve Haroz
tion during install, but that is a separate issue. I'm more concerned with the default location rather than how to change it. Users won't know that the current default (User/Documents) is incompatible with their cloud service until after they've installed R a

Re: [Rd] Feature request: Change default library path on Windows

2021-07-25 Thread Steve Haroz
uch as the dictionary definitions in a dictionary app), and other settings" I don't think libraries fall into the categories of state or settings. -Steve Haroz __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Feature request: Change default library path on Windows

2021-07-25 Thread Steve Haroz
ER/Documents/R to USER/R will help avoid "attrition" of beginners. -Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Feature request: Change default library path on Windows

2021-07-24 Thread Steve Haroz
y project environment managers like renv. It should just change the global default for Windows R users. Also, I believe that on Mac it is not in Documents, but it's in the equivalent of %USERPROFILE%/R. Thanks, Steve Haroz __ R-devel@r-project.or

Re: [Rd] Rtools and R 4.0.0?

2020-04-02 Thread Steve Bronder
gards, Steve Bronder Website: stevebronder.com Phone: 412-719-1282 Email: sbron...@stevebronder.com On Thu, Apr 2, 2020 at 12:36 AM Kevin Ushey wrote: > Hello, > > Has a decision been made yet as to whether R 4.0.0 on Windows is going > to be built using the new gcc8 toolchain (des

Re: [Rd] standard naming for components of R data structures

2020-01-07 Thread Steve Dutky
nuals/r-release/R-lang.html > > > On Tue, Jan 7, 2020 at 5:17 AM Steve Dutky wrote: > > > > I need to write some documentation: > > > > I'm looking for a standard, consistent way of referring to the > components > > and attributes of R data stru

[Rd] standard naming for components of R data structures

2020-01-06 Thread Steve Dutky
/ABNF grammar for R. I've looked at the output of bison -v ./R-3.6.2/src/main/gram.y but it does not appear helpful. I appreciate any suggestions for where to look or what to do. Thanks, Steve -- Ever tried, Ever failed, No Matter: Try again, Fail again, Fail Better. Samuel Beckett *Wo

Re: [Rd] R problems with lapack with gfortran

2019-05-11 Thread Steve Kargl
eated without the parameter names? For example, int ilaenv_ (int *, char *, char *, int *, int *, int *, int *, size_t , size_t ); For bonus points, a tab on continuation lines would be nice. -- Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R problems with lapack with gfortran

2019-05-06 Thread Steve Kargl
> you will get the calling signature that you already have in your C > sources. > > This also has the advantage of being standards compliant, and would be > probably be the preferred method. > With the caveat that one may need to use the VALUE attribute to account for pass-by-value v

Re: [Rd] R problems with lapack with gfortran

2019-05-06 Thread Steve Kargl
> require making changes to LAPACK itself?) This is probably the best solution as it should allow portability to any Fortran processor that supports F2003 or newer standard. See the gtk-fortran project. It has a python program that was used to generate the needed ISO C in

Re: [Rd] Bias in R's random integers?

2018-09-21 Thread Steve Grubb
hanges the above line to > > tmp = strtoul(buf, NULL, 10); > > the bands do disappear. Yes. I just discovered the problem also. I was looking at how my bash script worked fine and how the example Luke gave had a problem. I was using the print command to keep things in hex. A corrected copy was uploaded so no one else runs across this. Best Regards, -Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bias in R's random integers?

2018-09-21 Thread Steve Grubb
seq.c needs to be strtoul(buf, NULL, 0); so that it handles Hex, Decimal, or Octal. With this correction to vseq all is fine. No banding in any generated image. Corrected program is uploaded. So, the technique works. When the numbers had a problem, due to a conversion error, it showed a distinct

Re: [Rd] Bias in R's random integers?

2018-09-21 Thread Steve Grubb
der=T) qplot(X, Y, data=num.csv); Hope this helps sort this out. Best Regards, -Steve On Thursday, September 20, 2018 5:09:23 PM EDT Steve Grubb wrote: > On Thursday, September 20, 2018 11:15:04 AM EDT Duncan Murdoch wrote: > > On 20/09/2018 6:59 AM, Ralf Stubner wrote: > > > On

Re: [Rd] Bias in R's random integers?

2018-09-20 Thread Steve Grubb
the resulting plot that was generated from R's numbers using this technique: http://people.redhat.com/sgrubb/files/r-random.jpg And for comparison this was generated by collecting the same number of samples from the bash shell: http://people.redhat.com/sgrubb/files/bash-random.jpg The net result is that it shows some banding in the R generated random numbers where bash has uniform random numbers with no discernible pattern. Best Regards, -Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Help to create bugzilla account

2017-08-13 Thread Steve Grubb
rk loads but its harder to spot problems. Glibc is better at spotting memory bugs but not as fast. -Steve > Anybody feel like doing some empirics? > > Dirk __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [PATCH] Fix missing break

2017-07-21 Thread Steve Grubb
So .. indeed, your report will have triggered an improvement in > the code, which I'm about to commit. That's what it's all about. :-) > Thank you very much Steve! > > > I run the code through Coverity and have quite a lot of > > problems to tell you about. &g

Re: [Rd] [PATCH] Fix bad free in connections

2017-07-21 Thread Steve Grubb
ritten? Yes, I think I see the issue. vasprintf seems to not be tracked for memory allocation. So, yes I agree its correct as written. Sorry for the noise. -Steve __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [PATCH] Fix missing break

2017-07-20 Thread Steve Grubb
eople in core so they can see what the lay of the land looks like. R works amazingly good. So much so I decided to dig deeper. I'd recommend to the core developers that they ask to get on Coverity's open source scan list. https://scan.coverity.com/ It's free to open sour

[Rd] [PATCH] Fix status in main

2017-07-20 Thread Steve Grubb
Hello, This is a patch to fix what appears to be a simple typo. The warning says "invalid status assuming 0", but then instead sets runLast to 0. Signed-of-by: Steve Grubb Index: src/main/main.c === --- src/m

[Rd] [PATCH] Fix fscanf specifier in InIntegerAscii

2017-07-20 Thread Steve Grubb
Hello, The SMBUF_SIZED_STRING allows fscanf to read upto 511 bytes. The buffer at line 1382 is only 128 bytes. The fscanf format specifier ought to be resized to prevent a stack overrun. Signed-of-by: Steve Grubb Index: saveload.c

[Rd] [PATCH] Fix memory leak in PicTeXDeviceDriver

2017-07-20 Thread Steve Grubb
Hello, This patch fixes a memory leak due to ptd going out of scope before its assigned to dd. Signed-off-by: Steve Grubb Index: src/library/grDevices/src/devPicTeX.c === --- src/library/grDevices/src/devPicTeX.c (revision

[Rd] [PATCH] Fix bad free in connections

2017-07-20 Thread Steve Grubb
Hello, There are times when b points to buf which is a stack variable. This leads to a bad free. The current test actually guarantees the stack will try to get freed. Simplest to just drop the variable and directly test if b should get freed. Signed-off-by: Steve Grubb Index: src/main

[Rd] [PATCH] Fix missing break

2017-07-20 Thread Steve Grubb
Hello, There appears to be a break missing in the switch/case for the LISTSXP case. If this is supposed to fall through, I'd suggest a comment so that others know its by design. Signed-off-by: Steve Grubb Index: src/main/buil

Re: [Rd] bug with strptime, %OS, and "."

2017-01-11 Thread Upton, Stephen (Steve) (CIV)
Works for me: > strptime("17_35_14.01234.mp3","%H_%M_%OS")$sec [1] 14.01234 > strptime("17_35_14.mp3","%H_%M_%OS")$sec [1] 14 Just leave off the ".mp3" in your time pattern. Relevant section from the help ("Details") for strptime: strptime converts character vectors to class "POSIXlt": its input

Re: [Rd] Request: Increasing MAX_NUM_DLLS in Rdynload.c

2016-12-20 Thread Steve Bronder
See inlin ​e​ On Tue, Dec 20, 2016 at 12:14 PM, Spencer Graves < spencer.gra...@prodsyse.com> wrote: > Hi, Dirk: > > > > On 12/20/2016 10:56 AM, Dirk Eddelbuettel wrote: > >> On 20 December 2016 at 17:40, Martin Maechler wrote: >> | >>>>> Stev

Re: [Rd] Request: Increasing MAX_NUM_DLLS in Rdynload.c

2016-12-19 Thread Steve Bronder
across learner types we can still hit the MAX_NUM_DLLS error, meaning we'll have to break them down further (or maybe we can be clever with gcDLLs()?). I'm CC'ing Lars Kotthoff and Bernd Bischl to make sure I am representing the issue well. Regards, Steve Bronder Website: stevebr

[Rd] Request: Increasing MAX_NUM_DLLS in Rdynload.c

2016-12-19 Thread Steve Bronder
logize, but if it is possible to increase MAX_NUM_DLLS it would at least make the testing at mlr much easier. I understand you are all very busy and thank you for your time. Regards, Steve Bronder Website: stevebronder.com Phone: 412-719-1282 Email: sbron...@stevebronder.com [[alternative

Re: [Rd] summary( prcomp(*, tol = .) ) -- and 'rank.'

2016-03-24 Thread Steve Bronder
describes the amount of variance with respect to the number of components the user chooses to show? So if I only choose one I will explain 100% of the variance? I think showing 'Total Proportion of Variance' is important if that is the case. Regards, Steve Bronder Website: stevebronde

Re: [Rd] summary( prcomp(*, tol = .) ) -- and 'rank.'

2016-03-24 Thread Steve Bronder
describes the amount of variance with respect to the number of components the user chooses to show? So if I only choose one I will explain 100% of the variance? I think showing 'Total Proportion of Variance' is important if that is the case. Regards, Steve Bronder Website: stevebronde

Re: [Rd] Unable to Install Packages from Binaries on Windows for R 3.2.3

2016-02-27 Thread Steve Bronder
es : type 'binary' is not supported on this platform --- Platform session info below: sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 14.04.4 LTS Regards, Steve Bronder Website: stevebronder.com Phone: 412-719-1282 Email: sbr

Re: [Rd] Why is the diag function so slow (for extraction)?

2015-05-11 Thread Steve Bronder
max neval diaga 429033.896 434186.694 512143.6728 503355.5865 572811.11 656035.584 100 diagb216.112251.445536.8531688.3595706.98 2437.921 100 Regards, Steve Bronder Website: stevebronder.com Phone: 412-719-1282 Email: sbron...@stevebronder.com On Thu, May 7, 2015 at

Re: [Rd] Why is the diag function so slow (for extraction)?

2015-05-07 Thread Steve Bronder
x <- 1 } else n <- length(x) if (!missing(nrow)) n <- nrow if (missing(ncol)) ncol <- n } nc <- 10 set.seed(1) m <- matrix(sample(letters,nc^2,replace=TRUE), ncol = nc) runoff <- microbenchmark( diaga = diag(m), diagb = diag2(m) ) Regards, Steve Br

Re: [Rd] [BioC] enabling reproducible research & R package management & install.package.version & BiocLite

2013-03-05 Thread Steve Lianoglou
case someone else tries to institute such a regime but is getting friction due to that point in particular. Good stuff, though .. thanks for sharing that! -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medica

Re: [Rd] [BioC] enabling reproducible research & R package management & install.package.version & BiocLite

2013-03-04 Thread Steve Lianoglou
that these tools (vagrant, chef, puppet) are built to handle such cases. I'd imagine you'd probably need a location where you can grab the precise (versioned) packages for the things you are specifying, but ... -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology

Re: [Rd] conflict between rJava and data.table

2013-02-28 Thread Steve Lianoglou
Ugh, sorry, I meant to say: On Thu, Feb 28, 2013 at 8:49 PM, Steve Lianoglou wrote: [snip] > The development version of data.table no longer exports J from, but > once could still use J inside data.tabe[ ... ] calls. The development version of data.table no longer exports J, so this sho

Re: [Rd] conflict between rJava and data.table

2013-02-28 Thread Steve Lianoglou
not sure what version of data.table you can get by installing from R-forge, but you can either check out from subversion or download the latest source tar-ball from R-forge and install from source ... HTH, -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-K

Re: [Rd] installing spam package is failing (spam_0.29-1)

2012-07-18 Thread Steve Lianoglou
. > (also, who decided to name this thing "spam"? i suppose it seemed > cute at the time but it is virtually impossible to google for. ) That would be the author of the package. -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Cent

Re: [Rd] installing spam package is failing (spam_0.29-1)

2012-07-16 Thread Steve Lianoglou
ue, then yes: http://cran.cnr.Berkeley.edu/bin/linux/ubuntu/ HTH, -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.

Re: [Rd] Cannot Install Custom Package On Windows7 64-bit

2012-05-18 Thread Steve Pederson
l the best, Steve -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Friday, 18 May 2012 5:27 PM To: stephen.peder...@adelaide.edu.au Cc: r-devel@r-project.org Subject: Re: [Rd] Cannot Install Custom Package On Windows7 64-bit On 18.05.2012 08:55,

[Rd] Cannot Install Custom Package On Windows7 64-bit

2012-05-17 Thread Steve Pederson
t;C:\Rtools\gcc-4.6.3\bin" so it does seem to be there (if that's what it's trying to look for) Thanks in advance, Steve [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Column(row)wise minimum and maximum

2012-04-19 Thread Steve Lianoglou
Hi, On Thu, Apr 19, 2012 at 4:33 PM, Ravi Varadhan wrote: > Thanks, Henrik, for the helpful response.  Your package was helpful indeed! > > However, I would still like to see this in the base package. For what it's worth, I think they'd be useful to have there, too

Re: [Rd] merge bug fix in R 2.15.0

2012-03-18 Thread Steve Lianoglou
Hi, I'm not sure I follow ... I think we're in total agreement, but it sounds like you're suggesting we aren't. On Sun, Mar 18, 2012 at 4:40 PM, Peter Meilstrup wrote: > On Sun, Mar 18, 2012 at 12:48 PM, Steve Lianoglou > wrote: [snip] >> > Right, the user

Re: [Rd] merge bug fix in R 2.15.0

2012-03-18 Thread Steve Lianoglou
is "exhibit B" ... and not (using R-2.15.0 beta) (exhibit B): Error in merge.data.frame(d1, d2, by = "a", suffixes = c("", ".y")) : there is already a column named 'b' I can take a crack at a patch to keep the "rescue user from surprises&qu

Re: [Rd] Why cant my S4 class have a slot named `C`?

2012-02-21 Thread Steve Lianoglou
Hi, On Tue, Feb 21, 2012 at 11:54 AM, Martin Morgan wrote: [snip] > Hi Steve -- > > args(new) shows that new has a single named argument Class. R's rules of > partial matching mean that C matches Class before the unnamed "SVM", as in > >  f = function(XXX=1,

[Rd] Why cant my S4 class have a slot named `C`?

2012-02-21 Thread Steve Lianoglou
3 4 5 6 7 8 9 10 Slot "Cost": [1] 1 Slot "eps": [1] 0. === I was fishing around the R-devel mailing list w/ that error message to see if anything turned up but I wasn't having any luck so it took a while to figure out what was going on. Is this kn

Re: [Rd] informal conventions/checklist for new predictive modeling packages

2012-01-05 Thread Steve Lianoglou
ng to from the developer.r-project.org site as well as from some blurb in the header of the ML task view. -steve On Wed, Jan 4, 2012 at 9:19 AM, Max Kuhn wrote: > Working on the caret package has exposed me to the wide variety of > approaches that different authors have taken to creating

Re: [Rd] Contributors on R-Forge

2011-10-21 Thread Steve Lianoglou
hub.com/hadley/devtools/blob/master/R/install.r#L57 -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology  | Memorial Sloan-Kettering Cancer Center  | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact _

Re: [Rd] Contributors on R-Forge

2011-10-21 Thread Steve Lianoglou
ersion repo when you are ready to submit to CRAN and take advantage of r-forge's automated building and submission mojo. My 2 cents, -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology  | Memorial Sloan-Kettering Cancer Center  | Weill Medi

Re: [Rd] As a package author, is there a way to specify that your package is architecture (x86_64) specific?

2011-09-09 Thread Steve Lianoglou
Hi Simon, On Fri, Sep 9, 2011 at 5:32 PM, Simon Urbanek wrote: > > On Sep 9, 2011, at 10:30 AM, Steve Lianoglou wrote: > >> Hi Simon, Prof. Ripley, and Dirk, >> >> First: thanks again for the tips, it's great to have some of the "top >> bRass&qu

Re: [Rd] As a package author, is there a way to specify that your package is architecture (x86_64) specific?

2011-09-09 Thread Steve Lianoglou
: >> On Thu, 8 Sep 2011, Steve Lianoglou wrote: [snip] About the architecture thing: >>> Ok, sorry for being imprecise. Let's see if we can figure out what it >>> is (more precise details are at the bottom of the email). I see x86_64 >>> on every 64bi

Re: [Rd] As a package author, is there a way to specify that your package is architecture (x86_64) specific?

2011-09-08 Thread Steve Lianoglou
Hi Simon, Thanks for the quick response. Comments in line: On Thu, Sep 8, 2011 at 4:11 PM, Simon Urbanek wrote: > > On Sep 8, 2011, at 3:59 PM, Steve Lianoglou wrote: > >> Hi, >> >> Essentially: subject line says it all. >> >> I've created a package

Re: [Rd] As a package author, is there a way to specify that your package is architecture (x86_64) specific?

2011-09-08 Thread Steve Lianoglou
t; via Makevars, or somehow specify the package as 64bit only to see if the package can go up on CRAN until I can find time to fix the problem (if/when). Thanks, -steve On Thu, Sep 8, 2011 at 3:59 PM, Steve Lianoglou wrote: > Hi, > > Essentially: subject line says it all. > > I'

[Rd] As a package author, is there a way to specify that your package is architecture (x86_64) specific?

2011-09-08 Thread Steve Lianoglou
y install instructions for people to d/l my source package externally and use it that way. Thanks, -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology  | Memorial Sloan-Kettering Cancer Center  | Weill Medical College of Cornell University C

Re: [Rd] Suggestions for R-devel / R-help digest format

2011-07-07 Thread Steve Lianoglou
email boxes don't get flooded. gmail then takes care of the threading as you'd expect for each mailing list ... Maybe you'd find that setup helpful. -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology  | Memorial Sloan-Kett

Re: [Rd] Recent and upcoming changes to R-devel

2011-07-06 Thread Steve Lianoglou
with two sets of code. And you could also try using Hadley's devtools package: https://github.com/hadley/devtools/ Last I tried to use it, there was some problems with some S4isms (that maybe were my fault(?)) so I switched back to sourcing my development-package-dirs (which is fine until yo

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Steve Lianoglou
ore or less ordinary LaTeX files that you can embed R code into. Very handy to know how to use, actually, even outside of the "Package Authoring" context, so ... perhaps you can consider it as good exercise if you decide to take it on :-) But again, you can always go the other rout

Re: [Rd] Recursive objects

2011-05-05 Thread Steve Lianoglou
case you've never stumbled on this gem: google for "recursion" and look for Google's "Did you mean" suggestion ... -- Steve Lianoglou Graduate Student: Computational Systems Biology  | Memorial Sloan-Kettering Cancer Center  | Weill Medical College of Cornell University Con

Re: [Rd] R CMD check and Suggests Packages

2011-04-29 Thread Steve Lianoglou
ctions of *.Rd files are run during R CMD check ... so, if you're trying to load data from a suggested package that may not be installed, perhaps you can wrap those code blocks with \dontrun{}. For more info: this is covered in the "Writing R Extensions," but is also describe

[Rd] list comprehension to create an arbitrary-sized list with arbitrary names/values

2010-10-13 Thread Steve Kim
In python, one can do this mydict = dict([(keyfun(x), valfun(x)) for x in mylist]) to create a dictionary with whatever keys and values we want from an input list of arbitrary size. In R, I want to similarly create a list with names/values that are generated by some keyfun and valfun (assuming th

[Rd] Bug in acf function?

2010-07-13 Thread Steve Jones
the acf function - as it stands, the value is shown in a plot but there's no way to actually get the value. Steve. signature.asc Description: OpenPGP digital signature __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] how do I join two lists of the same type ?

2009-12-30 Thread Steve Mew
ot;1"1212 "2"4523 "3"2556 "4"55288 I have tried rbind,cbind,append, merge no luck so far... Any help greatly appreciated... Thanks Steve [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] p-generalized normal distribution

2009-12-01 Thread Steve Kalke
Ben Bolker schrieb: Steve Kalke uni-rostock.de> writes: I would like to know if there is an R-package available for computing the density, distribution function, quantiles and random numbers of the p-generalized normal distribution or if somebody is already working on it.

[Rd] p-generalized normal distribution

2009-11-24 Thread Steve Kalke
Hello, I would like to know if there is an R-package available for computing the density, distribution function, quantiles and random numbers of the p-generalized normal distribution or if somebody is already working on it. Best regards, Steve Kalke

Re: [Rd] R_CallMethodDef: 'type' and 'style' fields?

2009-10-09 Thread Steve Jaffe
Hmm, I should have read the .C documentation more carefully still. I can't use DUP=FALSE when passing character vectors. In that case, since specifying the style doesn't suppress copying I guess my only option is to use the more complicated .Call API, which I naturally was hoping to avoid. Dunca

Re: [Rd] R_CallMethodDef: 'type' and 'style' fields?

2009-10-09 Thread Steve Jaffe
ich case it would seem to be a good idea for me to make the signature of my C function declare the non-output arguments to be const (eg const int* rather than int*). Thanks for your help. Duncan Temple Lang wrote: > > > > Steve Jaffe wrote: >> In Writing R Extensions it is

[Rd] R_CallMethodDef: 'type' and 'style' fields?

2009-10-08 Thread Steve Jaffe
In Writing R Extensions it is said that R_CallMethodDef has two optional fields, 'type' and 'style' (where 'style' is said to distinguish in/out/inout arguments). But it doesn't give the possible values for 'style'. Looking at the header Rdynload.h (version 2.9.2) it appears that R_CallMethodDef

[Rd] R_CallMethodDef: 'type' and 'style' fields?

2009-10-08 Thread Steve Jaffe
According to Writing R Extensions, the R_CallMethodDef struct has two optional fields for specifying the 'type' and 'style' (where 'style' is said to distinguish in/out/inout). But it gives no details of the possible values of 'style'. And looking in the header file Rdynload.h the definition of R_

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Steve Weston
. But many of our Windows users don't know about PATH, so it may be worth checking in the registry if python.exe isn't in PATH, rather than requiring the user to do some manual reconfiguration. But Vista seems to have changed the registry in some confusing ways. It may not be worth the

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Steve Weston
etter than using PATH, since the standard Python installer doesn't update PATH, although the ActiveState Python installer does. But both approaches can fail, depending on the options that were specified when Python was installed. Good luck, - Steve On Sat, Jun 27, 2009 at 12:01 PM, Gabor Gr

Re: [Rd] Qs: The list of arguments, wrapping functions...

2009-05-19 Thread Steve Weston
n find out about how it was called? You should read chapter 6 of the "R Language Definition" manual, which is titled "Computing on the language". -- Steve Weston REvolution Computing One Century Tower | 265 Church Street, Suite 1006 New Haven, CT 06510 P: 203-777-7442 x2

Re: [Rd] forcing the use of the c++ linker with c++ and fortran sources

2009-01-09 Thread Steve Guerrero
en makeargs="${makeargs} SHLIB_LIBADD='\$(OBJC_LIBS)'" fi fi fi This logic seems to suggest that if there are fortran95 sources, the LD command will be SHLIB_FCLD...with no apparent way to override it. Am I mistaken? Thanks, -sg Duncan Murdoch wrote: On 0

[Rd] forcing the use of the c++ linker with c++ and fortran sources

2009-01-09 Thread Steve Guerrero
I'm trying to build a package which has both gfortran and c++ code. In my installation of R, the R CMD INSTALL process compiles each c++ and gfortran code with the correct compiler, but performs the link step with "gfortran" and this creates undefined symbols at load time. How does one overr

[Rd] closeAllConnections fails with socketConnection (PR#11396)

2008-05-07 Thread steve
Full_Name: Stephen Weston Version: 2.7.0 OS: darwin8.10.1 Submission from: (NULL) (75.56.13.246) If a socketConnection is created in an R session, and you call closeAllConnections to close it, you get the following error: > x <- socketConnection("localhost", 80) > closeAllConnections() Error in

[Rd] Call for participation: Comparative Methods in R Hackathon

2007-10-03 Thread Steve Kembel
NESCent Hackathon on Comparative Methods in R Call for Participation and Input The R statistical analysis package has emerged as a popular platform for implementation of powerful comparative phylogenetic methods to understand the evolution of organismal traits. The

[Rd] Fortran and C entry point problem.

2006-03-30 Thread Steve Su
Fortran and C codes already available on CRAN so I am unsure what is the missing link to make these work? Can anyone provide an explanation and procedure to over come this problem? Thanks. Steve. [[alternative HTML version deleted]]

[Rd] Compiling codes from existing packages.

2006-03-29 Thread Steve Su
y package" but where do I go from there seems to be a complete mystery to me at this stage? Any pointers would be very welcome indeed. Steve. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] "sh" is not recognised as an internal or external command, operable program or batch file

2006-03-26 Thread Steve Su
Dear All, I was trying to check my package using R CMD check GLDEX And I got the following error? "sh" is not recognised as an internal or external command, operable program or batch file Can anyone let me know what might be the cause of this error? Thanks.

[Rd] Creating a package bundle.

2006-03-26 Thread Steve Su
them to get updated so there will not be compatibility problems? I am aware there is a writing R extensions guide but it seems to be geared towards a more advanced user rather than beginner like me? Thanks in advance. Steve. [[alternative HTML version deleted