Displaying 20 results from an estimated 300 matches similar to: "ROxygen2-Documenting of S4 Method"
2012 Nov 08
1
Dabbling with R5 setRefClass - Inheritance problems
Hello,
I wrote a class like so:
> rcfdpsuperclass <- setRefClass(
> Class="rcfdpsuperclass",
> fields = list(
> RcfpdVersion = "character"),
> methods = list(
> initialize = function(){
> 'Populates fields with defaults and lock as appropriate'
> initFields(
> RcfpdVersion =
2011 Jul 24
0
roxygen2
Hadley Wickham refactored roxygen, making it more maintainable and
robust; the changes are so significant that we decided to nominate it
roxygen2:
http://cran.r-project.org/web/packages/roxygen2/index.html
Some highlights:
* it's faster;
* usage has been improved (the @usage tag should be obsolete);
* @rdname merges documentation for multiple functions into one file.
For details,
2011 Jul 24
0
roxygen2
Hadley Wickham refactored roxygen, making it more maintainable and
robust; the changes are so significant that we decided to nominate it
roxygen2:
http://cran.r-project.org/web/packages/roxygen2/index.html
Some highlights:
* it's faster;
* usage has been improved (the @usage tag should be obsolete);
* @rdname merges documentation for multiple functions into one file.
For details,
2008 Apr 13
1
promptFunctions() to handle multiple names
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi all,
I wanted to set up my first (private) R-package and wondered
if there was a function to prompt() for multiple aliases in one Rd-file,
e.g. to create something like the normal distribution manual page
encompassing rnorm, dnorm,...
As I didn't find it, I modified prompt.default() and wrote a small function
to do this job, called
2018 Jan 17
3
roxygen2 error - x$tag operator is invalid for atomic vectors
Hi,
I am trying to create my first R package.
I will later today put the files on Github.
However I gets this error and I can't find any reason for it:
R> roxygen2::roxygenise()
First time using roxygen2. Upgrading automatically...
Error in x$tag : $ operator is invalid for atomic vectors
R>
Any ideas?
Regards
Martin M. S. Pedersen
[[alternative HTML version deleted]]
2018 Jan 17
0
roxygen2 error - x$tag operator is invalid for atomic vectors
This is an error message from R.
For example, if you give the following R commands
> a <- 5
> a$foo
This will generate the error message:
Error in a$foo : $ operator is invalid for atomic vectors
So you can search for the string 'x$tag' in your code (or possibly in the
package).
HTH,
Eric
On Wed, Jan 17, 2018 at 3:16 PM, Martin M?ller Skarbiniks Pedersen <
traxplayer at
2011 Nov 13
0
Roxygen2: version 2.2
# Roxygen2
The premise of `roxygen2` is simple: describe your functions in
comments next to where their definitions and `roxygen2` will process
your source code and comments to produce R compatible Rd files.
Here's a simple example from the `stringr` package:
? ? #' The length of a string (in characters).? ? #'? ? #' @param
string input character vector? ? #' @return numeric
2011 Nov 13
0
Roxygen2: version 2.2
# Roxygen2
The premise of `roxygen2` is simple: describe your functions in
comments next to where their definitions and `roxygen2` will process
your source code and comments to produce R compatible Rd files.
Here's a simple example from the `stringr` package:
? ? #' The length of a string (in characters).? ? #'? ? #' @param
string input character vector? ? #' @return numeric
2020 Jun 27
1
roxygen2 / documentation of reexports
Dear colleagues,
preparing a release of my package ?polmineR? I encountered the following issue with a new warning issued when running R CMD check with the --as-cran option on Debian with R-devel.
To reexport the magrittr pipe operator %>%, my package adopted I snippet you?d see in the dplyr package, for instance:
#' @importFrom magrittr %>%
#' @export
magrittr::`%>%`
The
2018 Sep 11
2
Modification-proposal for %% (modulo) when supplied with double
Hi all,
Could we modify the "%%" (modulo)-operator to include some tolerance for rounding-errors when supplied with doubles?
It's not much work (patch supplied on the bottom), and I don't think it would break anything, only if you were really interested in analysing rounding differences.
Any ideas about implementing this and overwriting base::`%%`, or would we want another
2018 Jan 17
1
roxygen2 error - x$tag operator is invalid for atomic vectors
On 17 January 2018 at 14:30, Eric Berger <ericjberger at gmail.com> wrote:
> This is an error message from R.
> For example, if you give the following R commands
> > a <- 5
> > a$foo
> This will generate the error message:
> Error in a$foo : $ operator is invalid for atomic vectors
>
> So you can search for the string 'x$tag' in your code (or
2018 Sep 11
0
Modification-proposal for %% (modulo) when supplied with double
On 11/09/2018 11:23 AM, Emil Bode wrote:
> Hi all,
>
>
>
> Could we modify the "%%" (modulo)-operator to include some tolerance for rounding-errors when supplied with doubles?
>
> It's not much work (patch supplied on the bottom), and I don't think it would break anything, only if you were really interested in analysing rounding differences.
>
>
2014 Dec 06
1
Bug#772274: xen-utils-common: when upgrading package: insserv: Service xenstored has to be enabled to start service xendomains
Package: xen-utils-common
Version: 4.4.1-5
Severity: important
Dear Maintainer,
I tried to upgrade xen-utils-4.4 depending on xen-utils-common.
Here is aptitude answer:
...
Param?trage de xen-utils-common (4.4.1-5) ...
insserv: Service xenstored has to be enabled to start service xendomains
insserv: Service xenconsoled has to be enabled to start service xendomains
insserv: exiting now!
2018 Sep 11
1
Modification-proposal for %% (modulo) when supplied with double
Duncan, I think Emil realizes that the floating point format isn't
able to represent certain numbers, that's why he is suggesting this
change rather than complaining about our arithmetic being broken.
However, I agree with you that we should not adopt his proposal. It
would not make things more "user friendly" for people. Everyone has a
different application and a different use
2013 Jun 30
18
Xen 4.2.2 /etc/init.d/xendomains save and restore of domains does not work
Hello,
in the last days I switched from Xen 4.2.1 to Xen 4.2.2 (source from git
repository tag 4.2.2)
commit a125ec6a4a2f028f97f0bdd8946d347a36dbe76b
Author: Jan Beulich <jbeulich@suse.com>
Date: Tue Apr 23 18:42:55 2013 +0200
update Xen version to 4.2.2
My "base system" is a debian squeeze. For Xen I use the xl toolstack.
Since updating to 4.2.2 the autosave and
2007 May 01
1
R CMD Rdconv drops sections: arguments, seealso, examples (PR#9649)
On Mon, 30 Apr 2007 bill at insightful.com wrote:
> On Tue, 10 Apr 2007 timh at insightful.com wrote:
>
> > I've created a .Rd file (below), then converted that to .sgml using
> > R CMD Rdconv --type=Ssgm combn.Rd > combn.sgml
> > The output (shown below) is missing some of the sections:
> > arguments
> > seealso
> > examples
> > If
2007 Apr 30
1
R CMD Rdconv drops sections: arguments, seealso, examples (PR#9645)
On Tue, 10 Apr 2007 timh at insightful.com wrote:
> I've created a .Rd file (below), then converted that to .sgml using
> R CMD Rdconv --type=Ssgm combn.Rd > combn.sgml
> The output (shown below) is missing some of the sections:
> arguments
> seealso
> examples
> If instead I convert to .d (below), the same sections are missing,
> and the "note"
2007 Jul 26
2
Rd2dvi (PR#9812)
Is this a bug--
-------------------------------------------------------------------------------
<234>% R CMD Rd2dvi base.Rd
Converting Rd files to LaTeX ...
base.Rd
Can't use an undefined value as filehandle reference at
/opt/R-2.5.1/lib/R/share/perl/R/Rdconv.pm line 78.
ENCS is
Creating dvi output from LaTeX ...
Saving output to 'base.dvi' ...
cp: cannot access
2006 Mar 09
1
count pixels of same color in pixmap object?
Dear all,
I try to figure out how to use R to count the number of pixels of the
same color in some gray-level picture. I managed to read it in either
tiff or jpeg format, but the returned pixmap object keeps its
information out of (my) reach. Is there an easy way to tabulate the
different color/graylevel pixels and their numbers? Or should I use a
completely different (free) software?
2008 Mar 15
1
length of S4
Hi the list,
With basic type, length gives the length of the vector
Wtih list, length gives the number of item
With S4 object, length gives...one. Even with an objet with empty slot.
setClass("E",representation(e="numeric"))
[1] "E"
length(new("E"))
[1] 1
setClass("E",representation(e="matrix"))
[1] "E"