search for: anrpackag

Displaying 20 results from an estimated 20 matches for "anrpackag".

Did you mean: anrpackage
2008 Oct 06
2
why is \alias{anRpackage} not mandatory?
Dear R developers, if one uses package.skeleton() to create a new package, then a file anRpackage.Rd with the following entries is prepared: \name{anRpackage-package} \alias{anRpackage-package} \alias{anRpackage} \docType{package} Packages created this way have a definite entry or overview page, so: ?anRpackage gives new users of a certain package a pointer where to start reading. This i...
2013 Sep 23
1
tar warnings in R-3.0.2 RC when R is installed by a different (non-root) user
Hi, I created a package as follows: > a = 1 > package.skeleton() Then I got the following output when building the package: * checking for file ?anRpackage/DESCRIPTION? ... OK * preparing ?anRpackage?: * checking DESCRIPTION meta-information ... OK * checking for LF line-endings in source and make files * checking for empty or unneeded directories * looking to see if a ?data/datalist? file should be added * building ?anRpackage_1.0.tar.gz? Warning: i...
2011 Jun 23
1
Class not found when search in .onLoad
...B', contain='A') check.classes <- function(){ a <- new('A') b <- new('B') message("isClass('A'): ", methods::isClass('A')) message("isClass('A') in namespace: ", methods::isClass('A', where=asNamespace('anRpackage'))) message("findClass('A'): ") print(methods::findClass('A')) message("isClass('B'): ", methods::isClass('B')) message("isClass('B') in namespace: ", methods::isClass('B', where=asNamespace('anRpackage')))...
2011 Aug 19
3
installing packages systemwide
I installed some downloaded packages in R. I always do $sudo R CMD INSTALL <anRpackage.tar.gz> By default it is storing these packages into my directory /home/mary/R/x86_64-pc-linux-gnu-library/2.13/. However I want them to be systemwide into /usr/local/lib/R/site-library/ folder. I tried $sudo R R> install.packages("anRpackage", dep=TRUE) I did not succeed into...
2011 Aug 19
3
installing packages systemwide
I installed some downloaded packages in R. I always do $sudo R CMD INSTALL <anRpackage.tar.gz> By default it is storing these packages into my directory /home/mary/R/x86_64-pc-linux-gnu-library/2.13/. However I want them to be systemwide into /usr/local/lib/R/site-library/ folder. I tried $sudo R R> install.packages("anRpackage", dep=TRUE) I did not succeed into...
2009 Nov 12
1
S4 objects in the data directory
...of the Rd files. It says in R-exts that: " R code should be ?self-sufficient? and not make use of extra functionality provided by the package, so that the data file can also be used without having to load the package" My current minimal self-contained example follows. le112:~% cat ./anRpackage/R/f.R setClass("foo", representation=representation(x="numeric")) le112:~% cat ./anRpackage/data/toy_foo.R "toy_foo" <- new("foo",x=rep(2,7)) fails R CMD check (transcript below) It fails because the class isn't defined. I can add 'require(anRp...
2020 Feb 18
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...t;, "setGeneric('f', function(object, ...) standardGeneric('f'))", "setMethod('f', 'xyab', function(object, ...) print('hi!'))" ), con = fn ) package.skeleton(code_files = "codefile.R") system("rm -rf anRpackage/man") system("R CMD INSTALL anRpackage") library(anRpackage) ## fails in R 3.6.2, but works in R 3.5.0 f(new("a")) Next, if a fresh R 3.6.2 session is started and I execute the following at the prompt, method dispatch works as expected. setClass("x", slots = li...
2012 Nov 02
1
Can't install.packages() from local repo in 2.15.2
...po on my local drive (happens to be mapped to L:/). It has the following structure (as per http://cran.r-project.org/doc/manuals/R-admin.html#Setting-up-a-package-repository): L:/R/bin/windows/contrib/ 2.11/ 2.12/ 2.13/ 2.14/ 2.15/ L:/R/src/contrib I created a bare bones package (`anRpackage`) using `package.skeleton`. I cleaned it up and added a basic function, checked it and built it from command line using `R CMD INSTALL --build .`. That generates `anRpackage_1.0.zip` with no errors. Note: ``` $ R CMD INSTALL --build --version R add-on package installer: 2.15.2 (r61015) ```...
2020 Feb 19
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...standardGeneric('f'))", > > "setMethod('f', 'xyab', function(object, ...) print('hi!'))" > > ), > > con = fn > > ) > > package.skeleton(code_files = "codefile.R") > > system("rm -rf anRpackage/man") > > system("R CMD INSTALL anRpackage") > > library(anRpackage) > > ## fails in R 3.6.2, but works in R 3.5.0 > > f(new("a")) > > > > Next, if a fresh R 3.6.2 session is started and I execute the following at > > the prompt, m...
2006 Sep 12
1
package.skeleton() in R-2.4.1
...prototype = list(x=numeric(),positive=logical()) ) setGeneric("getX",function(x){standardGeneric("getX")}) setMethod("getX","brob",function(x){x at x}) (which is legal, AFAICS), then package.skeleton(path="~") I get a file ~/anRpackage/R/getX.R containing: "getX" <- structure(function(x){standardGeneric("getX")} , generic = structure("getX", package = ".GlobalEnv"), package = ".GlobalEnv", group = list(), valueClass = character(0), signature = "x", default = &l...
2020 Feb 26
1
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
..."setMethod('f', 'xyab', function(object, ...) print('hi!'))" > > > > ), > > > > con = fn > > > > ) > > > > package.skeleton(code_files = "codefile.R") > > > > system("rm -rf anRpackage/man") > > > > system("R CMD INSTALL anRpackage") > > > > library(anRpackage) > > > > ## fails in R 3.6.2, but works in R 3.5.0 > > > > f(new("a")) > > > > > > > > Next, if a fresh R 3.6.2 session is st...
2020 Feb 18
0
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...;f', function(object, ...) standardGeneric('f'))", > "setMethod('f', 'xyab', function(object, ...) print('hi!'))" > ), > con = fn > ) > package.skeleton(code_files = "codefile.R") > system("rm -rf anRpackage/man") > system("R CMD INSTALL anRpackage") > library(anRpackage) > ## fails in R 3.6.2, but works in R 3.5.0 > f(new("a")) > > Next, if a fresh R 3.6.2 session is started and I execute the following at > the prompt, method dispatch works as expected. &...
2020 Feb 25
0
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...", > > > "setMethod('f', 'xyab', function(object, ...) print('hi!'))" > > > ), > > > con = fn > > > ) > > > package.skeleton(code_files = "codefile.R") > > > system("rm -rf anRpackage/man") > > > system("R CMD INSTALL anRpackage") > > > library(anRpackage) > > > ## fails in R 3.6.2, but works in R 3.5.0 > > > f(new("a")) > > > > > > Next, if a fresh R 3.6.2 session is started and I execute the follow...
2019 May 14
2
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
...){ > message("I am the tester. Which one will I call?") > gen(a~b) > } > > and the following NAMESPACE: > > export(gen) > S3method(gen, formula, .gen.formula) > export(gen.formula) > export(test_me) > > Now, > > library(anRpackage) > example(test_me) > > results in the following: > > test_m> test_me > function(){ > message("I am the tester. Which one will I call?") > gen(a~b) > } > <bytecode: 0x562fb9d32d68> > <environment: namespace:anRpacka...
2019 May 14
0
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
...atch implies two things: 1) the > inability to override your method by defining gen.formula in the > global environment, and 2) another package can break yours (i.e., > internal calls to gen()) by registering an S3 method for gen() after > you. That's a good point. > library(anRpackage) > gen(a~b) I am the S3method-declared method. > gen.formula <- function(object, ...){message("I am the externally declared method.")} > gen(a~b) I am the externally declared method. > test_me() I am the tester. Which one will I call? I am the funct...
2008 Mar 30
1
package.skeleton.S4
...I post this uncompleted function... If someone is interested in fixing it and then adding it somewhere, I then will write the package.skeleton.S4.Rd sincerly Christophe --- 8< ----------------- package.skeleton.S4 --------------------------- package.skeleton.S4 <- function(name = "anRpackage", list, environment = .GlobalEnv, path = ".", force = FALSE, namespace = FALSE, code_files = character(),S4=FALSE) { cat(missing(list)," EEE\n") ### If pakage.skeleton has not been run, run it on false data dir <- file.path(path, name) code_dir &lt...
2018 May 29
2
CentOS 7 issues with pdf manual / tex conversion
On 29 May 2018 at 16:37, R P Herrold wrote: | On Tue, 29 May 2018, Dirk Eddelbuettel wrote: | | > On a CentOS 7 machine, I am at a loss with respect to an inability to run a | > full R CMD check as anything involving tex files ends in tears. | | Hi, Dirk | | Have fun at the upcoming conference at UIC | | I seem to have 56 font packages installed under CentOS 7 | locally, but then I work
2018 May 30
0
CentOS 7 issues with pdf manual / tex conversion
...x/psnfss/t1phv.fd) (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def) (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def) [1{/usr/share/texlive/t exmf/fonts/map/pdftex/updmap/pdftex.map}] Overfull \hbox (0.78088pt too wide) in paragraph at lines 65--65 []\T1/pcr/m/n/10 kitten(name = "anRpackage", path = ".", author, maintainer, e mail,[] (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def) [2] No file Rd2.ind. [3] (./Rd2.aux) Package rerunfilecheck Warning: File `Rd2.out' has changed. (rerunfilecheck) Rerun to get outlines right (rerunfilecheck)...
2018 May 30
2
CentOS 7 issues with pdf manual / tex conversion
...hv.fd) | (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def) | (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def) | [1{/usr/share/texlive/t | exmf/fonts/map/pdftex/updmap/pdftex.map}] | Overfull \hbox (0.78088pt too wide) in paragraph at lines 65--65 | []\T1/pcr/m/n/10 kitten(name = "anRpackage", path = ".", author, | maintainer, e | mail,[] | (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def) [2] | No file Rd2.ind. | [3] (./Rd2.aux) | | Package rerunfilecheck Warning: File `Rd2.out' has changed. | (rerunfilecheck) Rerun to get outlines right | (re...
2019 May 14
2
[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.
...gt; inability to override your method by defining gen.formula in the > > global environment, and 2) another package can break yours (i.e., > > internal calls to gen()) by registering an S3 method for gen() after > > you. > > That's a good point. > > > library(anRpackage) > > gen(a~b) > I am the S3method-declared method. > > gen.formula <- function(object, ...){message("I am the externally declared method.")} > > gen(a~b) > I am the externally declared method. > > test_me() > I am the tester. Which...