Re: [R-SIG-Mac] 4.3.1 fails to load

2023-07-23 Thread Duncan Murdoch

On 23/07/2023 11:51 a.m., Carl Witthoft wrote:

Problem fixed but not solved.
On previous updates to R, I always copied all the packages (that aren't
part of the base installation) from the previous version's Library
folder to the new version's Library folder, and then updated when I
actually use them.
The fix for my problem was to run "Update All" before trying to load any
library.


You should run

 update.packages(ask = FALSE, checkBuilt = TRUE)

to make sure all packages are properly installed for 4.3.1.  In general, 
installing a package for x.y.z should let it work in x.y.(z+1), but not 
in x.(y+1).z'.  Errors like that are what "checkBuilt" is looking for. 
I don't know what "Update All" is doing; that's some front end calling R.


Duncan Murdoch



The problem remains not-solved, because (prior to updating everything),
any attempt to run

  >>  library(any_package)

would cause  failure similar to those I posted previously.  So, while
I'm reasonably confident that R 4.3.1 doesn't play nicely with 4.2 -
level libraries, I most definitely cannot point to any particular
library.  The deepest level of the traceback report for  ggplot2 was

1: dyn.load(file, DLLpath = DLLpath, ...)

but when trying to load gmp, get the traceback quoted below.


carl




On 7/22/23 8:09 PM, r-sig-mac-requ...@r-project.org wrote:

Send R-SIG-Mac mailing list submissions to
r-sig-mac@r-project.org

To subscribe or unsubscribe via the World Wide Web, visit
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
or, via email, send a message with subject or body 'help' to
r-sig-mac-requ...@r-project.org

You can reach the person managing the list at
r-sig-mac-ow...@r-project.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of R-SIG-Mac digest..."


Today's Topics:

 1.  R 4.3.1 fails to load (Carl Witthoft)
 2. Re:  R 4.3.1 fails to load (David Winsemius)
 3. Re:  R 4.3.1 fails to load (David Winsemius)
 4. Re:  R 4.3.1 fails to load (Carl Witthoft)
 5. Re:  R 4.3.1 fails to load (Duncan Murdoch)

--

Message: 1
Date: Sat, 22 Jul 2023 16:29:59 -0400
From: Carl Witthoft 
To: "r-sig-mac@r-project.org" 
Subject: [R-SIG-Mac] R 4.3.1 fails to load
Message-ID: 
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Neither R.app Gui nor R from command line will work.
This is 4.3.1 ,  MacOS 13.4  on an x86 (and yes, that's the version I
installed).

Heres the error traceback from the command line:

*** caught segfault ***
address 0x0, cause 'memory not mapped'

Traceback:
1: as.bigz(NA)
2: fun(libname, pkgname)
3: doTryCatch(return(expr), name, parentenv, handler)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatch(fun(libname, pkgname), error = identity)
7: runHook(".onLoad", env, package.lib, package)
8: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]])
9: asNamespace(ns)
10: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc,
.libPaths()), versionCheck = vI[[j]]), i[[2L]], from = package)
11: loadNamespace(package, lib.loc)
12: doTryCatch(return(expr), name, parentenv, handler)
13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
14: tryCatchList(expr, classes, parentenv, handlers)
15: tryCatch({attr(package, "LibPath") <- which.lib.locns <-
loadNamespace(package, lib.loc)env <- attachNamespace(ns, pos = pos,
deps, exclude, include.only)}, error = function(e) {P <- if
(!is.null(cc <- conditionCall(e))) paste(" in", deparse(cc)[1L])
  else ""msg <- gettextf("package or namespace load failed for
%s%s:\n %s", sQuote(package), P, conditionMessage(e))if
(logical.return && !quietly) message(paste("Error:", msg),
domain = NA)else stop(msg, call. = FALSE, domain = NA)})
16: library(cgwtools)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace






___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] 4.3.1 fails to load

2023-07-23 Thread Carl Witthoft

Problem fixed but not solved.
On previous updates to R, I always copied all the packages (that aren't 
part of the base installation) from the previous version's Library 
folder to the new version's Library folder, and then updated when I 
actually use them.
The fix for my problem was to run "Update All" before trying to load any 
library.
The problem remains not-solved, because (prior to updating everything), 
any attempt to run


>>  library(any_package)

would cause  failure similar to those I posted previously.  So, while 
I'm reasonably confident that R 4.3.1 doesn't play nicely with 4.2 - 
level libraries, I most definitely cannot point to any particular 
library.  The deepest level of the traceback report for  ggplot2 was


1: dyn.load(file, DLLpath = DLLpath, ...)

but when trying to load gmp, get the traceback quoted below.


carl




On 7/22/23 8:09 PM, r-sig-mac-requ...@r-project.org wrote:

Send R-SIG-Mac mailing list submissions to
r-sig-mac@r-project.org

To subscribe or unsubscribe via the World Wide Web, visit
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
or, via email, send a message with subject or body 'help' to
r-sig-mac-requ...@r-project.org

You can reach the person managing the list at
r-sig-mac-ow...@r-project.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of R-SIG-Mac digest..."


Today's Topics:

1.  R 4.3.1 fails to load (Carl Witthoft)
2. Re:  R 4.3.1 fails to load (David Winsemius)
3. Re:  R 4.3.1 fails to load (David Winsemius)
4. Re:  R 4.3.1 fails to load (Carl Witthoft)
5. Re:  R 4.3.1 fails to load (Duncan Murdoch)

--

Message: 1
Date: Sat, 22 Jul 2023 16:29:59 -0400
From: Carl Witthoft 
To: "r-sig-mac@r-project.org" 
Subject: [R-SIG-Mac] R 4.3.1 fails to load
Message-ID: 
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Neither R.app Gui nor R from command line will work.
This is 4.3.1 ,  MacOS 13.4  on an x86 (and yes, that's the version I
installed).

   Heres the error traceback from the command line:

*** caught segfault ***
address 0x0, cause 'memory not mapped'

Traceback:
   1: as.bigz(NA)
   2: fun(libname, pkgname)
   3: doTryCatch(return(expr), name, parentenv, handler)
   4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5: tryCatchList(expr, classes, parentenv, handlers)
   6: tryCatch(fun(libname, pkgname), error = identity)
   7: runHook(".onLoad", env, package.lib, package)
   8: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]])
   9: asNamespace(ns)
10: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc,
.libPaths()), versionCheck = vI[[j]]), i[[2L]], from = package)
11: loadNamespace(package, lib.loc)
12: doTryCatch(return(expr), name, parentenv, handler)
13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
14: tryCatchList(expr, classes, parentenv, handlers)
15: tryCatch({attr(package, "LibPath") <- which.lib.locns <-
loadNamespace(package, lib.loc)env <- attachNamespace(ns, pos = pos,
deps, exclude, include.only)}, error = function(e) {P <- if
(!is.null(cc <- conditionCall(e))) paste(" in", deparse(cc)[1L])
 else ""msg <- gettextf("package or namespace load failed for
%s%s:\n %s", sQuote(package), P, conditionMessage(e))if
(logical.return && !quietly) message(paste("Error:", msg),
domain = NA)else stop(msg, call. = FALSE, domain = NA)})
16: library(cgwtools)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace




--
Carl Witthoft
personal: c...@witthoft.com
The Witthoft Group, Consulting
https://witthoftgroup.weebly.com/

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac