Displaying 20 results from an estimated 3000 matches similar to: "RFC for package PopCon: a popularity contest for R and packages"
2008 Feb 13
0
RFC for package PopCon: a popularity contest for R and packages
Hello all,
I've developed a prototype package called PopCon (short for popularity
contest), a package for tracking the popularity of R and its packages.
I'd like this work to be similar in spirit to the Debian package
popularity-contest: http://popcon.debian.org/.
Once Popcon is loaded, it captures two kinds of information from the
user and stores it into a cache: the names of the
2024 Oct 17
2
Consider getNamespaceVersion() returning a numeric_version
I mean the `numeric_version` object not a numeric (double/int).
Basically to protect me from myself I'd prefer not to have to remember
to wrap `getNamespaceVersion()` with `as.package_version()`.
I suspect a grep of CRAN may highlight others who are erroneously
comparing character objects rather than a comparison between a
`numeric_version` object and a character.
Tim
On 17/10/2024
2024 Oct 17
1
Consider getNamespaceVersion() returning a numeric_version
On 17/10/2024 13:42, Tim Taylor wrote:
> I mean the `numeric_version` object not a numeric (double/int).
> Basically to protect me from myself I'd prefer not to have to remember
> to wrap `getNamespaceVersion()` with `as.package_version()`.
>
> I suspect a grep of CRAN may highlight others who are erroneously
> comparing character objects rather than a comparison between
2013 Oct 03
1
version comparison puzzle
Can anyone explain what I'm missing here?
max(pp1 <- package_version(c("0.99999911.3","1.0.4","1.0.5")))
## [1] ?1.0.4?
max(pp2 <- package_version(c("1.0.3","1.0.4","1.0.5")))
## [1] ?1.0.5?
I've looked at ?package_version , to no avail.
Since max() goes to .Primitive("max")
I'm having trouble figuring out
2013 Apr 16
1
testInstalledBasic / testInstalledPackages
Hi,
I installed R 3.0.0 on a Windows 2008 Server.
When I submitted the following code in R64,
library(tools)
testInstalledBasic(scope="devel")
I get the following message in the R Console:
> library(tools)
> testInstalledBasic(scope="devel")
running tests of consistency of as/is.*
creating ?isas-tests.R?
running code in ?isas-tests.R?
comparing ?isas-tests.Rout? to
2024 Oct 17
1
Consider getNamespaceVersion() returning a numeric_version
On 17 October 2024 at 12:38, Tim Taylor wrote:
| Would R-Core be receptive to having getNamespaceVersion() return a
| numeric_version object instead of a named character?
Is this good enough? What's your actual issue a 'numeric' would address?
> as.package_version(getNamespaceVersion("base")) < "4.5.0"
[1] TRUE
>
>
2024 Apr 25
1
Question regarding .make_numeric_version with non-character input
Hi Kurt,
On 25 April 2024 at 08:07, Kurt Hornik wrote:
| >>>>> Herv? Pag?s writes:
|
| > Hi Kurt,
| > Is it intended that numeric_version() returns an error by default on
| > non-character input in R 4.4.0?
|
| Dear Herve, yes, that's the intention.
|
| > It seems that I can turn this into a warning by setting
| >
2011 Apr 12
0
all.equal(data.frame(package_version()), ...) infinite recursion
With R-2.12.2 on Linux:
> z <- data.frame(Version=package_version(c("0.1")),
row.names=c("pkgA"))
> all.equal(z, z) # expect TRUE
Error: evaluation nested too deeply: infinite recursion /
options(expressions=)?
> traceback()
... lots of lines in a 3-cycle ...
6: all.equal.list(target, current, ...)
5: all.equal.default(target[[i]], current[[i]],
2014 Nov 26
0
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
Summary: I think you've found a bug.
On 26/11/2014, 5:39 PM, Geoff Lee wrote:
> Hi
>
>
>
> I'm still exploring the R programming universe, so if this is being asked in
> the wrong place, or in the wrong way (e.g. too verbose or lacking in crucial
> detail or in the wrong format) please let me know
>
>
>
> I am trying to understand when the version
2014 Nov 27
0
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
On 26/11/2014, 7:38 PM, Geoff Lee wrote:
> Many thanks Duncan for the quick response.
A little too quick, it seems...
>
> A bug is a relief in a way. I've been digging my way deeper into this (and
> learning more as I go) for several days now - but it is a diversion from (a
> diversion from) my main goal :-(
>
> Is there somewhere specific I should report or log the
2023 Jul 06
1
numeric_version doesn't like numeric versions anymore?
Dear R devs,
I installed the recent devel R to test a package error when I intercept this warning when loading packages:
```
Warning in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) :
invalid non-character version specification 'x' (type: double)
```
After a long debugging, I realize that `numeric_version` in base does not support numerical input x by
2014 Nov 26
3
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
Hi
I'm still exploring the R programming universe, so if this is being asked in
the wrong place, or in the wrong way (e.g. too verbose or lacking in crucial
detail or in the wrong format) please let me know
I am trying to understand when the version constraints for packages which
appear in the Imports field of a DESCRIPTION file are checked.
Along the way I've hit a snag
2014 Nov 27
0
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
On 26/11/2014, 8:29 PM, Geoff Lee wrote:
> Hi Duncan
>
> The difference is that in your call to loadNamespace, the versionCheck list
> has 3 components (name, op and version), whereas the documentation only
> mentions 2 (op and version).
> loadNamespace 'works' for me provided I add a third component to the list
> (even a nonsense one).
>
> What I haven't
2024 Oct 17
1
Consider getNamespaceVersion() returning a numeric_version
Would R-Core be receptive to having getNamespaceVersion() return a
numeric_version object instead of a named character?
Tim
2023 Apr 08
0
Time to add is.formula() to 'stats'?
I know that it has been discussed in the past, but I wanted to ask
to revisit the idea of exporting
is.formula <- function(x) inherits(x, "formula")
from 'stats', parallel to is.data.frame() in 'base', given how
widely formulae are used these days in conjunction with data frames,
even outside of model fitting functions (e.g., for split-apply).
One could argue
2014 Nov 27
2
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
Many thanks Duncan for the quick response.
A bug is a relief in a way. I've been digging my way deeper into this (and
learning more as I go) for several days now - but it is a diversion from (a
diversion from) my main goal :-(
Is there somewhere specific I should report or log the bug or will that
happen from this mailing-list automatically? (I have seen the Bug Tracking
link on the
2014 Nov 27
2
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
Hi Duncan
The difference is that in your call to loadNamespace, the versionCheck list
has 3 components (name, op and version), whereas the documentation only
mentions 2 (op and version).
loadNamespace 'works' for me provided I add a third component to the list
(even a nonsense one).
What I haven't yet had the fortitude to do is track down through the code to
see what the arguments
2004 Apr 22
1
Evidence from Debian's package tracking (Was Re: Size of R user base.)
I have watched the discussions about the size of the R user base with
much interest. One more source of data that might help is the
voluntary data capture in Debian. If you are a Debian user, you should
volunteer information. It's very easy: as root, say:
# apt-get install popularity-contest
The results are found at:
http://popcon.debian.org/main/math/by_inst
This shows that of the
2014 Nov 27
1
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
Hi Duncan,
Many thanks (yet again).
With the hint given by your earlier email (viz that currently loadNamespace
expects a 3rd component called name in the list that is used for the
versionCheck argument) I had another look at what was going on with my toy
examples yesterday evening. I'm still working on my issue, but thus far I
have:
1) Confirmed that internal calls to loadNamespace
2024 Apr 27
1
max on numeric_version with long components
I've noticed something in R devel which seems a little off and not the
behavior I see in 4.4.0 or earlier versions. With numeric_versions that
have long (>8 digit) final components max and min return the first element
and not the max or min:
In devel:
> max(numeric_version(c("1.0.1.100000000", "1.0.3.100000000",
"1.0.2.100000000")))
[1] ?1.0.1.100000000?