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

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

2025-04-14 Thread 谭显英
Dear R-devel list, I maintain two packages that use Rust code through the "extendr" library: ymd (https://github.com/shrektan/ymd) and fcl (https://github.com/shrektan/fcl) . These packages are currently at risk of being removed from CRAN due to calls to R's non-API functions. I've addressed

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

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

2023-09-23 Thread Duncan Murdoch
I am in the process of updating the rgl package. One thing I'd like to do is to change text support in it when using OpenGL to display to be more like the way text is drawn in WebGL displays (i.e. the ones rglwidget() produces). Currently in R, rgl uses the FTGL library to draw text. That li

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

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

2021-04-19 Thread Henrik Bengtsson
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 library trees are rooted) followed by those in environment variable R_LIBS_USER. Only directorie

[Rd] Help on mapping memory

2020-11-10 Thread jing hua zhao
Dear everyone, I have maintained JL Schafer's package 'pan' for a while and recently been contacted for the possibility to fix a crash but it turned to be elusive -- I am wondering what is the best to resolve this. First, the error message is as follows, *** caught segfault *** address 0x1b000

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

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

2020-04-04 Thread Martin Maechler
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 all just for simple daily time series (though with partly missi

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

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

2020-03-23 Thread Ben Bolker
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, and that are now being flagged as problemat

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

[Rd] help(pac=xxx) get data from CRAN?

2018-01-29 Thread Spencer Graves
Hello, All:   A feature request:   What about modifying the code for "help(pac=xxx)" so it looks for "xxx" on CRAN as well as locally:  If it finds it locally, it uses that version but with an annotation reporting what it found on CRAN: * If it doesn't find CRAN, it doesn't report

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

[Rd] Help to create bugzilla account

2017-08-11 Thread Dmitriy Selivanov
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. Related context is here - https://stat.ethz.ch/pipermail/r-devel/2017-July/074715.html -- Regards Dmitriy Selivanov [[alternativ

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

[Rd] help pages base R not rendered correctly?

2017-05-23 Thread Joris Meys
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, rather than interpreted as bold. Same happens on

[Rd] help(clusterApply) (parallel package)

2017-01-25 Thread Viechtbauer Wolfgang (SP)
Hello, In help(clusterApply) of the 'parallel' package, it says: "clusterApply calls fun on the first node with arguments seq[[1]] and ..., on the second node with seq[[2]] and ..., and so on, recycling nodes as needed." But the argument that is iterated over in clusterApply() is called 'x' not

[Rd] Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-07-28 Thread Ming Li
Hi all, I am working on a bug, which running PLR on HAWQ. The process hung and can't be terminated. >From my investigation, it seems signal handler 'Rf_onsigusr1' trigger a malloc/free deadlock. The calling stack is below. Thread 1 (Thread 0x7f4c93af48e0 (LWP 431263)): #0 0x7f4c9015805e i

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

[Rd] Help with libiconv problem

2016-03-14 Thread Mick Jordan
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: gcc -dynamiclib -Wl,-headerpad_max_install

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

[Rd] Help

2015-03-18 Thread Evans Otieno Ochiaga
Hi to All, I am fitting some models to a data using non linear least square, and whenever i run the command, parameters value have good convergence but I get the error in red as shown below. Kindly how can I fix this problem. Convergence of parameter values 0.2390121 : 0.1952981 0.975 1.0

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

[Rd] Help finding source of warnings

2015-01-18 Thread Prof J C Nash (U30A)
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 have updated it and published the reasons in

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

[Rd] Help in building R with minGW

2015-01-02 Thread Edoardo Baldoni
Dear R users, I would need some help in building R using minGW in windows 8.1. After using the command *configure *(./configure --enable-R-shlib --with-readline=no --with-x=no), I use the command *make. *This results in the following error: [...] make[2]: Leaving directory `/home/Edoardo/r-3.1.2/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

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

2014-02-26 Thread Romain François
Hello, I’m trying to leverage R_ToplevelExec to implement C level try/catch. The way it is implemented allows for running a function in a top level context. This context gets an empty handler stack, so either the function runs correctly or it jumps. When it jumps, it does not find a handler,

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

[Rd] help page of warnings()

2013-12-28 Thread Elad Zippory
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 undocumented where last.warning is stored nor that it is visible, and t

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

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

2013-04-23 Thread 赵自强
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‘. Thank you all. Sorry for being naïve if so. -

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

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

2012-11-15 Thread Suharto Anggono Suharto Anggono
http://stackoverflow.com/questions/6065724/assigning-value-to-a-variable-that-has-a-dot-in-the-name made me realize this. The context is 'a' is assigned to ret$log.id, but then ret$log returns "a" and ret$l also returns "a". There is a comment from Charles on the question: "Also see options(war

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

[Rd] help with install.packages

2012-08-02 Thread luxInteg
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/stats/R-2.15.0_runTEST190712A export DEST=/

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,

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

2012-01-30 Thread Millot Gael
Dear all, May I suggest to add an example in the help page of the colors() function ? The following code could be useful to easily choose any color from colors() : ## Millot G. (2011), p.71. ## Figure displaying all the 657 built-in color names of colors(). palette(colors()) tempo<-NULL for(i in

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

[Rd] help text for which.min

2011-10-10 Thread Henrik Pärn
Dear R developers, I find the which.min function very handy. However, maybe you could consider a tiny addition to the example data in the the help text. By adding another zero to the vector x... x <- c(1:4, 0, 0:5,11) ...the example would more explicitly show that which.min actually 'giv[es]

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

[Rd] help with eval()

2011-04-18 Thread Terry Therneau
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: it can't find 'dcall'. The relevant code

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

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

2011-01-27 Thread Paul Bailey
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",representation(item="link-glm")) [1] "a" Warning message: undefined slot classes in definition of "a": item(cla

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

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

2010-01-24 Thread Jin Xu
Hi all, I met a problem with R-2.10.1 installation on AIX5.3. The error message is as following: make[3]: Entering directory `/rnd/homes/tmp/R-2.10.1/src/library/tools' building package 'tools' mkdir ../../../library/tools make[4]: Entering directory `/rnd/homes/tmp/R-2.10.1/src/library/tools' m

[Rd] Help with R on windows

2009-11-18 Thread Abhijit Bera
Hi I have managed to link R.dll to my Visual Studio Win32 GUI project. However I am unable to see any of the R messages on a console. I'm hitting a dead end trying to use R_tryEval. Is there a way I can obtain the error message when R_tryEval fails? Regards Abhijit Bera [[alternative

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

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

2009-11-11 Thread Daniel Murphy
Sirs: 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

[Rd] Help with fPortfolio

2009-11-11 Thread Abhijit Bera
Hi I'm getting the following errors while using the efficientPortfolio function even though I'm setting the target return to the mean of the TargetReturn I obtain from the portfolio object created by the feasiblePortfolio function. First Error: Error: targetReturn >= min(mu) is not TRUE Second E

  1   2   3   >