Re: [Rd] Help with resolving non-API call warnings in Rust-based packages (ymd and fcl)

2025-04-15 Thread Josiah Parry
25 10:27 > To 谭显英 > Cc r-devel@r-project.org > Subject Re: [Rd] Help with resolving non-API call warnings in Rust-based > packages (ymd and fcl) > Please update your Makevars template using the development version of > rextendr. > > Please see: > https://github.com/extend

Re: [Rd] Help with resolving non-API call warnings in Rust-based packages (ymd and fcl)

2025-04-14 Thread 谭显英
Thanks. I confirmed the issue has been resolved by following the instructions in your link. Regards, Xianying Tan (shrektan) Replied Message | From | Josiah Parry | | Date | 04/15/2025 10:27 | | To | 谭显英 | | Cc | r-devel@r-project.org | | Subject | Re: [Rd] Help with resolving

Re: [Rd] Help with resolving non-API call warnings in Rust-based packages (ymd and fcl)

2025-04-14 Thread Josiah Parry
Please update your Makevars template using the development version of rextendr. Please see: https://github.com/extendr/extendr/releases/tag/extendr-api-v0.8.0 On Mon, Apr 14, 2025 at 18:59 谭显英 wrote: > Dear R-devel list, > > > I maintain two packages that use Rust code through the "extendr" lib

Re: [Rd] Help requested: writing text to a raster in memory

2023-09-24 Thread Simon Urbanek
Since I'm working with Paul on the glyph changes to the R graphics engine I'm quite interested in this so I had the idea to take out the guts from my Cairo package into a self-contained C code. Your request is good to bump is up on my stack. I already have code that draws text into OpenGL textur

Re: [Rd] Help requested: writing text to a raster in memory

2023-09-24 Thread Duncan Murdoch
I'm somewhat aware of how tricky it all is. For now I'm going to do it in R (usng textshaping for layout and base graphics on the ragg::agg_capture device to draw to the bitmap). I'll avoid allowing changes to happen in the C++ code. Eventually I'll see if I can translate the code into C++.

Re: [Rd] Help requested: writing text to a raster in memory

