Displaying 20 results from an estimated 40000 matches similar to: "checking whether the name space can be loaded with stated dependencies"
2007 Aug 19
2
Installing dependent packages
Hi all,
When installing ggplot2 on with install.packages("ggplot2", dep = T),
the colorspace dependency doesn't get installed (see below for
transcript from R session).  The relevant lines from my description
file are:
Depends: R (>= 2.4), grid, reshape (>= 0.8.0), proto, splines, MASS,
RColorBrewer, colorspace
Suggests: quantreg, Hmisc, mapproj, maps
Have I done something
2012 Mar 22
5
Ubuntu Lucid, R 2.14.2, and ggplot2
I've just updated to the latest R (2.14.2) on my Ubuntu Lucid box, and now the ggplot2 installed as a .deb package fails to work.
$ R -e 'library(ggplot2)'
Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : 
  package ?proto? does not have a NAMESPACE and should be re-installed
Calls: library -> .getRequiredPackages2 -> library
Execution
2008 Feb 23
2
Aliasing a function
A simple way to alias a function is to do :
g <- function(a = 1, b = 2, c = 3) a + b * c
f <- function(...) g(...)
but formals (etc) is no longer very helpful.  Is there an easy way to
programmatically create:
f <- function(a=1, b=2, c=3) g(a=a, b=b, c=c)
This comes up in ggplot2 where I alias many functions to hide the fact
that I'm using proto in the background, and I'd like
2009 Oct 08
2
proto and get()
Dear all,
In mucking around with ggplot2, I've hit the following snag,
library(ggplot2)
# this returns a grob, OK
GeomAbline$icon()
# lines[GRID.lines.9]
# this returns the function icon, OK
GeomAbline$icon
# proto method (instantiated with ): function (.)
# linesGrob(c(0, 1), c(0.2, 0.8))
# <environment: 0x13e6800>
Now I want to wrap this in a function,
getIcon <-
2011 Oct 12
1
NOTE: unstated dependencies in examples
Using R 2.13.1, I am now getting the following NOTE when I run R CMD 
check on my HistData
package
* checking for unstated dependencies in examples ... NOTE
'library' or 'require' calls not declared from:
   gplots sp
