Displaying 20 results from an estimated 69 matches for "attachnamespace".
2024 Apr 11
1
[External] Re: Repeated library() of one package with different include.only= entries
...> I think a far better approach to solve Michael's problem is simply to use
> fac2sparse <- Matrix::fac2sparse
This does not fully simulate attachment, e.g. running package hooks &
resolving Depends.
> ?library could also mention using detach() followed by library() or
> attachNamespace() with a new include.only specification.
This is the "quite hard to accomplish" I alluded to, admittedly I hadn't
forced myself to write it all out -- maybe it's not as bad as all that.
After some iterations, today I think we'd want to do...
modify_attach = function(pkg, new...
2024 Apr 15
1
[External] Re: Repeated library() of one package with different include.only= entries
...se <- Matrix::fac2sparse
> This does not fully simulate attachment, e.g. running package hooks &
> resolving Depends.
(indeed; as library() is really about search() patch attchment)
>> ?library could also mention using detach() followed by library() or
>> attachNamespace() with a new include.only specification.
> This is the "quite hard to accomplish" I alluded to, admittedly I hadn't
> forced myself to write it all out -- maybe it's not as bad as all that.
> After some iterations, today I think we'd want to do...
&g...
2025 May 23
1
FR: improve "use" function
...ame <- paste0("package:", package)
previously_attached <- ls(name, all.names = TRUE)
if (!all(include.only %in% previously_attached)) {
detach(name, character.only = TRUE)
include.only <- union(include.only, previously_attached)
attachNamespace(package, include.only = include.only)
} # else no need to detach and re-attach
} else {
attachNamespace(package, include.only = include.only)
}
invisible(TRUE)
}
```
On Fri, May 23, 2025 at 3:40?AM Roland Fu? via R-devel <
r-devel at r-project.org> wrote:
> He...
2025 May 27
1
FR: improve "use" function
...t;> Trevor Davis writes:
Thanks.
This is really about what
library("foo", include.only = "fun2")
should do if package 'foo' was already attached and the include.only
contradicts a previous specification.
In principle, one could look into allowing the underlying
attachNamespace() to add more exports into the package environment (the
'only' in 'include.only' might suggest differently, but we would have to
live with that). However, using detach/attach is not the right way of
doing this, as it possibly modifies the search path and may trigger
hooks that shou...
2013 Jan 15
1
Can not load Rcmdr
I am getting the error message:
> library(Rcmdr)
Loading required package: car
Loading required package: MASS
Loading required package: nnet
Error : .onAttach failed in attachNamespace() for 'Rcmdr', details:
call: structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj")
error: [tcl] invalid command name "image".
Error: package/namespace load failed for 'Rcmdr'
If I try and load tcltk separatel...
2005 Sep 21
5
error when loading rwinedt
the error msg is:
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in if (RWinEdtVersion) RWinEdtVersion <- scan(file.path(InstallRoot, :
argument is of length zero
Error: .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'RWinEdt'
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status alpha
major 2
minor 2.0
year 2005...
2010 Feb 04
3
mgcv problem
...load. I proved to eliminated and reinstalled but always obtain the same message:
> library (mgcv)
This is mgcv 1.6-1. For overview type `help("mgcv-package")'.
Error in runif(1) :
.Random.seed is not an integer vector but of type 'list'
Error : .onAttach non riuscito in attachNamespace
Errore: caricamento pacchetto/namespace fallito per 'mgcv'
I appreciate very much your help
Rosa.
[[alternative HTML version deleted]]
2009 Feb 13
2
loading mgcv package
Hi ,When I try to load the 'mgcv" package, often, but not always, get this
error message. What am I doing wrong?
__________________
This is mgcv 1.4-1.1
Error in runif(1) :
.Random.seed is not an integer vector but of type 'list'
Error : .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'mgcv'
-----------------------------------------
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk@gmail.com,vchetty@bu.edu
[[alternative HTML version deleted]]
2010 May 11
2
RWinEdt in WinEdt 6
I'm having difficulty installing RWinEdt in WinEdt6. I receive the following
message:
Error : .onAttach failed in attachNamespace() for 'RWinEdt', details:
call: getWinEdt()
error:
WinEdt is not installed properly.
I have tried following the manual instructions in the readme.txt without
success. I receive the following message:
WinEdt's Initialization File "C:\Program Files (x86)\WinEdt Team\WinEdt
6\R...
2025 May 27
1
FR: improve "use" function
...This is really about what
>
> library("foo", include.only = "fun2")
>
> should do if package 'foo' was already attached and the include.only
> contradicts a previous specification.
>
> In principle, one could look into allowing the underlying
> attachNamespace() to add more exports into the package environment (the
> 'only' in 'include.only' might suggest differently, but we would have to
> live with that). However, using detach/attach is not the right way of
> doing this, as it possibly modifies the search path and may trigger
&...
2009 Feb 10
3
tcltk, tcltk2, Rcmdr, Mac OS X
...try to install Rcmdr the following happens:
----------------------------------
> library(Rcmdr)
Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class =
"tclObj") :
[tcl] invalid command name "font".
Error : .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'Rcmdr'
----------------------------------
I wondered if this is because there is no "tcltk" package installed. So I
tried:
----------------------------------
> install.packages("tcltk")
Warning in install.packages(&quo...
2011 Mar 01
2
problems with playwith
...dynamic library, attempting to install it.
Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error : .onAttach failed in attachNamespace() for 'gWidgetsRGtk2', details:
call: .Call(name, ..., PACKAGE = PACKAGE)
error: C symbol name "S_gtk_icon_factory_new" not in DLL for package "RGtk2"
Error: package 'gWidgetsRGtk2' could not be loaded
>
> Sys.getenv("PATH")...
2010 Nov 16
2
Playwith-problem with loading
...tes (7.5 Mb)
opened URL
downloaded 7.5 Mb
Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Error : .onAttach failed in attachNamespace() for 'gWidgetsRGtk2', details:
call: .Call(name, ..., PACKAGE = PACKAGE)
error: C symbol name "S_gtk_icon_factory_new" not in DLL for package "RGtk2"
Error: package 'gWidgetsRGtk2' could not be loaded
>
2006 Feb 16
1
error loading RWinEdt
...ackage descriptions
> library(RWinEdt)
Error in getWinEdt() :
WinEdt is not installed properly.
Either reinstall WinEdt or install R-WinEdt manually as described in the
ReadMe
In addition: Warning message:
package 'RWinEdt' was built under R version 2.2.1
Error: .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'RWinEdt'
[[alternative HTML version deleted]]
2006 May 26
1
I cannot load the package "Rcmdr"
...uestion?
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: tcltk
Loading required package: car
Error in parse(file, n, text, prompt) : syntax error in "*"
Error: .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'Rcmdr'
[[alternative HTML version deleted]]
2010 Feb 04
1
mgcv problem to load
...y neither the last is loadable in my new R 2.10 version. Th emessage on the screen is the following:
This is mgcv 1.6-1. For overview type `help("mgcv-package")'.
Error in runif(1) :
.Random.seed is not an integer vector but of type 'list'
Error : .onAttach non riuscito in attachNamespace
Errore: pacchetto 'mgcv' non caricato
Please I appreciate very much your help
Rosa.
[[alternative HTML version deleted]]
2011 Jul 06
1
The BiodiversityR can't work
Sourced: BiodiversityGUI.R
Error : .onAttach failed in attachNamespace() for 'Rcmdr', details:
call: get(Menus[m, 5])
error: object 'chisquareDistributionPlot' not found
Error in BiodiversityRGUI() : needs Rcmdr
Hi Guys,
I am from China, I wanna use Biodiversity R, but it can't work.
Can somebody help me?
Thanks
--
View this message in...
2011 Jul 11
1
EXTERNAL: Re: subset with aggregate key
...t library fails (it builds successfully).
I'm currently looking into why. Error output looks something similar to:
> library(data.table)
Error in .makeMessage(..., domain = domain, appendLF = appendLF) :
could not find function "packageVersion"
Error : .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'data.table'
I googled around a bit and there is mention of a bug in packageVersion
but there was no solution that I found. Is this something that is easily
overcome?
Thanks,
Jesse
2007 May 17
1
trouble installing RWinEdt
...ve downloaded locally.
It installs fine, but then I get an error message with library(RWinEdt) as
follows:
> library(RWinEdt)
Error in getWinEdt() :
WinEdt is not installed properly.
Either reinstall WinEdt or install R-WinEdt manually as described in the
ReadMe
Error : .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'RWinEdt'
It seems that other users have encountered the same problem, at least in
2005, but wasn't sure if there's a more current solution.
Thanks,
Andrew
[[alternative HTML version deleted]]
2008 Jul 12
1
Installing RWinEdt
...t:
> library("RWinEdt")
Error in file(file, "r") : cannot open the connection
In addition: Warning message:
In file(file, "r") :
cannot open file 'F:\Program Files (x86)\WinEdt Team\WinEdt\R.ver': No such file or directory
Error : .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'RWinEdt'
Any ideas on how I can install this package?
Thank you.
Kevin