Displaying 20 results from an estimated 20000 matches similar to: "R CMD check <PACKAGE> Error"
2010 Mar 10
2
ggplot2: "varwidth"-equivalent for geom_boxplot?
Hi,
Is there such a thing? If no: is it easily simulated?
thanks, Joh
2007 Dec 19
4
Factor Madness
Why is class(spectrum[["Ion"]]) after this "factor"?
spectrum <- cbind(spectrum,Ion=rep("",
nrow(spectrum)),Deviation.AMU=rep(0.0, nrow(spectrum)))
slowly going crazy ...
Joh
2008 Jan 24
3
Plot definition for custom class
Hi,
Is there any way to trick R CMD check into not throwing this error after I
created a dedicated "plot" incarnation for my custom function?
* checking S3 generic/method consistency ... WARNING
plot:
function(x, ...)
plot.MQUSpecMatch:
function(x, mozlabel, labelcex)
Thanks again, Joh
2007 Dec 18
6
All anchored series from a vector?
>From: Johannes Graumann <johannes_graumann at web.de>
>Date: 2007/12/18 Tue PM 04:40:37 CST
>To: r-help at stat.math.ethz.ch
>Subject: [R] All anchored series from a vector?
lapply(1:length(myvector) function(.length) {
c(myvector[1}:myvector[.length])
})
but test it because i didn't.
>Hi all,
>
>What may be a smart, efficient way to get the following result:
2010 Jul 26
3
List to data frame
Hi,
Any ideas on how to efficiently convert
> list(c(1,2,3),c(4,5,6))
to
> data.frame(OriginalListIndex=c(1,1,1,2,2,2),Item=c(1,2,3,4,5,6))
Thanks for any hints,
Joh
2013 May 01
3
grep help (character ommission)
Hello,
Banging my head against a wall here ... can anyone light the way to a
pattern modification that would make the following TRUE?
identical(
grep(
"^Intensity\\s[^HL]",
c("Intensity","Intensity L", "Intensity H", "Intensity Rep1")),
as.integer(c(1,4)))
Thank you for your time.
Sincerely, Joh
2007 Feb 19
6
Data frame: how to create list of row max?
Dear all,
Can anyone please shed some light onto how to do this?
This will give me all "intensity" columsn in my data frame:
intensityindeces <- grep("^Intensity",names(dataframe),value=TRUE)
This will give me the maximum intensity for the first row:
intensityone <- max(dataframe[1,intensityindeces])
What I'm now looking for is how to dfo this for the whole data
2010 Aug 03
3
grid.table and expression in table body?
Hi,
Is there any way to get an expression into a data.frame, such that
"grid.table" from "gridExtra" will plot it evaluated in the table body? The
docu does it for the header, but is the body possible?
Thanks, Joh
2009 May 11
3
readBin: read from defined offset TO defined offset?
Hello,
With the help of "seek" I can start "readBin" from any byte offset within my
file that I deem appropriate.
What I would like to do is to be able to define the endpoint of that read as
well. Is there any solution to that already out there?
Thanks for any hints, Joh
2008 Jan 24
1
R CMD check and postscript fonts
Hello,
I came across this by using R cmd check - otherwise I would probably not have
noticed.
One of my functions does something like this:
# postscript()
# plot(1, xlim = c(0, 10), ylim = c(0, 4), type = "n", ann = FALSE, axes = FALSE)
# text(1:10, 2, c("a","b"), cex = seqcex, family="mono",font=2)
Which results in the error:
Error in text.default(1:10, 2,
2013 Jan 30
1
R CMD check: Error in get("ptime", pos = "CheckExEnv") ...
Hi,
Does anyboody have insight into what this error terminating "R CMD check" on
an in-house package may imply?
> ###
> cat("Time elapsed: ", proc.time() - get("ptime", pos = 'CheckExEnv'),"\n")
Error in get("ptime", pos = "CheckExEnv") :
unused argument(s) (pos = "CheckExEnv")
Calls: cat -> cat.default
2007 Feb 22
3
List filtration
Hello R-ologists,
Imagine you have a list "list" like so:
>list
[[1]]
[1] "IPI00776145.1" "IPI00776187.1"
[[2]]
[1] "Something" "IPI00807764.1" "IPI00807887.1"
[[3]]
[1] "IPI00807764.1"
[[4]]
[1] "Somethingelse"
What I need to achieve is a filtered list "list2" like so:
>list2
[[1]]
[1]
2011 Jul 05
1
Circumventing code/documentation mismatches ('R CMD check')
Hello,
As prompted by B. Ripley (see below), I am transfering this over from R-User
...
For a package I am writing a function that looks like
test <- function(Argument1=NA){
# Prerequisite testing
if(!(is.na(Argument1))){
if(!(is.character(Argument1))){
stop("Wrong class.")
}
}
# Function Body
cat("Hello World\n")
}
Documentation of this is straight forward:
2010 Sep 08
2
choose.dir() gone?
Hi,
I fail to find "choose.dir()" in my current R install (see below)? Didn't
that exist at some point? How to achieve "file.choose()" equivalent
functionality for directories?
Thanks for any hints, Joh
> sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-pc-linux-gnu
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3]
2011 Jul 04
1
Prevent 'R CMD check' from reporting "NA"/"NA_character_" missmatch?
Hello,
I'm writing a package am running 'R CMD check' on it.
Is there any way to make 'R CMD check' not warn about a missmatch between
'NA_character_' (in the function definition) and 'NA' (in the
documentation)?
Thanks for any help.
Sincerely, Joh
2007 Feb 19
2
Another subsetting enigma
Hello again,
I'm trying to do the following:
subset(dataframe,list %in% strsplit(dataframe[[Field]],","))
But This returns always the complete dataframe, since the
strsplit(dataframe[[Field]],",") is evaluated as one big list for the whole
data frame rather than one list per row. How can I have this evaluated on a
per row basis?
After 1.5 h hitting head against wall -
2008 Oct 30
2
"plot": Howto get parameters befor plotting anything?
Hello,
Is it possible to get all "par" content calculated for "plot" without actually plotting anything? I'm missing an option "plot=FALSE" ... "type="n"" will still open a device and draw the axes ...
Thanks, Joh
2011 Jan 17
2
Finding NAs in DF
Hi,
What is an efficient way to take this DF
data.frame(A=c(1,2,NA,NA),B=c(1,NA,NA,4))
and get
c(NA,"TWO","BOTH","ONE")
as the result, where NA corresponds to a row without "NA"s, TWO indicates NA
in the second and ONE in the first column.
Thanks for any pointers.
Joh
2004 Aug 25
3
Beginners Question: Make nlm work
Hello,
I'm new to this and am trying to teach myself some R by plotting
biological data. The growth curve in question is supposed to be fitted
to the Verhulst equation, which may be transcribed as follows:
f(x)=a/(1+((a-0.008)/0.008)*exp(-(b*x)))
- for a known population density (0.008) at t(0).
I am trying to rework the example from "An Introduction to R" (p. 72)
for my case and
2009 Jan 16
2
Efficiency challenge: MANY subsets
Hello,
I have a list of character vectors like this:
sequences <- list(
c("M","G","L","W","I","S","F","G","T","P","P","S","Y","T","Y","L","L","I","M",