Displaying 20 results from an estimated 5000 matches similar to: "identical() mystery"
2011 Apr 20
2
Package Name Not Found Warning
Hello,
I've got a DESCRIPTION file with a the first line:
Package: Repitools
But, when I run R CMD INSTALL Repitools I get:
* installing *source* package Repitools ...
** R
** data
** inst
** preparing package for lazy loading
Warning in FUN(X[[1L]], ...) :
Created a package name, "2011-04-20 09:05:40", when none found
** help
*** installing help indices
** building package
2011 Jan 27
3
agnes clustering and NAs
Hello,
In the documentation for agnes in the package 'cluster', it says that NAs are allowed, and sure enough it works for a small example like :
> m <- matrix(c(
1, 1, 1, 2,
1, NA, 1, 1,
1, 2, 2, 2), nrow = 3, byrow = TRUE)
> agnes(m)
Call: agnes(x = m)
Agglomerative coefficient: 0.1614168
Order of objects:
[1] 1 2 3
Height (summary):
Min. 1st Qu. Median Mean 3rd
2010 Sep 03
3
S4 Method Signatures
Hello,
If the signature of a method defines which generic it implements then I'm confused about why this minimal example I invented won't work :
setGeneric("myFun", function(rs, ...){standardGeneric("myFun")})
setGeneric("myFun", function(cs, ...){standardGeneric("myFun")})
setMethod("myFun", "numeric", function(rs, colour =
2011 Apr 15
3
DESCRIPTION file and Rd examples
I have a confusing error from R CMD check that I don't get when running the example manually by hand.
In the \examples section of an Rd file, I create a GRanges object, then I call a function with the GRanges object, whose first 2 lines are
require(GenomicRanges)
annoDF <- as.data.frame(anno) # anno is the GRanges object.
and that second line gives:
Error in
2010 Aug 30
2
S4 Method Rd Warning
Hello,
I am using R 2.11.0. I have a curious problem where I get a warning in R CMD check which is seemingly not relevant to my Rd file.
The warning says :
* checking Rd \usage sections ... WARNING
Bad \usage lines found in documentation object 'enrichmentCalc':
<unescaped bksl>S4method{enrichmentCalc}{GenomeDataList, BSgenome}(rs, organism, seqLen=NULL, ...)
<unescaped
2010 Aug 30
2
S4 Method Rd Warning
Hello,
I am using R 2.11.0. I have a curious problem where I get a warning in R CMD check which is seemingly not relevant to my Rd file.
The warning says :
* checking Rd \usage sections ... WARNING
Bad \usage lines found in documentation object 'enrichmentCalc':
<unescaped bksl>S4method{enrichmentCalc}{GenomeDataList, BSgenome}(rs, organism, seqLen=NULL, ...)
<unescaped
2011 Apr 06
2
R CMD check for 2.13 rc
Hi,
I have a couple of new errors in our package when I check it on R 2.13-rc (r55310). The first one that's mystifying me is
* checking R code for possible problems ... NOTE
Error : object normalizePath is not exported by 'namespace:utils'
Error : object normalizePath is not exported by 'namespace:utils'
Firstly, it's strange to see NOTE and Error being used
2011 May 18
1
PAM Clustering Ignores Cluster Number Parameter
I am using PAM with k = 10 clusters, but I only get one cluster ID for all my observations. I couldn't find any discussion about this in the help file, or mailing lists.
Is there a reasonable explanation for this result ?
cIDs <- pam(all, 10, cluster.only = TRUE, do.swap = FALSE)
> table(cIDs)
cIDs
0
16671
The matrix of observations can be found at :
2010 Feb 11
1
Flattening Graphics
Hello,
This question is a nightmare to search for, as I get so many irrelevant results. What I'm interested in doing if I have many pages of plots and I want to keep them together in the same document, say a PDF, is there a way to flatten all the dot plots and graphics, so that they don't take a long time to load on a slow computer in Adobe Reader, without using external programs outside
2011 Apr 29
4
R CMD check and Suggests Packages
Hello,
In my description file, I have an example data package in Suggests: that I've deleted from my library to test what the user who doesn't have it will experience.
However, R CMD check won't even pass my package :
* checking package dependencies ... ERROR
Package required but not available: RepitoolsExamples
Why would it have to be installed, if it's only a data package,
2010 Dec 17
2
Nested layout()
Hello,
Is it possible to call a graphing function that uses layout() multiple times and layout those outputs ? Here's a minimal example :
myplot <- function()
{
layout(matrix(1:2, nrow=1), widths = c(1, 1))
plot(1:10)
plot(10:1)
}
layout(matrix(1:2), heights = c(1, 2))
myplot()
myplot()
--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan
2010 Sep 07
1
Dispatch method on S3 or S4 class
Hello,
I've been attempting to make a generic method that dispatches on the first argument, which can be either an S3 or an S4 class. This is as far as I've gotten. Any suggestions about what to try next ?
library(aroma.affymetrix)
library(GenomicRanges)
setGeneric("analyse", function(x, y, ...) standardGeneric("analyse"))
setMethodS3("analyse",
2010 Oct 20
1
Loading Cached Weaver Objects
Hello,
I'm looking for a way to extract objects from what gets created when I Sweave with driver = weaver(). I found where the .Rdata objects are, but when I load one into R, I don't see anything that looks like the objects that were created in that code chunk.
> load("/home/darstr/r_env_cache/2.11.0/AbsMeth_5/ac047940aaa9cf1a1ec09f1628b13381.RData")
> ls()
[1]
2011 Apr 28
2
gridBase Base Plot Positioning
Hello,
I'm trying to follow the documentation of how to use gridBase, and I've reached the minimal code example below as my best effort. Can someone explain how to keep the column of boxplots on the same page as the rectangles (even though I've tried new = TRUE) ? Also, would it be hard / possible to match up the middle of each boxplot to the middle of each rectangle ?
2011 Jun 02
1
Exiting R Gracefully
Hello,
I thought I'd add this to the mailing list, in case it could be handled smoother in a future release of R.
> q()
Save workspace image? [y/n/c]: n
*** caught segfault ***
address (nil), cause 'unknown'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 3
Error: no graphics
2011 Feb 02
2
Memory Leak
Hello,
I'm trying to track down the cause of some extreme memory usage and I've been using Dirk Eddelbuettel's lsos() function he posted on stack overflow. There is a large difference between R's RAM usage :
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6637 darstr 20 0 30.0g 29g 4712 S 0 63.2 10:34.43 R
and what objects I have loaded in memory :
2011 Apr 15
2
Sweave Executes Package Functions Twice
Hi,
I've got something strange going on. I'm trying to compile a vignette using Sweave("vignette.Rnw"), and in the first code chunk that illustrates an example, I noticed from the output text I have inside the function, that it is running it twice, because the sequence of message() statements is output on screen twice, and takes twice as long to do.
e.g.
Processing sample 1
2010 Nov 29
1
tar R command
Hello,
The documentation for the tar command leads me to think there is an internal implementation when the command can't be found in the OS.
However, it doesn't seem to be the case, as I get an empty .tar file generated on a small example I made :
> dir(pattern = "jpg")
[1] "MA56237502_635.jpg"
> file.info("MA56237502_635.jpg")
2010 Aug 25
1
Documenting S4 Methods
I'm in the process of converting some S3 methods to S4 methods.
I have this function :
setGeneric("enrichmentCalc", function(rs, organism, seqLen, ...){standardGeneric("enrichmentCalc")})
setMethod("enrichmentCalc", c("GenomeDataList", "BSgenome"), function(rs, organism, seqLen, ...) {
... ... ...
})
2018 Sep 20
3
A different error in sample()
Good day,
The use of "rounding" also doesn't make sense. If The number is halfway between two integers, it is rounded to the nearest even integer.
> round(2.5)
[1] 2
--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia