search for: pgilbert902

Displaying 20 results from an estimated 45 matches for "pgilbert902".

2015 Jan 08
4
unloadNamespace
In the documentation the closed thing I see to an explanation of this is that ?detach says "Unloading some namespaces has undesirable side effects" Can anyone explain why unloading tseries will load zoo? I don't think this behavior is specific to tseries, it's just an example. I realize one would not usually unload something that is not loaded, but I would expect it to do
2013 Aug 28
2
‘:::’ call
I have a package (TSdbi) which provides end user functions that I export, and several utilities for plugin packages (e.g. TSMySQL) that I do not export because I do not intend them to be exposed to end users. I call these from the plugin packages using TSdbi::: but that now produces a note in the checks: * checking dependencies in R code ... NOTE Namespace imported from by a ?:::? call:
2019 Feb 19
4
code for sum function
...0) > rKahanSum <- vapply(c(1:20,10^(2:7)), function(n) kahanSum(rep(1/7,n)), 0) > > table(rSum == rNaiveSum) FALSE TRUE 21 5 > table(rSum == rKahanSum) FALSE TRUE 3 23 Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Feb 19, 2019 at 10:36 AM Paul Gilbert <pgilbert902 at gmail.com> wrote: > (I didn't see anyone else answer this, so ...) > > You can probably find the R code in src/main/ but I'm not sure. You are > talking about a very simple calculation, so it seems unlike that the > algorithm is the cause of the difference. I have done...
2015 Apr 30
2
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 8:12 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: > > As I recall, several packages mask the simulate generic in stats, if you > are looking for examples. > FWIW, here is a list of base* functions masked** by CRAN packages: https://github.com/gaborcsardi/rfunctions/blob/master/rfunctions.md Look at the long tab...
2014 Nov 26
6
testing dontrun examples
Is there a good strategy for testing examples which should not be run by default? For instance, I have examples which get data from the Internet. If I wrap them in try() then they can be skipped if the Internet is not available, but may not be tested in cases when I would like to know about the failure. (Not to mention that the example syntax is ugly.) If I mark them \dontrun or \donttest
2015 Jan 09
0
unloadNamespace
...ace("tseries"), it calls getNamespace("tseries"), which has the side effect of loading that package (and its dependencies). One way to work around this is to check loadedNamespaces() before you try to unload a package. -Winston On Thu, Jan 8, 2015 at 9:45 AM, Paul Gilbert <pgilbert902 at gmail.com> wrote: > In the documentation the closed thing I see to an explanation of this is > that ?detach says "Unloading some namespaces has undesirable side effects" > > Can anyone explain why unloading tseries will load zoo? I don't think this > behavior is...
2019 Feb 20
0
code for sum function
...gt; 0) > > > > table(rSum == rNaiveSum) > > FALSE TRUE > 21 5 > > table(rSum == rKahanSum) > > FALSE TRUE > 3 23 > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Tue, Feb 19, 2019 at 10:36 AM Paul Gilbert <pgilbert902 at gmail.com> > wrote: > >> (I didn't see anyone else answer this, so ...) >> >> You can probably find the R code in src/main/ but I'm not sure. You are >> talking about a very simple calculation, so it seems unlike that the >> algorithm is the cause o...
2015 Apr 30
0
R CMD check and missing imports from base packages
>>>>> G?bor Cs?rdi <csardi.gabor at gmail.com> >>>>> on Wed, 29 Apr 2015 23:07:09 -0400 writes: > On Wed, Apr 29, 2015 at 8:12 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: >> >> As I recall, several packages mask the simulate generic in stats, if you >> are looking for examples. >> > FWIW, here is a list of base* functions masked** by CRAN packages: > https://github.com/gaborcsardi/rfunc...
2019 Feb 19
0
code for sum function
...0) >> >> table(rSum == rNaiveSum) > > FALSE TRUE > 21 5 >> table(rSum == rKahanSum) > > FALSE TRUE > 3 23 > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Tue, Feb 19, 2019 at 10:36 AM Paul Gilbert <pgilbert902 at gmail.com> wrote: > >> (I didn't see anyone else answer this, so ...) >> >> You can probably find the R code in src/main/ but I'm not sure. You are >> talking about a very simple calculation, so it seems unlike that the >> algorithm is the cause of th...
2012 Dec 12
3
SystemRequirements’ field
Am I correct in thinking that the ?SystemRequirements? field in a package DESCRIPTION file is purely descriptive, there are no standard elements that can be extracted by parsing it and used automatically? This field does not seem to be widely used, even for some obvious cases like backend database driver requirements, perl, perl modules, etc. It might help to have a list of possibilities. Some
2011 Dec 30
2
CRAN link broken
The packages link on CRAN (http://cran.at.r-project.org/) seems to be broken. Paul Object not found! The requested URL was not found on this server. The link on the referring page<http://cran.at.r-project.org/navbar.html> seems to be wrong or outdated. Please inform the author of that page <http://cran.at.r-project.org/navbar.html> about the error.
2019 Feb 20
0
code for sum function
...>> FALSE TRUE >> 21 5 >> > table(rSum == rKahanSum) >> >> FALSE TRUE >> 3 23 >> >> >> Bill Dunlap >> TIBCO Software >> wdunlap tibco.com >> >> >> On Tue, Feb 19, 2019 at 10:36 AM Paul Gilbert <pgilbert902 at gmail.com> >> wrote: >> >>> (I didn't see anyone else answer this, so ...) >>> >>> You can probably find the R code in src/main/ but I'm not sure. You are >>> talking about a very simple calculation, so it seems unlike that the >>&...
2011 Dec 14
3
secure password token management method in R
hi, r developers, I am now working on a R function/package to handling online request with username and token/password. For security reasons, it's not so safe to store the username & token in persistent variables, since they'll be saved to disk when users save their workspace. Is there a secure way in R to handle the online password management? I have searched it online but didn't
2014 Sep 12
1
requireNamespace() questions
I am trying to follow directions at http://cran.r-project.org/doc/manuals/r-patched/R-exts.html#Suggested-packages regarding handling suggested packages with requireNamespace() rather than require(), and I have some questions. 1/ When I do requireNamespace() in a function is the loading of the namespace only effective within the function? 2/ At the link above in the manual it says "Note
2018 Mar 04
0
Random Seed Location
Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded. Best regards, Gary Sent from my iPad > On Mar 4, 2018, at 12:18 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: > > On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> > wrote: > > (Sorry to be a bit slow responding.) > > You have not supplied a complete example, which would be good in this case because what you are suggesting could...
2016 Sep 01
2
A bug in the R Mersenne Twister (RNG) code?
On 08/30/2016 06:29 PM, Duncan Murdoch wrote: > I don't see evidence of a bug. There have been several versions of the > MT; we may be using a different version than you are. Ours is the > 1999/10/28 version; the web page you cite uses one from 2002. > > Perhaps the newer version fixes some problems, and then it would be > worth considering a change. But changing the
2018 Sep 20
1
Bias in R's random integers?
On 09/19/2018 10:03 AM, Ben Bolker wrote: ... > Balancing backward compatibility and correctness is a tough problem > here. I think improvements in the RNG is a situation where backward compatibility is not really going to be lost, because people can specify the old generator, they just will not get it by default. My opinion is that the default needs to generally be the best option
2018 Mar 04
3
Random Seed Location
On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> wrote: (Sorry to be a bit slow responding.) You have not supplied a complete example, which would be good in this case because what you are suggesting could be a serious bug in R or a package. Serious journals require reproducibility these days. For example, JSS is very clear on this point. To your question >
2016 Sep 01
0
A bug in the R Mersenne Twister (RNG) code?
I wonder how useful a (set of?) "time machine" functions which look up /infer things like this based on a date would be. Could ease the pain of changes generally, though not remove it completely. ~G On Wed, Aug 31, 2016 at 5:45 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: > > > On 08/30/2016 06:29 PM, Duncan Murdoch wrote: > >> I don't see evidence of a bug. There have been several versions of the >> MT; we may be using a different version than you are. Ours is the >> 1999/10/28 version; the web page you c...
2018 Mar 04
2
Random Seed Location
...Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded. > > Best regards, > Gary > > Sent from my iPad > >> On Mar 4, 2018, at 12:18 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote: >> >> On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net> >> wrote: >> >> (Sorry to be a bit slow responding.) >> >> You have not supplied a complete example, which would be good in this case because what...