ggplot2 library not working

227 views
Skip to first unread message

Sara Ferrando

unread,
Nov 5, 2021, 10:16:44 AM11/5/21
to ggplot2
Hi everyone,
I used ggplot2 before.
Now I downloaded and installed the new version or R

R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)

I installed ggplot2
> install.packages("ggplot2")
and then I load it
> library (ggplot2)
and the error message (in Italian) was:

Errore: caricamento pacchetto o namespace fallito per ‘ggplot2’:
 .onLoad fallito in loadNamespace() per 'vctrs', dettagli:
  chiamata: run_on_load()
  errore: non trovo la funzione "run_on_load"

And it sounds more or less like:

Error: package loading or namespace failed for ‘ggplot2’:
 .onLoad failed in loadNamespace() for 'vctrs', details:
  call: run_on_load()
  error: function "run_on_load" not found

May someone help me to understand what I need to do? Many thanks in advance.
Sara

jcred...@gmail.com

unread,
Nov 5, 2021, 10:30:29 AM11/5/21
to Sara Ferrando, ggplot2
Dear Sara.

I cannot reproduce your problem in Windows 10 with the same configuration. Maybe it is something related to the Mac version?

Regards,


--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ggplot2/34208ec1-3e7e-4f90-bc10-d6f22a1857a9n%40googlegroups.com.

Sara Ferrando

unread,
Nov 7, 2021, 10:10:12 AM11/7/21
to jcred...@gmail.com, ggplot2
Dear Julio,
without a real understanding of the problem, I tried to install the vctrs package. And now it works.
Sorry for bothering, I was pretty desperate because I used ggplot2 fine until a couple of weeks ago.
Many thanks for your answer.
Best
Sara
--
Sara Ferrando 
PhD, Associate Professor
University of Genoa
DiSTAV
Viale Benedetto XV 5
I-16132 Italy

Phone +39 328 4466916
Reply all
Reply to author
Forward
0 new messages