Displaying 12 results from an estimated 12 matches for "getrequiredpackages2".
2018 Jul 24
4
Library lib.loc Option Ignored for Dependencies
...gt; Not sure whether it is the same issue as was raised here:
> https://stat.ethz.ch/pipermail/r-devel/2010-October/058729.html
> but in any case perhaps the problem could partially be remedied on line
> 245 of src/library/base/R/library.R by passing the lib.loc to
> .getRequiredPackages2() ...here is a patch (untested)
> Index: src/library/base/R/library.R
> ===================================================================
> --- src/library/base/R/library.R??? (revision 74997)
> +++ src/library/base/R/library.R??? (working copy)
> @@ -242,7 +24...
2018 Jul 25
1
Library lib.loc Option Ignored for Dependencies
...here:
>> ???? > https://stat.ethz.ch/pipermail/r-devel/2010-October/058729.html
>>
>> ???? > but in any case perhaps the problem could partially be remedied
>> on line
>> ???? > 245 of src/library/base/R/library.R by passing the lib.loc to
>> ???? > .getRequiredPackages2() ...here is a patch (untested)
>>
>> ???? > Index: src/library/base/R/library.R
>> ???? >
>> ===================================================================
>> ???? > --- src/library/base/R/library.R??? (revision 74997)
>> ???? > +++ src/library...
2018 Jul 21
3
Library lib.loc Option Ignored for Dependencies
>>>>> Benjamin Tyner
>>>>> on Fri, 20 Jul 2018 19:42:09 -0400 writes:
> Here's a trick/workaround; if lib.loc is the path to your
> library, then prior to calling library(),
>> environment(.libPaths)$.lib.loc <- lib.loc
Well, that is quite a "trick" -- and potentially a pretty
dangerous one, not intended when making
2018 Jul 24
0
Library lib.loc Option Ignored for Dependencies
...the same issue as was raised here:
> > https://stat.ethz.ch/pipermail/r-devel/2010-October/058729.html
>
> > but in any case perhaps the problem could partially be remedied on line
> > 245 of src/library/base/R/library.R by passing the lib.loc to
> > .getRequiredPackages2() ...here is a patch (untested)
>
> > Index: src/library/base/R/library.R
> > ===================================================================
> > --- src/library/base/R/library.R??? (revision 74997)
> > +++ src/library/base/R/library.R??? (working...
2018 Jul 21
0
Library lib.loc Option Ignored for Dependencies
Not sure whether it is the same issue as was raised here:
https://stat.ethz.ch/pipermail/r-devel/2010-October/058729.html
but in any case perhaps the problem could partially be remedied on line
245 of src/library/base/R/library.R by passing the lib.loc to
.getRequiredPackages2() ...here is a patch (untested)
Index: src/library/base/R/library.R
===================================================================
--- src/library/base/R/library.R??? (revision 74997)
+++ src/library/base/R/library.R??? (working copy)
@@ -242,7 +242,7 @@
???????????????????? pos <- 2
???...
2012 Mar 22
5
Ubuntu Lucid, R 2.14.2, and ggplot2
...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 halted
Here is what I did to ensure the packages were up-to-date:
$ sudo apt-get update
$ sudo apt-get install r-base r-base-core r-cran-ggplot2 r-cran-proto
Here is what my sources list and dpkg list looks like:
$ cat /etc/apt/sources.list.d/r-cran.list
deb http://cran...
2010 Oct 05
0
library: loading of required packages and argument 'lib.loc'
...thing like the following:
Loading required package: B
Error: package 'B' could not be loaded
In addition: Warning message:
In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc =
lib.loc) :
there is no package called 'B'
In function library there the call '.getRequiredPackages2(pkgInfo)'
loads the required packages but do not pass the argument lib.loc
(whereas .getRequiredPackages2 has an argument for this).
I know a quick work around for this is to put './lib' into .libPaths but
it would be nice if library() could do it locally (e.g. pass the
argument), w...
2023 Jan 09
1
Shouldn't "Loading" be "Attaching" when referring to library() calls?
...;s certainly ambiguity in the internal variable names referenced
above -- in require, we see
loaded <- paste0("package:", package) %in% search()
https://github.com/r-devel/r-svn/blob/4198a2941b702d965bb2374c2b908f48c369f40a/src/library/base/R/library.R#L680
Whereas in library() [via .getRequiredPackages2()] we see
attached <- paste0("package:", pkg) %in% search()
https://github.com/r-devel/r-svn/blob/4198a2941b702d965bb2374c2b908f48c369f40a/src/library/base/R/library.R#L931
Mike C
2015 May 09
1
PATCH: library(..., quietly=TRUE) still outputs "Loading required package: ..." (forgot to pass down 'quietly')
Calling library(..., quietly=TRUE) may still output:
Loading required package: <other pkg>
in some cases, e.g.
> library("R.utils", quietly=TRUE)
Loading required package: R.methodsS3
[...]
I traced this to base:::.getRequiredPackages2(), which forgets to pass
'quietly' to an internal library() call:
if (!attached) {
if (!quietly)
packageStartupMessage(gettextf("Loading required package: %s",
pkg), domain = NA)
library(pkg, character.only = TRUE, logical.return = TRUE,
lib.loc...
2023 Jan 10
1
Shouldn't "Loading" be "Attaching" when referring to library() calls?
...8a2941b702d965bb2374c2b908f48c369f40a/src/library/base/R/library.R#L680
again, historical: require() exists for considerably longer
than namespaces.
I think we should at least change the message printed by
require() and library() you mentioned above.
Martin
> Whereas in library() [via .getRequiredPackages2()] we see
> attached <- paste0("package:", pkg) %in% search()
> https://github.com/r-devel/r-svn/blob/4198a2941b702d965bb2374c2b908f48c369f40a/src/library/base/R/library.R#L931
> Mike C
2010 Apr 12
1
problems on JGR package and demo() function in Ubuntu linux
...;org/rosuda/iplots/Framework") :
java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
Error: package 'iplots' could not be loaded
> traceback()
3: stop(gettextf("package '%s' could not be loaded", pkg), call. = FALSE,
domain = NA)
2: .getRequiredPackages2(pkgInfo)
1: library(JGR)
3. problem 2: demo() just can return a blank window-board
-----------------------------------------------------------------------------------------------------------
> demo(graphics)
demo(graphics)
---- ~~~~~~~~
Type <Return> to start :
> r...
2008 Oct 29
0
Package arm
...ace(package, c(which.lib.loc, lib.loc),
keep.source = keep.source) dataPath <- file.path(which.lib.loc,
package, "data") env <- attachNamespace(ns, pos = pos, dataPath =
dataPath)})
9: library(pkg, character.only = TRUE, logical.return = TRUE,
lib.loc = lib.loc)
10: .getRequiredPackages2(pkgInfo)
11: library(arm)
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:
Can anyone please advise?
Erica Donnelly-Swift
SAHRU
Department of Public Health & Primary Care
Trinity Coll...