Displaying 20 results from an estimated 40000 matches similar to: "use of depends, suggests, etc"
2009 Nov 23
6
CRAN Server download statistics (Was: R Usage Statistics)
Hi All,
It seems that the question of how may people use (or download) R, and it's packages is one that comes up on a fairly regular basis in a variety of forums (There was also recent thread on the subject on Stack Overflow). A couple of students at UCLA (including myself), wanted to address the issue, so we set up a system to get and parse the cran.stat.ucla.edu APACHE logs every night, and
2009 Nov 19
3
R Usage Statistics
Hi,
I got the following comment from the reviewer of a paper (describing an
algorithm implemented in R) that I submitted to BMC Bioinformatics:
"Finally, which useful for exploratory work and some prototyping,
neither R nor S-Plus are appropriate environments for deploying user
applications that would receive much use."
I can certainly respond by pointing out that CRAN contains
2015 Oct 08
1
library() in .Rd Examples (Depends vs. Imports)?
I'm a little confused when documenting my code using Imports vs. Depends.
If I have an example in my .Rd that uses a library that is listed under
Imports, it doesn't work, but if it is listed under Depends, it does. What
is the proper way to go about using examples that rely on an Imports?
Should I just if(require(somepackage)) in the example? Or is there a more
elegant way of doing
2006 Nov 29
4
rm() deletes 'c' if c('a','b') is the argument (PR#9399)
Full_Name: Lixin Han
Version: 2.4.0
OS: Windows 2000
Submission from: (NULL) (155.94.110.222)
A character vector c('a','b') is supplied to rm(). As a result, 'c' is deleted
unintentionally.
> a <- 1:5
> b <- 'abc'
> c <- letters
> ls()
[1] "a" "b" "c"
> rm(c('a','b'))
> ls()
character(0)
2009 Aug 05
2
Wishlist: Navigate to "Index" page of help when no topic (PR#13872)
On 04/08/2009 7:33 PM, Steven McKinney wrote:
>> -----Original Message-----
>> From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca]
>> Sent: Tuesday, August 04, 2009 8:03 AM
>> To: Steven McKinney
>> Cc: r-devel at stat.math.ethz.ch; R-bugs at r-project.org
>> Subject: Re: [Rd] Wishlist: Navigate to "Index" page of help when no
>> topic
2012 Nov 07
2
Correct use of Depends, Imports and ::
Dear R developers,
Taking advantage of the yesterday discussion about the use of
Depends/Import/Suggests/Enhances, I would like to add a related question.
Let's assume, in the DESCRIPTION file of my package foo0, I have:
Depends: foo1
Imports: foo2
while in the NAMESPACE file of my package I have
importFrom("foo2", f2)
and within my package I use the following two external
2010 Oct 15
1
Package 'nlme' fails 'make check-all' in R 2.12.0 patched built from source
Hi all,
I am building R 2.12.0 patched this morning from source on Snow Leopard (10.6.4). In fact, three times now, with separate clean source and build directories each time, just to be sure that the issue is predictable.
I would be happy to have somebody tell me that I am missing something fundamental here also...
After running make check-all, I get the following error for 'nlme':
*
2012 Nov 06
1
Depends/Imports/Suggest/Enhence
Hi the list
In the DESCRIPTION file of my package foo0, I have:
Depends: foo1
Imports: foo2
Suggest: foo3
Enhence: foo4
If I understand correctly, to install foo0 on my computer, I need to already have foo1, foo2, foo3.
foo4 is not necessary.
I my R sesssion, when I will write: library(foo0), then the package foo1 will be attach. foo2, foo3
and foo4 will not. Is that correct?
But what is
2010 Jul 30
1
how to find non-ASCII characters in .Rd files?
[Env: Win XP Pro / R 2.11.1]
I keep occasionally running into the annoying problem of getting
warnings from R CMD check regarding
non ASCII characters in .Rd files, without any easy way of finding them.
Mostly these come from copy/paste of references or other material from
web pages or Win applications,
and often involve varieties of quote-like characters, e.g., if I try to
include output
2011 Apr 03
1
Suggests and examples
I apologize in advance for probably missing something obvious, but if
someone could point me in the right direction I'd be grateful. This
NOTE is not unique to our package (I list a few others, below).
Package bcp has several Suggests (strucchange, for example).
Then in an Rd file, we have
if (require(strucchange)) {
# Doing some examples making use of strucchange
}
The CRAN check
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
2018 Apr 18
1
R Bug: write.table for matrix of more than 2, 147, 483, 648 elements
Hi Colton,
You could divide your write task into chunks that do not violate the 2^31-1 limit.
write.table has an append argument (default FALSE).
Figure out a row chunk size nri < nr such that nri * nc is under 2^31-1 and use
write.table() to write that out.
Then use
write.table( append = TRUE, )
for the next chunk of rows, looping over chunks until done. Two chunks will get your 2.8
2013 Aug 22
1
Confusion about Depends:, Imports:, Enhances:, import(), inportFrom()
In checking my vcdExtra package, the following NOTE newly appeared
(R-Forge, using R version 3.0.1 Patched (2013-08-20 r63635))
Package in Depends field not imported from: ?gnm?
These packages needs to imported from for the case when
this namespace is loaded but not attached.
In the DESCRIPTION file, I have
Depends: R (>= 2.10), vcd, gnm (>= 1.0.3)
In NAMESPACE:
# we are a vcd
2009 Jan 29
1
In Rd: \describe \itemize and \item
I rebuilt a test version of my yaImpute package using Uwe Ligges' windows
build service.
I got this reply: Check result: OK
R version 2.9.0 Under development (unstable) (2009-01-27 r47756)
Here is the issue: I have the following construct in help files (this
example relates to "data"):
\format{
A data frame with 847 rows and 29 columns: \cr\cr
Ground based measurements of
2018 Apr 10
2
wiki suggestions
Hi,
This is a collection of notes that I took while setting up an AD-DC. I
do not want to edit the Wiki pages myself, without first asking experts
whether my assumptions are correct.
Klaus
----
On page
Setting_up_Samba_as_an_Active_Directory_Domain_Controller
the section
Configuring Winbindd on a Samba AD DC
is not necessary, because the same info is also included in the next
2009 Nov 04
3
Cannot Change Function (PR#14041)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.102.255)
Whenever I try changing a function, it keeps coming up with the same error
message.
I have the function
CN_state_log_sum=function(Tot_log_sum){ #estimate copy number state for the log
sum approach
if(((Im(Tot_log_sum))!=0)|Re(Tot_log_sum)<=log(1/4)/log(2)) {return(0)}
2007 May 17
1
model.matrix bug? Nested factor yields singular design matrix.
Hi all,
I believe this is a bug in the model.matrix function.
I'd like a second opinion before filing a bug report.
If I have a nested covariate B with multiple values for
just one level of A, I can not get a non-singular design
matrix out of model.matrix
> df <- data.frame(A = factor(c("a", "a", "x", "x"), levels = c("x",
2010 Jan 27
0
Depends, Suggests and .First.lib
Dear all,
I am working in the development of a package with more or less 25 functions. Most of them do not have dependencies on other extra packages. However, I am including three GUIs for the most important functions of the package. These three GUIs need the gWidgets package. Moreover, there is another function which makes use of latticeExtra and latticedl.
Since these three packages are not
2012 Jul 06
0
depends/suggests when making a new generic to override a function in a user package
Dear R developers,
I would like to add a new S3 generic to override a function in a user package, specifically:
STAR::as.repeatedTrain
I have followed the recommendation here:
http://cran.r-project.org/doc/manuals/R-exts.html#Adding-new-generics
doing this:
as.repeatedTrain<-function(x,...){
UseMethod("as.repeatedTrain")
}
as.repeatedTrain.default<-function(x,...) {
2011 Jan 07
2
Indexing request
I just tried ?Constants at the console and was disappointed that the
so-named base help page would not come up.
> ?Constants
No documentation for 'Constants' in specified packages and libraries:
you could try '??Constants'
Seems like there should have been a match. I was looking for the month
abbreviations, failing to hit the right name 4 times and then failing
3 more