Under R 2.12.x, I didn't get these notes.
I have ~ 25 .Rd files in this package, and AFAICS, every example uses 
library or require for the
functions used; 
2007 Feb 24
2
Depending on many packages: another best practice question
Dear all,
ggplot currently requires 13 packages (grid, reshape, RColorBrewer,
proto, splines, MASS, Hmisc, boot, butler, hexbin, mapproj, quantreg,
sm).  Some of these are absolutely necessary (eg. proto), but most are
used for one or two specific tasks (eg. boot is only used to get
plogis, used for logit scales).
Do you think I should make them all "depends" packages, or
2010 May 13
1
ggplot2: qplot won't work
I have a script running in the StatET Eclipse environment that
executes the ggplot2 command qplot in a function:
# Creates the plot
createPlot <- function(){
	print("Lets plot!")
	qplot(1:10, letters[1:10])
}
When executing the qplot line directly, it works. When executing the
script it does not open a window and it it does not plot. Is there
something important I have forgotten? I
2010 Jan 30
2
Stop packages and datasets to be loaded on startup.
Hi.
I would like to know how to start an embedded R session, and avoid 
datasets and the standard library packages to be loaded on startup.
I've been looking at littler's code (so this is partly a question to 
Dirk Eddelbuettel...):
>         /* We don't require() default packages upon startup; rather, we
>          * set up delayedAssign's instead. see autoloads().
>  
2007 Mar 26
1
Problem in loading all packages all at once
Hi All
Please see the Rprofile file which i have modified as follows and after 
that when I start R then I see that R says to me "TRUE" for all the 
packages implying that all loaded at once. 
But when i try to use commands as simple as help("lm"), it doesnt work nor 
any of the menu "Packages" is not working.
Although the regression using lm ( Y ~ X ) is working
2011 Apr 16
2
(no subject)
I have just upgraded to R 2.13 and have library(ggplot2) in my
.Rprofile (among other things).  when i start R I get an error
message.  Has something in the start up scripts changed?  Is there a
better way to specify the library calls in .Rprofile?  Thanks for all
of the help in advance.
Error:
Loading required package: grid
Loading required package: proto
Error in rename(x, .base_to_ggplot) :
2009 Jul 21
1
Customization options with .Renviron, R_LIBS, .Rprofile etc
Hi,
I am interested in customizing the installation of R. I have
gone through the ?R Installation and Administration? manual. But some
of the stuff is not clear to me and I would like to get clarifications
on the following points (for a Windows installation with
R_HOME=C:\\R\\R-2.9.1 ) :
1.  I understand that I need to create a
file, .Renviron with the following path : R_HOME\\etc\\.Renviron where
2015 May 13
4
example fails during R CMD CHECK but works interactively?
Thank you Dan but it isn't my tests that are failing (all of them pass
without problem) but one of the examples from the inst/examples directory.
I did try, however, to start R with the environmental variables as you
suggest but it had no effect on my tests.
Charles
On Wed, May 13, 2015 at 1:51 PM, Dan Tenenbaum <dtenenba at fredhutch.org>
wrote:
>
>
> ----- Original Message
2015 May 13
2
example fails during R CMD CHECK but works interactively?
Greetings,
I am collaborating with developing the bigmemory package and have run in to
a strange problem when we run R CMD CHECK.  For some reason that isn't
clear to us one of the examples crashes stating:
Error:  memory could not be allocated for instance of type big.matrix
You can see the output on the Travis CI page at
https://travis-ci.org/kaneplusplus/bigmemory where the error starts
2010 Feb 25
2
proto and baseenv()
I understand why the following happens ($.proto delegates to get,
which ascends the parent hierarchy up to globalenv()), but I still
find it anti-intuitive:
  > z <- 1
  > y <- proto(a=2)
  > y$z
  [1] 1
Although this is well-documented behavior; wouldn't it uphold the
principle of least surprise to inherit instead from baseenv() or
emptyenv()? (See attached patch.)
Spurious
2007 Feb 22
2
Writing a package in which files must be sourced in a specific order
Dear all,
I have been using the proto package to create objects with mutable
state for my ggplot package.  This has been very successful so far,
but I have run into a problem when building/installing the package,
because the source files need to be loaded in a specific order so that
dependencies are initialised correctly.
I have named the files so that dependencies are loaded before they are
2013 Jun 28
3
problem with eval(..., parent.frame(1L)) when package is not loaded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
  The lmer() function in the lme4 package has some code of the form
mc <- match.call()
mc[[1]] <- as.name("lFormula")
lmod <- eval(mc, parent.frame(1L))
  this is a fairly common idiom in R, found e.g. in lm(), used when
one wants to pass all of the arguments of a function to a different
function (in the case of lm() it's
2008 Nov 20
1
Problem with ggplot2
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20081120/1faae4b9/attachment.pl>
2013 May 08
1
Dependencies of Imports not attached?
Encountered an error in scripting, which can be reproduced using Rscript as
follows:
$ Rscript -e "library(httr); handle('http://cran.r-project.org')"
Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) :
  could not find function "getClass"
Calls: handle -> getCurlHandle
or by starting R without the methods package attached:
$
2015 Apr 29
2
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 12:53 PM, Winston Chang <winstonchang1 at gmail.com>
wrote:
> On Tue, Apr 28, 2015 at 3:04 PM, G?bor Cs?rdi <csardi.gabor at gmail.com>
> wrote:
> >
> >
> > E.g. if package 'ggplot2' uses 'stats::density()', and package 'igraph'
> > also defines 'density()', and 'igraph' is on the search
2011 Dec 23
1
ggplot2: behaviour with empty datasets
For example, prepare like this
> df.0 <- data.frame(x = 0, y = 0, note = "1")
> df.1 <- subset(df.0, note == "1")
> df.2 <- subset(df.0, note == "2")
Then a call to
> ggplot() + aes(x = x, y = y) +
>   geom_point(data = df.1) + geom_point(data = df.2)
produces the error
> Error in eval(expr, envir, enclos) : object 'x' not found