Displaying 20 results from an estimated 600 matches similar to: "bug in codetools/R CMD check?"
2012 Feb 08
0
Error in data.frame(srcfile = NA_character_ ...) using R CMD check
Hi all,
I'm running into an error when using R CMD check on a package I inherited
and I'm now trying to clean up. There are known issues with the Rd files
(they definitely need to get updated) resulting in a couple of warnings,
but the error occurs before check reaches the Rd files. Below is a snippet
of my check.log:
* using log directory 'F:/RForgePackages/pkg.Rcheck'
* using R
2013 Jan 16
2
Codetools Query (repost)
Sorry for reposting, i keep forgetting this should be plain text.
Will not make this mistake again
Hello,
The following code
moo <- function(a=1){ x=1; x=x+y}
funs <- new.env()
enter <- function(type, v, e, w){
assign(v, TRUE, funs)
}
library(codetools)
collectUsage(moo, enterGlobal = enter)
adds + to the environment funs i.e.
funs: "=" "{" "+"
2007 Jul 25
1
codetools really optional for R CMD check?
After upgrading to R 2.5.1 on Debian, R CMD check gives
* checking Rd cross-references ... WARNING
Error in .find.package(package, lib.loc) :
there is no package called 'codetools'
Execution halted
* checking for missing documentation entries ... WARNING
etc
The NEWS file says (for 2.5.0; I was on 2.4 before the recent upgrade)
o New recommended package 'codetools' by Luke
2003 Jul 28
0
codetools
I've put together a package codetools with some tools for examining R
source code. It is available at
http://www.stat.uiowa.edu/~luke/R/codetools/codetools.tar.gz
It requires a reasonably current version of R-devel.
The main user functions are:
checkUsage, checkUsageEnv, checkUsagePackage: Examine closure,
closures in an environment, closures in a package, and report
2012 Mar 22
0
Thai vignette, cross-compile for Mac OS X, universal/multiarch (Fwd: Mac OS X builds of CelQuantileNorm, vcftools/samtools/tabix, and snpStats)
FYI.
There is a Thai vignette - and it went a lot further doing some Thai text
processing in R, than the earlier Chinese/Tibetan/LiangshanYi/Arabic vignette,
which was in reality just Chinese + Cairo graphics.
Managed to cross-compile an R package for Mac OS X from Linux; and it seems to
be working. See screenshots below. I'd be interested to know if there are less
obvious bugs; however
2008 Feb 28
8
How to read HUGE data sets?
Dear R-list,
Does somebody know how can I read a HUGE data set using R? It is a hapmap
data set (txt format) which is around 4GB. After read it, I need to delete
some specific rows and columns. I'm running R 2.6.2 patched over XP SP2
using a 2.4 GHz Core 2-Duo processor and 4GB RAM. Any suggestion would be
appreciated.
Thanks in advance,
Jorge
[[alternative HTML version deleted]]
2009 Mar 06
0
Bug in codetools ?
Hello,
Is this a bug in codetools:
> codetools::showTree( body( glm) )
("{" (<- call (match.call)) (if (is.character family) (<- family (get
family "function" (parent.frame)))) (if (is.function family) (<-
family(family))) (if (is.null ($ family family)) ("{" (print family)
(stop "'family' not recognized"))) (if (missing data)
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
Dear list members,
I frequently program small scripts and wrap them into functions to be
able to check them with checkUsage. In case these functions (loaded via
source or copy pasted to the R console) use functions from other
packages, I get this error:
no visible global function definition for ?xxxxxxx?
For example:
test = function() {
require(plotrix)
color.legend()
}
2010 Jan 29
1
Question on codetools and parse trees
Dear R Users,
Using codetools I obtained the text representation of the parse tree for this
snippet
z=quote({x[1]<-2})
showTree(z)
> ("{" (<- ([ x 1) 2)) (A)
If I understand correctly, x[1]<-2 ought to be "[<-"(x,1,2), so shouldn't i see
("{" ( [<- x 1 2 ) )
If indeed the parse tree in (A) is correct, the operation ([ x 1)
returns the
2008 Feb 28
0
tutorial on codetools
Hi the list
Is there any tutorial to learn codetools ? It seems to be a very
interesting pacakge, but the help gives not that much detail, and there
is not that much examples provided...
Christophe
2023 Jun 03
3
codetools wrongly complains about lazy evaluation in S4 methods
In a package, I define a method for not-yet-generic function 'qr.X' like so:
> setOldClass("qr")
> setMethod("qr.X", signature(qr = "qr"), function(qr, complete, ncol) NULL)
The formals of the newly generic 'qr.X' are inherited from the non-generic
function in the base namespace. Notably, the inherited default value of
formal
2006 Nov 22
9
Way to interpolate a variable sent to $()
Hello all,
I''m new to prototype and javascript isn''t my strong point. I''m trying
to get a simple test script to work, which is turning out to be a
little harder than I thought. I have a bunch of fields that I need to
be able to switch on and off using one of a few hashes. In the example
below I''m trying to get one to work.
The problem occurs when I try to
2010 Jun 01
0
codetools: Suggestion to detect potentially unassigned variables
This is just a note/wishlist/for the record:
With
foo1 <- function() {
res;
}
foo2 <- function() {
for (i in c()) res <- 1;
res;
}
foo3 <- function() {
while (FALSE) res <- 1;
res;
}
foo4 <- function() {
if (FALSE) res <- 1;
res;
}
we get:
> foo1()
Error in foo1() : object 'res' not found
> foo2()
Error in foo2() : object 'res' not
2009 Jan 15
3
How to create a chromosome location map by locus ID
Hi,
I'm trying to make a chromosomal map in R by using the locus. I have a list
of genes and their locus, and I want to visualise that so you can see if
there are multiple genes on a specific place on a chromosome. A example of
what I more or less want is below:
http://www.nabble.com/file/p21474206/untitled.JPG untitled.JPG
The genes and locus are here:
2019 May 07
0
Staged installation fail on some file systems
Thanks for the report.? According to my reading, this use of "mv" is ok
and the renameat2() call which the invocation of "mv" leads to is also
ok and allowed by POSIX in this context. It could only fail with EEXIST
if the target directory (path/pkg) was not empty. So far I've not been
able to reproduce but we could fall back to copy like on Windows.
Best
Tomas
On
2019 May 09
0
Staged installation fail on some file systems
On 5/7/19 6:18 PM, Henrik Bengtsson wrote:
> On Tue, May 7, 2019 at 9:05 AM Tomas Kalibera <tomas.kalibera at gmail.com> wrote:
>> Thanks for the report. According to my reading, this use of "mv" is ok
>> and the renameat2() call which the invocation of "mv" leads to is also
>> ok and allowed by POSIX in this context. It could only fail with EEXIST
1999 Apr 06
1
Best Printer Setup
Hi,
I've been toying with the idea of using the Linux machine as a print
server. I'm using RedHat 5.2 and Samba 2.0.3. I already have one remote
printer share working... but I can't figure out where the PrintTool in
RedHat is storing the remote printers IP address. Anyone know where? :)
(not important just bugging me - I hate when OS's hide stuff)
I have the Samba book
2007 Apr 24
2
R 2.5.0 in Debian unstable
I just uploaded R 2.5.0 to Debian's unstable distribution. As Peter's
announcement says, it now contains two new packages'rcompgen' and
'codetools'.
About two or three weeks ago, I also packaged these, just like other
'recommended' packages as r-cran-rcompgen and r-cran-codetools. However, as
"new" packages, they are still in the NEW queue awaiting
2016 Apr 09
2
Note: no visible definition
On 4/9/16 10:54 AM, Dirk Eddelbuettel wrote:
> On 9 April 2016 at 10:28, Mick Jordan wrote:
> | Can someone explain a message of this form from an rscript execution:
> |
> | Note: no visible global function definition for 'foo'
> |
> |
> | This happens right at the start of execution. 'foo' is only executed in
> | a branch of an 'if' that is not
2019 May 07
2
Staged installation fail on some file systems
On Tue, May 7, 2019 at 9:05 AM Tomas Kalibera <tomas.kalibera at gmail.com> wrote:
>
> Thanks for the report. According to my reading, this use of "mv" is ok
> and the renameat2() call which the invocation of "mv" leads to is also
> ok and allowed by POSIX in this context. It could only fail with EEXIST
> if the target directory (path/pkg) was not empty.