Displaying 17 results from an estimated 17 matches for "dollarnames".
2010 May 29
3
S4 dispatch for .DollarNames (utils)
Hello,
I'm trying to make .DollarNames generic and implement a method for it in
a package. .DollarNames is the function that is now called to get
completion possibilities.
My R code looks like this:
setGeneric( ".DollarNames" )
setClass("track",
representation(x="numeric", y="numeric&quo...
2015 May 28
3
S4 inheritance and old class
Hey everyone,
I would like to develop a package using S4 classes.
I have to define several S4 classes that inherits from each others as
follow:
# A <- B <- C <- D
I also would like to define .DollarNames methods for these class so, if I
have understood well, I also have to define an old class as follow:
# AOld <- A <- B <- C <- D
setOldClass(Classes = "AOld")
setClass(
Class = "A",
contains = "AOld",
slots = list(A = "character")
)
.Doll...
2012 Aug 26
2
Package "datasets" not exporting anything on a recent R-2.15.1-patched
...tasets <- getNamespace('datasets')
> getNamespaceExports(ns_datasets)
character(0)
Not the case with other packages (example here with "utils"):
> ns_utils <- getNamespace('utils')
> head(getNamespaceExports(ns_utils))
[1] "?" ".DollarNames" "adist" "alarm" "apropos"
[6] "aregexec"
Is this a temporary glitch, or is there something new and specific to
"datasets" ?
Best,
Laurent
PS: Obligatory sessionInfo:
> sessionInfo()
R version 2.15.1 Patched (2012-08-24 r60412)...
2010 Feb 12
2
Help on loading "xlsx" package
...message results after inputting 'library(xlsx)'
command.
Any advice on resolving this issue would be highly appreciated.
Thanks.
> library(xlsx)
Loading required package: xlsxjars
Loading required package: rJava
Error in importIntoEnv(impenv, impnames, ns, impvars) :
object '‘.DollarNames’' is not exported by 'namespace:utils'
In addition: Warning messages:
1: package 'xlsx' was built under R version 2.10.1
2: package 'xlsxjars' was built under R version 2.10.1
3: package 'rJava' was built under R version 2.10.1
Error: package 'rJava' coul...
2023 Apr 01
2
Autocompletion for the new S3 generic @ method?
...te("col", 1:2)), class="mm")
>
> m at row1
>
> However, seems like currently it does not support autocompletion.
>
> Wouldn?t it make sense to add a method like .EtaNames() which would provide tab autocompletions for x@<tab> in the same way current .DollarNames() does for x$<tab>?
>
> Regards,
> Karolis K.
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
2015 May 28
0
S4 inheritance and old class
On 05/28/2015 02:49 AM, Julien Id? wrote:
> Hey everyone,
>
> I would like to develop a package using S4 classes.
> I have to define several S4 classes that inherits from each others as
> follow:
>
> # A <- B <- C <- D
>
> I also would like to define .DollarNames methods for these class so, if I
> have understood well, I also have to define an old class as follow:
>
> # AOld <- A <- B <- C <- D
>
> setOldClass(Classes = "AOld")
>
> setClass(
> Class = "A",
> contains = "AOld",
>...
2023 Mar 31
1
Autocompletion for the new S3 generic @ method?
...0("row", 1:10), paste("col", 1:2)), class="mm")
m at row1
However, seems like currently it does not support autocompletion.
Wouldn?t it make sense to add a method like .EtaNames() which would provide tab autocompletions for x@<tab> in the same way current .DollarNames() does for x$<tab>?
Regards,
Karolis K.
2014 Mar 05
1
[PATCH] Code coverage support proof of concept
...rary/utils/NAMESPACE 2013-09-10 03:04:59.000000000 +0200
+++ R-devel-cov/src/library/utils/NAMESPACE 2014-03-03 16:18:48.407430952 +0100
@@ -1,7 +1,7 @@
# Refer to all C routines by their name prefixed by C_
useDynLib(utils, .registration = TRUE, .fixes = "C_")
-export("?", .DollarNames, CRAN.packages, Rprof, Rprofmem, RShowDoc,
+export("?", .DollarNames, CRAN.packages, Rcov_start, Rcov_stop, Rprof, Rprofmem, RShowDoc,
RSiteSearch, URLdecode, URLencode, View, adist, alarm, apropos,
aregexec, argsAnywhere, assignInMyNamespace, assignInNamespace,
as...
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
I would go to the source, in this case Dirk Eddelbuettel's (I hope I
spelled it correctly) documentation for Rcpp:
http://dirk.eddelbuettel.com/code/rcpp/Rcpp-attributes.pdf
Note that you need to do
sourceCpp("logistic_map.cpp")
in R instead of building and dyn.load()-ing the object.
HTH,
Peter
On Sun, Dec 3, 2017 at 11:04 AM, Martin M?ller Skarbiniks Pedersen
<traxplayer
2017 Dec 03
1
Rcpp, dyn.load and C++ problems
...eteness,
we can also test on the command-line as Martin and what I do a lot myself:
edd at bud:~$ r -lRcpp -e'sourceCpp("/tmp/mmsp.cpp")'
R> res <- compute_values_cpp()
R> str(res)
Attaching package: ?utils?
The following objects are masked from ?package:Rcpp?:
.DollarNames, prompt
List of 2
$ x: num [1:100000] 199 362 118 302 262 ...
$ y: num [1:100000] 20 40 14.3 39.5 36.9 ...
You have mail in /var/mail/edd
edd at bud:~$
That uses littler which I like, Rscript is almost the same (but has no -l
switch for libraries and fails to load the methods package which we...
2017 Dec 03
2
Rcpp, dyn.load and C++ problems
On 3 December 2017 at 05:23, Eric Berger <ericjberger at gmail.com> wrote:
>
> Do a search on "Rcpp calling C++ functions from R"
>
Thanks. However search for "Rcpp calling C++ functions from R" gives a lot
of result but I think
some of them are outdated and others don't agree with each other.
Can you point to a specific good on-line guide for me?
Regards
2009 Oct 26
0
R 2.9.0 is released
...atch by Karline Soetaert & Thomas Petzoldt).
o There are the beginnings of a Nynorsk translation by Karl Ove
Hufthammer.
o stripchart() allows par 'bg' to be passed in for the
background colour for pch = 21 (wish of PR#13984).
o New generic function .DollarNames() to enable class authors
to customize completion after the $ extractor.
o load(), save(), dput() and dump() now open a not-yet-open
connection in the appropriate mode (as other functions using
connections directly already did).
REGULAR EXPRESSIONS
o A differ...
2009 Oct 26
0
R 2.9.0 is released
...atch by Karline Soetaert & Thomas Petzoldt).
o There are the beginnings of a Nynorsk translation by Karl Ove
Hufthammer.
o stripchart() allows par 'bg' to be passed in for the
background colour for pch = 21 (wish of PR#13984).
o New generic function .DollarNames() to enable class authors
to customize completion after the $ extractor.
o load(), save(), dput() and dump() now open a not-yet-open
connection in the appropriate mode (as other functions using
connections directly already did).
REGULAR EXPRESSIONS
o A differ...
2009 Oct 26
0
R 2.10.0 is released
...atch by Karline Soetaert & Thomas Petzoldt).
o There are the beginnings of a Nynorsk translation by Karl Ove
Hufthammer.
o stripchart() allows par 'bg' to be passed in for the
background colour for pch = 21 (wish of PR#13984).
o New generic function .DollarNames() to enable class authors
to customize completion after the $ extractor.
o load(), save(), dput() and dump() now open a not-yet-open
connection in the appropriate mode (as other functions using
connections directly already did).
REGULAR EXPRESSIONS
o A differ...
2009 Oct 26
0
R 2.10.0 is released
...atch by Karline Soetaert & Thomas Petzoldt).
o There are the beginnings of a Nynorsk translation by Karl Ove
Hufthammer.
o stripchart() allows par 'bg' to be passed in for the
background colour for pch = 21 (wish of PR#13984).
o New generic function .DollarNames() to enable class authors
to customize completion after the $ extractor.
o load(), save(), dput() and dump() now open a not-yet-open
connection in the appropriate mode (as other functions using
connections directly already did).
REGULAR EXPRESSIONS
o A differ...
2023 Apr 21
0
[Rd] R 4.3.0 is released
...ch is used by
R CMD check to skip (and note) vignettes with unavailable
\VignetteDepends (PR#18318).
* New generic .AtNames() added to enable class-specific completions
after @. The formerly internal function findMatches() is now
exported, mainly for use in methods for .DollarNames() and
.AtNames().
DEPRECATED AND DEFUNCT:
* default.stringsAsFactors() is defunct.
* Calling as.data.frame.<class>() directly (for 12 atomic classes)
is going to be formally deprecated, currently activated by
setting the environment variable
_R_CHECK_AS_DA...
2023 Apr 21
0
[Rd] R 4.3.0 is released
...ch is used by
R CMD check to skip (and note) vignettes with unavailable
\VignetteDepends (PR#18318).
* New generic .AtNames() added to enable class-specific completions
after @. The formerly internal function findMatches() is now
exported, mainly for use in methods for .DollarNames() and
.AtNames().
DEPRECATED AND DEFUNCT:
* default.stringsAsFactors() is defunct.
* Calling as.data.frame.<class>() directly (for 12 atomic classes)
is going to be formally deprecated, currently activated by
setting the environment variable
_R_CHECK_AS_DA...