2023-09-24 Thread Simon Urbanek
Duncan, drawing text is one of the most complicated things you can do, so it really depends how for you want to go. You can do it badly with a simple cairo show_text API. The steps involved in doing it properly are detecting the direction of the language, finding fonts, finding glyphs (resolvin

Re: [Rd] help(".libPaths"): Paragraph lacks mentioning of R_LIBS_SITE

2021-04-29 Thread Kurt Hornik
> Henrik Bengtsson writes: Thanks: Tomas and I have now improved this. Best -k > In ?base::.libPaths, there's a paragraph saying: > The library search path is initialized at startup from the environment > variable R_LIBS (which should be a colon-separated list of directories > at which R lib

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-05 Thread Abby Spurdle
> (1) Create a top-level help page with a title like "Date and Time > Classes" to give a brief but general overview. This would mean the > existing DateTimeClasses would need a new title. I wanted to modify my first suggestion. Perhaps a better idea would be to reference an external document givin

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-05 Thread Mark Leeds
Hi All: I've been following this thread and just want to add one pointer. For those who aren't interested in using new packages that try to make dates-times easier but also find the base R tools confusing, below is link to an extremely well written document from over 15 years ago. It's probably al

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-05 Thread Abby Spurdle
I think POSIXct and POSIXlt are badly-chosen names. The name "POSIX" implies UNIX. (i.e. XYZix operating system is mostly POSIX compliant... Woo-Hoo!). My assumption is that most people modelling industrial/econometric data etc, or data imported from databases, don't want system references everywhe

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-04 Thread J C Nash
As with many areas of R usage, my view is that the concern is one of making it easier to find appropriate information quickly. The difficulty is that different users have different needs. So if one wants to know (most of) what is available, the Time Series Task View is helpful. If one is a novice,

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-04 Thread Iñaki Ucar
On Sat, 4 Apr 2020 at 11:51, Martin Maechler wrote: > > This is mostly a RFC [but *not* about the many extra packages, please..]: > > Noticing to my chagrin how my students work in a project, > googling for R code and cut'n'pasting stuff together, accumulating > this and that package on the way

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-24 Thread Dirk Eddelbuettel
On 24 March 2020 at 07:19, Dirk Eddelbuettel wrote: | On 24 March 2020 at 11:39, Lionel Henry wrote: | | > Shield res(Rcpp_fast_eval(Rf_lang2(asEnvironmentSym, x), R_GlobalEnv)); | | | | The call should be protected before evaluation though. So more like: | | | | Shield call(Rf_lang2(asEnviron

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-24 Thread Dirk Eddelbuettel
On 24 March 2020 at 11:39, Lionel Henry wrote: | > Shield res(Rcpp_fast_eval(Rf_lang2(asEnvironmentSym, x), R_GlobalEnv)); | | The call should be protected before evaluation though. So more like: | | Shield call(Rf_lang2(asEnvironmentSym, x)); | return Rcpp_fast_eval(call, R_GlobalEnv); Good

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-24 Thread Lionel Henry
> Shield res(Rcpp_fast_eval(Rf_lang2(asEnvironmentSym, x), R_GlobalEnv)); The call should be protected before evaluation though. So more like: Shield call(Rf_lang2(asEnvironmentSym, x)); return Rcpp_fast_eval(call, R_GlobalEnv); Best, Lionel On 3/23/20, Dirk Eddelbuettel wrote: > > > On 23 Mar

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-24 Thread Romain Francois
> Le 23 mars 2020 à 22:55, Dirk Eddelbuettel a écrit : > > On 23 March 2020 at 17:07, Ben Bolker wrote: > | Or is there a way I can use Shield() since this an Rcpp-based project > | anyway? > > Yes you can, and I would recommend it. > > Example from Rcpp itself, file Environment.h: > > Shie

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-24 Thread Dirk Eddelbuettel
On 23 March 2020 at 17:07, Ben Bolker wrote: | Or is there a way I can use Shield() since this an Rcpp-based project | anyway? Yes you can, and I would recommend it. Example from Rcpp itself, file Environment.h: Shield res(Rcpp_fast_eval(Rf_lang2(asEnvironmentSym, x), R_GlobalEnv)); For Rc

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-23 Thread Simon Urbanek
Ben, yes, you have to store the result into a variable, then unprotect, then return. Cheers, S > On 24/03/2020, at 10:07 AM, Ben Bolker wrote: > > > Thanks, that's really useful. One more question for you, or someone > else here: > > const ArrayXd glmLink::linkFun(const ArrayXd& mu) const

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-23 Thread Martin Maechler
> Ben Bolker > on Mon, 23 Mar 2020 17:07:36 -0400 writes: > Thanks, that's really useful. One more question for you, or someone > else here: > const ArrayXd glmLink::linkFun(const ArrayXd& mu) const { > return as(::Rf_eval(::Rf_lang2(as(d_linkFun), > as(Rcpp::Nu

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-23 Thread Ben Bolker
Thanks, that's really useful. One more question for you, or someone else here: const ArrayXd glmLink::linkFun(const ArrayXd& mu) const { return as(::Rf_eval(::Rf_lang2(as(d_linkFun), as(Rcpp::NumericVector(mu.data(), mu.data() + mu.size()))

Re: [Rd] help with rchk warnings on Rf_eval(Rf_lang2(...))

2020-03-23 Thread Tomas Kalibera
On 3/23/20 8:39 PM, Ben Bolker wrote: Dear r-devel folks, [if this is more appropriate for r-pkg-devel please let me know and I'll repost it over there ...] I'm writing to ask for help with some R/C++ integration idioms that are used in a package I'm maintaining, that are unfamilar to me, an

Re: [Rd] help building very old R

2018-07-31 Thread peter dalgaard
[Oops, I seem to have managed not to send this yesterday...] Not sure how to fix, but note that configure is not lying to you: > configure:13319: /usr/include/tk8.3/tk.h: No such file or directory tk8.3, not tcl8.3 -pd > On 30 Jul 2018, at 06:35 , David Hugh-Jones wrote: > > Hi guys, > > Pe

Re: [Rd] Help to create bugzilla account

2017-09-23 Thread Dmitriy Selivanov
I've created repo with initial investigation - https://github.com/dselivanov/r-malloc/blob/master/README.md. At first glance it seems jemalloc, tcmalloc, glibc with malloc_trim all work better than default malloc with glibc. Interesting thing is that glibc with malloc_trim finishes benchmark a bit

Re: [Rd] Help to create bugzilla account

2017-08-13 Thread Steve Grubb
On Saturday, August 12, 2017 5:36:36 PM EDT Dirk Eddelbuettel wrote: > On 12 August 2017 at 15:10, luke-tier...@uiowa.edu wrote: > | As the Python posts poitns out, it is possible to use alternate malloc > | implementations, either rebuilding R to use them or using LD_PRELOAD. > | On Ubuntu for exa

Re: [Rd] Help to create bugzilla account

2017-08-13 Thread Simon Urbanek
FWIW if we are talking about alternative allocators, tcmalloc is another candidate that we are using for our projects where we care about allocations and performance (another upshot is that it's very flexible so you can do a lot of cool things if you care). However I didn't try it with R - I'll

Re: [Rd] Help to create bugzilla account

2017-08-13 Thread Dirk Eddelbuettel
On 13 August 2017 at 15:15, Dmitriy Selivanov wrote: | Very interesting information about switching glibc malloc to jemalloc. | | So I see action plan as following: | |1. set up some benchmark (need to think about design) |2. Run it on ubuntu machine with default glibc malloc |3. Run

Re: [Rd] Help to create bugzilla account

2017-08-13 Thread Dmitriy Selivanov
Very interesting information about switching glibc malloc to jemalloc. So I see action plan as following: 1. set up some benchmark (need to think about design) 2. Run it on ubuntu machine with default glibc malloc 3. Run it with malloc_trim passed with reg.finalizer() 4. Run it with j

Re: [Rd] Help to create bugzilla account

2017-08-12 Thread Dirk Eddelbuettel
On 12 August 2017 at 15:10, luke-tier...@uiowa.edu wrote: | As the Python posts poitns out, it is possible to use alternate malloc | implementations, either rebuilding R to use them or using LD_PRELOAD. | On Ubuntu for example, you can have R use jemalloc with | | sudo apt-get install libjemalloc

Re: [Rd] Help to create bugzilla account

2017-08-12 Thread luke-tierney
On Sat, 12 Aug 2017, Dmitriy Selivanov wrote: Strange because in my all my experiments calling malloc.trim always helped - memory reported by top decreased to the level it supposed to be. Do you have in mind case when calling malloc.trim won't do anything? Also shouldn't MALLOC_TRIM_THRESHOLD_ e

Re: [Rd] Help to create bugzilla account

2017-08-12 Thread Dmitriy Selivanov
Strange because in my all my experiments calling malloc.trim always helped - memory reported by top decreased to the level it supposed to be. Do you have in mind case when calling malloc.trim won't do anything? Also shouldn't MALLOC_TRIM_THRESHOLD_ env variable has impact on malloc.trim calls? At t

Re: [Rd] Help to create bugzilla account

2017-08-12 Thread Simon Urbanek
> On Aug 11, 2017, at 12:57 PM, Iñaki Úcar wrote: > > 2017-08-11 16:00 GMT+02:00 Martin Maechler : >>> Dmitriy Selivanov >>>on Fri, 11 Aug 2017 17:33:31 +0400 writes: >> >>> Hi mailing list and R-core. Could someone from R-core please help me to >>> create account in bugzilla? I wo

Re: [Rd] Help to create bugzilla account

2017-08-11 Thread Iñaki Úcar
2017-08-11 16:00 GMT+02:00 Martin Maechler : >> Dmitriy Selivanov >> on Fri, 11 Aug 2017 17:33:31 +0400 writes: > > > Hi mailing list and R-core. Could someone from R-core please help me to > > create account in bugzilla? I would like to submit issue related to > gc() to >

Re: [Rd] Help to create bugzilla account

2017-08-11 Thread Dmitriy Selivanov
Thanks Martin, I've received invitation and will create ticket soon. Regarding issue - basically the problem is that on operating systems which use glibc memory is not freed (R releases it, but system doesn't trim it). Setting corresponding environment variable (MALLOC_TRIM_THRESHOLD_) doesn't hel

Re: [Rd] Help to create bugzilla account

2017-08-11 Thread Martin Maechler
> Dmitriy Selivanov > on Fri, 11 Aug 2017 17:33:31 +0400 writes: > Hi mailing list and R-core. Could someone from R-core please help me to > create account in bugzilla? I would like to submit issue related to gc() to > wishlist. I will create one. Your previous e-mails

Re: [Rd] help pages base R not rendered correctly?

2017-05-23 Thread peter dalgaard
> On 23 May 2017, at 15:56 , Joris Meys wrote: > > Hi Duncan, > > that explains, thank you. If nobody finds the time to fix that, I might > give it a shot myself this summer. Barbeque is overrated. I beg to differ! Chances of rain are underestimated, though (in .be as in .dk, I suspect). ;-

Re: [Rd] help pages base R not rendered correctly?

2017-05-23 Thread Joris Meys
Hi Duncan, that explains, thank you. If nobody finds the time to fix that, I might give it a shot myself this summer. Barbeque is overrated. Cheers Joris On Tue, May 23, 2017 at 3:10 PM, Duncan Murdoch wrote: > On 23/05/2017 8:39 AM, Joris Meys wrote: > >> Hi all, >> >> Don't know if this is a

Re: [Rd] help pages base R not rendered correctly?

2017-05-23 Thread Duncan Murdoch
On 23/05/2017 8:39 AM, Joris Meys wrote: Hi all, Don't know if this is a known issue, but I couldn't find anything so I report anyway. When checking eg ?qr in both RStudio and the naked R IDE, the help page is rendered incorrectly. More specifically, any use of \bold{...} is printed as is, rathe

Re: [Rd] Help with libiconv problem

2016-03-15 Thread Lukas Stadler
> On 15 Mar 2016, at 0:04, Mick Jordan wrote: > > On 3/14/16 1:49 PM, Mick Jordan wrote: >> A couple of my colleagues are having problems building R-3.2.4 on Mac OS X >> El Capitan somehow related to libiconv. I personally don't have any problems >> on either of my Macs. I'm hoping thie make l

Re: [Rd] Help with libiconv problem

2016-03-14 Thread Mick Jordan
On 3/14/16 1:49 PM, Mick Jordan wrote: A couple of my colleagues are having problems building R-3.2.4 on Mac OS X El Capitan somehow related to libiconv. I personally don't have any problems on either of my Macs. I'm hoping thie make log might trigger something in the readers of this list: gc

Re: [Rd] Help

2015-03-18 Thread William Dunlap
You can use nls's 'control' argument to work around this problem. Read help(nls.control) for details. nls(control = nls.control(minFactor=2^-20), ...) will allow a smaller step factor than the default 2^-10 and loosening the convergence tolerance with nls(control = nls.control(tol=1e-4)) may

Re: [Rd] Help finding source of warnings

2015-01-18 Thread Prof J C Nash (U30A)
Kurt pointed to the issue. Thanks. I did install r-recommended, but it seems something went wrong at some point. A reinstall got rid of the warnings. Thanks to Dirk for his offer of help. Now I'm still getting a namespace issue on the second run of an optimization problem. However, I think I

Re: [Rd] Help finding source of warnings

2015-01-18 Thread Dirk Eddelbuettel
On 18 January 2015 at 09:03, Prof J C Nash (U30A) wrote: | I've been implementing a wrapper to the 2011 Fortran version of | L-BFGS-B. In optim(), R uses a C translation of a Fortran version (the | version number does not appear to be documented by the original | authors). The authors of the or

Re: [Rd] Help finding source of warnings

2015-01-18 Thread Kurt Hornik
> Prof J C Nash (U30A) writes: > I've been implementing a wrapper to the 2011 Fortran version of > L-BFGS-B. In optim(), R uses a C translation of a Fortran version (the > version number does not appear to be documented by the original > authors). The authors of the original Fortran code ha

Re: [Rd] Help in building R with minGW

2015-01-02 Thread Simon Urbanek
Please read R-admin section 3.1 - as you'll notice it doesn't say anything about running ./configure since that's only for unix. http://r.research.att.com/man/R-admin.html#Building-from-source Cheers, Simon On Jan 2, 2015, at 12:33 PM, Edoardo Baldoni wrote: > Dear R users, > I would need s

Re: [Rd] help with gotoExitingHandler(R_NilValue, call, entry); . Implementation of error handling internally

2014-02-27 Thread Romain François
Never mind. For my initial question, I can just use: R_curErrorBuf My current implementation now only depend on R_FunTab and R_GlobalContext which R does not conceal behind attribute_hidden. https://github.com/romainfrancois/Rcpp11/blob/master/inst/include/Rcpp/Context.h Romain Le 27 févr. 201

Re: [Rd] help with gotoExitingHandler(R_NilValue, call, entry); . Implementation of error handling internally

2014-02-26 Thread Romain François
Of course one problem is that R hides things that I need for this, such as R_HandlerStack and R_ReturnedValue. I understand they have to be hidden, in which case can we have an exposed mechanism similar to what R_ToplevelExec does, but with the added functionality of giving access to the condi

Re: [Rd] help page of warnings()

2013-12-30 Thread Hadley Wickham
> Finally, for your specific use case, see also ?withCallingHandlers which > can not only detect warnings, but also set callback functions which can > decide whether to abort or process and restart when a warning is thrown. > The documentation for that function is a little rough, though you can see

Re: [Rd] help page of warnings()

2013-12-29 Thread Gabriel Becker
Elad, I disagree. This section: It is undocumented where ‘last.warning’ is stored nor that it is visible, and this is subject to change. Prior to R 2.4.0 it was stored in the workspace, but no longer. already says that it won't work (or rather that there is no reason to think it would

Re: [Rd] help page of warnings()

2013-12-29 Thread Elad Zippory
Hi Scott, options(warn = 2) is a great idea. Thank you. My suggestion was not to change the behavior of last.warning, just to write what the behavior is very explicitly in the help page. But I guess this is just difference of opinions. Thanks for the suggestions, Elad On Sun, Dec 29, 2013 at 3:

Re: [Rd] help page of warnings()

2013-12-29 Thread Scott Kostyshak
On Sat, Dec 28, 2013 at 11:19 PM, Elad Zippory wrote: > Hi Scott, > > Thank you for your detailed response. (btw, the reason why I didn't link the > Stack Overflow question is because I deleted it after I sent the e-mail). Hi Elad, Please keep the conversation on the list unless there is a reaso

Re: [Rd] help page of warnings()

2013-12-28 Thread Scott Kostyshak
On Sat, Dec 28, 2013 at 6:06 PM, Elad Zippory wrote: > Hi, > > I raised this issue at stackoverflow and it was suggested to raise it here: > > >From the current help page, it is unclear that "warnings()" does not clear > after rm(list=ls()). Currently the page states that: > > "Warning: It is undo

Re: [Rd] Help: Where can I find the code for 'C_Cdqrls'?

2013-04-23 Thread Prof Brian Ripley
First, it is not a function. It is an R object in the stats namespace and you can look at it like any other object: > stats:::C_Cdqrls $name [1] "Cdqrls" $address attr(,"class") [1] "RegisteredNativeSymbol" $dll DLL name: stats Filename: /Users/ripley/R/R-devel/library/stats/libs/stats.so Dy

Re: [Rd] Help: Where can I find the code for 'C_Cdqrls'?

2013-04-23 Thread Uwe Ligges
On 23.04.2013 09:35, 赵自强 wrote: Dear all, I’m not sure if it is O.K. to ask this question here. But where can I find the code for the function ‘C_Cdqrls’ which is called by the R function ‘lsfit‘. Look into the R sources: grepping for dqrls show

Re: [Rd] Help page on '$': 'warnPartialMatchAttr' should be 'warnPartialMatchDollar'

2012-11-19 Thread Martin Maechler
Thank you, Suharto, you are right, there (on ?Extract ) has been a typo. I've fixed it and also added an example at the very end of that help page. Martin Maechler, ETH Zurich > Suharto Anggono > on Thu, 15 Nov 2012 23:48:12 -0800 writes: > http://stackoverflow.com/questio

Re: [Rd] help with install.packages

2012-08-02 Thread Uwe Ligges
On 02.08.2012 10:33, luxInteg wrote: Greetings, I am trying to use install.packages obtained from here http://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html My computer has these OS: 64-bit blfs linux R2.15.1 # A) I did the following:- export DIR=/home/st

Re: [Rd] Help page of colors() : add a new example ?

2012-01-31 Thread Millot Gael
; À : Millot Gael > Cc : r-devel@r-project.org > Objet : Re: [Rd] Help page of colors() : add a new example ? > > Here's another graphic that shows R colors in a table, from Earl Glynn > of the Stowers Institute of Medicine: > > http://research.stowers-institute.org/efg/R/Col

Re: [Rd] Help page of colors() : add a new example ?

2012-01-30 Thread Dennis Murphy
Here's another graphic that shows R colors in a table, from Earl Glynn of the Stowers Institute of Medicine: http://research.stowers-institute.org/efg/R/Color/Chart/ If the link doesn't bring up the page (my didn't initially), Google on 'Earl Glynn Stowers' and look for the link 'Chart of R Color

Re: [Rd] Help page of colors() : add a new example ?

2012-01-30 Thread Kevin Wright
Gael, Your graph has a lot of white space. Is that intentional? I've seen similar code in other places that uses less white space. Here's another option for choosing ANY color, not just pre-defined colors. require(tcltk) tclvalue(tcl("tk_chooseColor")) Kevin On Mon, Jan 30, 2012 at 8:46 AM,

Re: [Rd] help text for which.min

2011-10-10 Thread Henrik Pärn
Of course the reasoning below applies also to an example with which.max, so yet another suggestion for the x vector: x <- c(1, 2, 0, 0, 3, 3, 1, 2) > which.min(x) [1] 3 > which(x == min(x)) [1] 3 4 > which.max(x) [1] 5 > which(x == max(x)) [1] 5 6 Cheers, Henrik On 08.10.2011 14:54, Henri

Re: [Rd] help with eval()

2011-04-19 Thread peter dalgaard
On Apr 19, 2011, at 07:16 , Prof Brian Ripley wrote: > On Mon, 18 Apr 2011, Duncan Murdoch wrote: > >> On 11-04-18 5:51 PM, Terry Therneau wrote: >>> I've narrowed my scope problems with predict.coxph further. >>> Here is a condensed example: >>> fcall3<- as.formula("time ~ age") >>> dfun3<- fun

Re: [Rd] help with eval()

2011-04-18 Thread Prof Brian Ripley
On Mon, 18 Apr 2011, Duncan Murdoch wrote: On 11-04-18 5:51 PM, Terry Therneau wrote: I've narrowed my scope problems with predict.coxph further. Here is a condensed example: fcall3<- as.formula("time ~ age") dfun3<- function(dcall) { fit<- lm(dcall, data=lung, model=FALSE) model.fra

Re: [Rd] help with eval()

2011-04-18 Thread Gabor Grothendieck
On Mon, Apr 18, 2011 at 5:51 PM, Terry Therneau wrote: > I've narrowed my scope problems with predict.coxph further. > Here is a condensed example: > > fcall3 <- as.formula("time ~ age") > dfun3 <- function(dcall) { >    fit <- lm(dcall, data=lung, model=FALSE) >    model.frame(fit) > } > dfun3(fc

Re: [Rd] help with eval()

2011-04-18 Thread Duncan Murdoch
On 11-04-18 5:51 PM, Terry Therneau wrote: I've narrowed my scope problems with predict.coxph further. Here is a condensed example: fcall3<- as.formula("time ~ age") dfun3<- function(dcall) { fit<- lm(dcall, data=lung, model=FALSE) model.frame(fit) } dfun3(fcall3) The final call fails

Re: [Rd] help with S4 objects: trying to use a "link-glm" as a class in an object definition

2011-01-29 Thread Martin Maechler
> Paul Bailey > on Thu, 27 Jan 2011 23:51:21 -0500 writes: > Hi, I'm trying to make a new S4 object with a slot for a > "link-glm" object. R doesn't like me have a slot of class > "link-glm" >> class(make.link("probit")) > [1] "link-glm" >> setClass("a",repres

Re: [Rd] help with S4 objects: trying to use a "link-glm" as a class in an object definition

2011-01-28 Thread Martin Morgan
On 01/27/2011 08:51 PM, Paul Bailey wrote: > Hi, > > I'm trying to make a new S4 object with a slot for a "link-glm" object. R > doesn't like me have a slot of class "link-glm" > >> class(make.link("probit")) > [1] "link-glm" Tell the S4 system that you'd like to use this 'old' class setOldCla

Re: [Rd] Help on R-2.10.1 installation on AIX5.3

2010-01-25 Thread Ei-ji Nakama
2010/1/25 Jin Xu : > Actually I successfully compiled R-2.8.1 on this machine wiht these > parameters and a patch on http://prs.ism.ac.jp/~nakama/AIX/changefiles. > Would you mind to tell me what I can do if I want to build R-2.10.1 I don't touch AIX from last year... I asked for the use of AIX. H

Re: [Rd] Help in 2.10 lost its "Find" feature

2009-11-11 Thread hadley wickham
> I think it would be nice to get this back and make it less platform > specific.  It would need indexing of the content of the pages, and > Javascript or similar to access the indices. It would be nice to have an interface to something like lucene - would be useful for other projects apart from R

Re: [Rd] Help in 2.10 lost its "Find" feature

2009-11-11 Thread Daniel Murphy
That did it. Was having trouble searching 'help' for how to optionally configure 'help'. Thanks. -Dan On Wed, Nov 11, 2009 at 8:57 AM, Henrik Bengtsson wrote: > For the text based help, there is no search feature on Windows, e.g. > > options(help_type="text"); > help(readLines); > > but if you us

Re: [Rd] Help in 2.10 lost its "Find" feature

2009-11-11 Thread Duncan Murdoch
On 11/11/2009 11:40 AM, hadley wickham wrote: I understand that no one wanted to maintain the old Help, but one feature I used extensively -- as a newbie to R or to an unfamiliar package -- was the capability of searching for a word or phrase on the Help page itself. Ctrl-F/Command-F (Windows/mac

Re: [Rd] Help in 2.10 lost its "Find" feature

2009-11-11 Thread Henrik Bengtsson
For the text based help, there is no search feature on Windows, e.g. options(help_type="text"); help(readLines); but if you use the HTML-based help, you can use the browser's search features as suggested/wanted: options(help_type="html"); help(readLines); /Henrik On Wed, Nov 11, 2009 at 5:40

Re: [Rd] Help in 2.10 lost its "Find" feature

2009-11-11 Thread hadley wickham
> I understand that no one wanted to maintain the old Help, but one feature I > used extensively -- as a newbie to R or to an unfamiliar package -- was the > capability of searching for a word or phrase on the Help page itself. > Ctrl-F/Command-F (Windows/mac) 'differently-phrased-capability' was a

Re: [Rd] Help with fPortfolio

2009-11-11 Thread Yohan Chalabi
"AB" == Abhijit Bera on Wed, 11 Nov 2009 15:34:50 +0500 Hi Abhijit, Please note that cross-posting is considered to be impolite. AB> I'm getting the following errors while using the AB> efficientPortfolio function AB> even though I'm setting the target return to the mean of t

Re: [Rd] Help with lang4

2009-10-29 Thread Simon Urbanek
On Oct 29, 2009, at 13:56 , Seth Falcon wrote: On 10/29/09 7:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),port

Re: [Rd] Help with lang4

2009-10-29 Thread Seth Falcon
On 10/29/09 7:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),portConstraints)); PROTECT(portVal=R_tryEval(e,R_Globa

Re: [Rd] Help with lang4

2009-10-29 Thread Duncan Murdoch
On 29/10/2009 10:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| They're in src/include/Rinlinedfuns.h. Duncan Murdoch But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR

Re: [Rd] Help with lang4

2009-10-29 Thread Seth Falcon
On 10/29/09 7:00 AM, Abhijit Bera wrote: Hi I seem to have run into a situation where I have more than 3 arguments to pass to a function from C. the following functions help me build an expression for evaluation: lang lang2 lang3 lang4 What should one do if there are more arguments than lang4

Re: [Rd] Help with lang4

2009-10-29 Thread Abhijit Bera
Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install("myfunction"),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),portConstraints)); PROTECT(portVal=R_tryEval(e,R_GlobalEnv, NULL)); Regards Abhijit Bera On Th

Re: [Rd] Help with OCaml bindings for R interpreter.

2009-10-10 Thread Guillaume Yziquel
Simon Urbanek a écrit : On Oct 10, 2009, at 3:53 PM, Guillaume Yziquel wrote: However, as it now stands, the binding is not fully functional: When an OCaml program is compiled with this binding, to generate, say, myprog.byte, it is necessary to run R CMD ./myprog.byte in order for the pr

Re: [Rd] Help with OCaml bindings for R interpreter.

2009-10-10 Thread Simon Urbanek
On Oct 10, 2009, at 3:53 PM, Guillaume Yziquel wrote: Hello. I've made out a Debian package out of Maxence Guesdon's OCaml/R bindings: http://yziquel.homelinux.org/topos/debian-ocamlr.html http://yziquel.homelinux.org/debian/pool/main/o/ocaml-r/ The upstream software itsel

Re: [Rd] Help file doesn't display correctly

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 12:01 PM, Prof Brian Ripley wrote: On Tue, 6 Oct 2009, Ronggui Huang wrote: 2009/10/6 Prof Brian Ripley : On Tue, 6 Oct 2009, Ronggui Huang wrote: Dear R Developer, It seems to be a problem with help file. Not sure if it is related to the new format of Rd parser. Multiple lines

Re: [Rd] Help file doesn't display correctly

2009-10-06 Thread Prof Brian Ripley
On Tue, 6 Oct 2009, Ronggui Huang wrote: 2009/10/6 Prof Brian Ripley : On Tue, 6 Oct 2009, Ronggui Huang wrote: Dear R Developer, It seems to be a problem with help file. Not sure if it is related to the new format of Rd parser. Multiple lines are joined together without proper line break.

Re: [Rd] Help file doesn't display correctly

2009-10-06 Thread Ronggui Huang
2009/10/6 Prof Brian Ripley : > On Tue, 6 Oct 2009, Ronggui Huang wrote: > >> Dear R Developer, >> >> It seems to be a problem with help file. Not sure if it is related to >> the new format of Rd parser. Multiple lines are joined together >> without proper line break. > > It was a problem with the

Re: [Rd] Help file doesn't display correctly

2009-10-06 Thread Prof Brian Ripley
On Tue, 6 Oct 2009, Ronggui Huang wrote: Dear R Developer, It seems to be a problem with help file. Not sure if it is related to the new format of Rd parser. Multiple lines are joined together without proper line break. It was a problem with the handling of fancy quotes in a DBCS encoding (a

Re: [Rd] Help file doesn't display correctly

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 5:12 AM, Ronggui Huang wrote: Dear R Developer, It seems to be a problem with help file. Not sure if it is related to the new format of Rd parser. Multiple lines are joined together without proper line break. Thanks, we're looking into it. Please try again in a day or two and let

Re: [Rd] Help on Making R Packages

2009-03-01 Thread Uwe Ligges
Romina Rengel wrote: I'm trying to make a R package for a work in university. It´s my first time and i made some modifications on Pam algorithm that is included on cluster package. So before run Rcmd build command i made the next things: 1- I modified pam.c and cluster.h code. I added two new a

Re: [Rd] help with segmentation fault

2008-05-04 Thread Kasper Daniel Hansen
One thing that may help with debugging (and seeing if you get the same error on windows) is to run your code with R> gctorture(TRUE) R> your.function() That way everything is garbage collected all the time so to speak and this may trigger an error on your windows machine. I agree with O

Re: [Rd] help with segmentation fault

2008-05-04 Thread Oleg Sklyar
Katie, 99% it's a bug in your C code caused by accessing memory (probably writing to) which was not allocated or freed already or out of boundary. The fact that it worked fine on Windows is likely to be a pure coincidence of different compiler/optimisation settings. However, the main problem

Re: [Rd] help text for xlim

2008-05-01 Thread Duncan Murdoch
On 01/05/2008 6:20 AM, Prof Brian Ripley wrote: xlim belongs to plot.window(), which is what plot.default() passes it to. It is documented in both places. It is not necessarily relevant to a general plot() (which might call lattice, for example). I'll add a couple of concept entries to plot.w

Re: [Rd] help text for xlim

2008-05-01 Thread Prof Brian Ripley
xlim belongs to plot.window(), which is what plot.default() passes it to. It is documented in both places. It is not necessarily relevant to a general plot() (which might call lattice, for example). I'd suggest adding an alias or concept to plot.window.Rd. And 'asp' does have an alias and co

Re: [Rd] help text for xlim

2008-04-29 Thread Duncan Murdoch
I think you're right, xlim is harder to discover than it should be. If we added the right "concept" marker to the page, then help.search() would find it. But a lot of things are mentioned on the plot.default page; how many others there are just as hard as xlim to find? I'd rather not fix xli

Re: [Rd] help text for xlim

2008-04-29 Thread Gabor Grothendieck
Note that first hit of RSiteSearch("xlim") gives an example. On Tue, Apr 29, 2008 at 10:38 AM, Henrik Parn <[EMAIL PROTECTED]> wrote: > Dear R-developers, > > A student asked me today of how to specify the limits of the x-axis. I knew > that he should use xlim, but I tried to encourage him to ha

Re: [Rd] help with R rendering engine

2008-02-10 Thread Mark W Kimpel
Paul and Michael, Thanks for the information. Yes, it appears that what I want is to be able to present R with a convex polygon for the clipping path. As I waited for comments (for some reason Michael's email did not get to me), I began working on my own methods. I am essentially using a matrix

Re: [Rd] help with R rendering engine

2008-02-10 Thread Paul Murrell
Hi Michael Lawrence wrote: > On Feb 7, 2008 4:49 PM, Mark W Kimpel <[EMAIL PROTECTED]> wrote: > >> I'm doing some work on a potential patch to the Bioconductor package >> Rgraphviz and have some questions on code that is contained in engine.c. >> In particular, I am developing some custom shapes

Re: [Rd] help with R rendering engine

2008-02-09 Thread Michael Lawrence
On Feb 7, 2008 4:49 PM, Mark W Kimpel <[EMAIL PROTECTED]> wrote: > I'm doing some work on a potential patch to the Bioconductor package > Rgraphviz and have some questions on code that is contained in engine.c. > In particular, I am developing some custom shapes using polygon and need > to make su

Re: [Rd] help files for load and related functions

2007-12-18 Thread Martin Maechler
> "DM" == Duncan Murdoch <[EMAIL PROTECTED]> > on Mon, 17 Dec 2007 09:36:48 -0500 writes: DM> On 12/17/2007 9:06 AM, Oleg Sklyar wrote: >> Dear Patrick, >> >> Firstly, and most importantly, I do not think that your post qualified >> for Rd! Please use the correct

Re: [Rd] help files for load and related functions

2007-12-17 Thread Duncan Murdoch
On 12/17/2007 9:06 AM, Oleg Sklyar wrote: > Dear Patrick, > > Firstly, and most importantly, I do not think that your post qualified > for Rd! Please use the correct mail list for such things: R-help. I do > not think anybody on Rd wants mailboxes clogged with irrelevant > messages. Since Patri

Re: [Rd] help files for load and related functions

2007-12-17 Thread Patrick Burns
Patches to the help files sound like a good idea. However, it isn't something I'm likely to get to immediately. I'm hoping that some other nice person will volunteer. Pat Duncan Murdoch wrote: > On 12/17/2007 6:00 AM, Patrick Burns wrote: > >> I recently had a discussion with a user about load

Re: [Rd] help files for load and related functions

2007-12-17 Thread Gavin Simpson
On Mon, 2007-12-17 at 14:06 +, Oleg Sklyar wrote: > Dear Patrick, > > Firstly, and most importantly, I do not think that your post qualified > for Rd! Please use the correct mail list for such things: R-help. I do > not think anybody on Rd wants mailboxes clogged with irrelevant > messages.

Re: [Rd] help files for load and related functions

2007-12-17 Thread Oleg Sklyar
Dear Patrick, Firstly, and most importantly, I do not think that your post qualified for Rd! Please use the correct mail list for such things: R-help. I do not think anybody on Rd wants mailboxes clogged with irrelevant messages. Back to your question: it is not clear if you are confused, or yo

Re: [Rd] help files for load and related functions

2007-12-17 Thread Duncan Murdoch
On 12/17/2007 6:00 AM, Patrick Burns wrote: > I recently had a discussion with a user about loading > and attaching in R. I was surprised that the help files > don't provide a very clear picture. > > From my point of view 'load' and 'attach' are very > similar operations, the difference being t

  1   2   >