[Rd] Using GSL Routines

2011-04-13 Thread Mohit Dayal
Dear R-programmers,

I am trying out certain methods in R, and the statistics require me to
calculate n-(sample size) dimensional equations. They are not really very
hard to solve - my home-brew implentation of Newton-Raphson in R succeeds
most of time with simulated data. (Note that I am assured of a unique
solution by theory). Problem comes in with real data, for which I should
really implement a good line search (convergence issues). Being lazy, i
would like to link to the GSL routines which are of course faster and more
reliable.

My question is should i use the C - GSL routines or the Python ones in
NumPy? My major concern is the portability of the code i write: really dont
want users to have to install a bunch of software just to use my package.
(Im looking at Windows here)

Alternatively, should i just hack out the code (fsolve) and put it in my
package?

Thanks for the advice,
Mohit Dayal
Applied Statistics & Computing Lab
ISB

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Tail Call Elimination?

2011-04-16 Thread Mohit Dayal
Dear R-programmers,

I am trying to program a Newton-Raphson in R (yes, i will try GSL, not right
now), and it would be a real boon if R had tail call elimination, so that a
recursive program has a guarantee not to fail due to stack overflows, given
how slow loops in R are. I did look at the documentation, but could not find
a reason for it.

Regards,
Mohit Dayal
Researcher
Applied Statistics & Computing Lab
ISB

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Projection Pursuit Index

2011-05-31 Thread Mohit Dayal
Dear R-developers,

I am trying to experiment with projection pursuit (PP), and different
indexes for the same, especially using the tourr package. However, I've
noticed that a PP index in the said package is only a function of the
projected data. Could I modify the function so that the index sees the
projection bases instead (or in addition to the data) ?

Alternatively, if some other package can be used this way, I would be
greatly obliged if you'd let me know.

Thanks and Regards,
Mohit Dayal
Researcher
Applied Statistics and Computing Lab
Indian School of Business

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Fwd: Projection Pursuit Index

2011-05-31 Thread Mohit Dayal
OK, figured this one out. But would a be a good modification I feel.

Thanks and Regards,
Mohit Dayal

-- Forwarded message --
From: Mohit Dayal 
Date: 31 May 2011 17:05
Subject: Projection Pursuit Index
To: R-devel@r-project.org


Dear R-developers,

I am trying to experiment with projection pursuit (PP), and different
indexes for the same, especially using the tourr package. However, I've
noticed that a PP index in the said package is only a function of the
projected data. Could I modify the function so that the index sees the
projection bases instead (or in addition to the data) ?

Alternatively, if some other package can be used this way, I would be
greatly obliged if you'd let me know.

Thanks and Regards,
Mohit Dayal
Researcher
Applied Statistics and Computing Lab
Indian School of Business

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] AS Algorithms

2011-07-01 Thread Mohit Dayal
Dear R-programmers,

I would like to use one of the AS Algorithms that used to be published in
the journal Applied Statistics of the Royal Statistical Society (Series C).
FORTRAN code based on these are available on the Statlib website at

http://lib.stat.cmu.edu/modules.php?op=modload&name=PostWrap&file=index&page=apstat/

with the disclaimer,

*"The Royal Statistical Society holds the copyright to these routines, but
has given its permission for their distribution provided that no fee is
charged."*
*
*
*Does this make these programs compatible with an open source license like
GPL-2 ? More specifically, can one safely include them in an R package?*
*
*
*BTW I am looking at AS 133 : Finding the global maximum or minimum of a
function of 1 variable.
*

Regards,
Mohit Dayal
Researcher
Applied Statistics & Computing Lab
ISB

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Fwd: Two ideas / feature requests for R CMD check

2016-02-25 Thread Mohit Dayal
Hi All,

One thing that I've encountered with R CMD check is that if your package
uses some functions from a base package, then the corresponding NAMESPACE
imports do not seem to be automatically suggested. It might possibly an
issue with how one's system is configured, but say, with the --as-cran
switch this thing should be picked up on.

Like I felt this was something else that could be looked into :)

Thanks!
Mohit
--
mohitdayal.strikingly.com


-- Forwarded message --
From: Gábor Csárdi 
Date: 25 February 2016 at 05:40
Subject: [Rd] Two ideas / feature requests for R CMD check
To: "r-devel@r-project.org" 


We all love R CMD check. :) In my opinion it would be even better if
it had options to

- Run all checks, even if one fails with an error. I realize this
sometimes might not make sense (e.g. if there is no DESCRIPTION file),
but often does.

- Run all examples even if an example fails. I think it would be great
to get all failing examples at once, so that a package author can
estimate the amount of breakage.

Thank you for considering there,
Gabor

__
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