Error during gl.read.dart

77 views
Skip to first unread message

Nelia Perry

unread,
Apr 28, 2025, 5:52:01 PMApr 28
to dartR
Hi all,

I have been having some issues where I get this same error message for lots of different commands that are very common for dartR and dartRverse packages, specifcially whenever I am trying to conert from one object type to another or input data etc. This is the error:
Error in as.vector(data) : no method for coercing this S4 class to a vector

In this specific case, this was the command line that caused the error:
placo_gl<-gl.read.dart(filename = "Placo_DArT_SNP.csv", ind.metafile = "placo_ind_metrics.csv", topskip = 6, lastmetric = 18)

I have tripled checked with multiple people that everything is correct. In fact, with all the same commands and input files, colleagues are not getting the same errors on their computers. I would really appreciate any help troubleshooting! I can provide any other additional information to make it clearer.

Best,
Nelia

Bernd.Gruber

unread,
Apr 28, 2025, 6:47:51 PMApr 28
to da...@googlegroups.com

Hi Nelia

 

Difficult to know what is going on. Can you check

 

library(adegenet)

packageVersion(“adegenet”)

packageVersion(“dartRverse”)

dartRverse_install()

 

and post what you get there.

 

Also maybe try not to use topskip and lastmetric (in theory should work out itself)

 

Cheers, Bernd

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dartr/3b8eb782-4994-46fe-ae95-b19fc38601cdn%40googlegroups.com.

Message has been deleted

Nelia Perry

unread,
Apr 28, 2025, 8:13:44 PMApr 28
to dartR
Here are the results:

> packageVersion("dartRverse") [1] ‘1.0.6’ > packageVersion("adegenet") [1] ‘2.1.11’ > dartRverse_install() Error in dartRverse_install() : could not find function "dartRverse_install"

Bernd.Gruber

unread,
Apr 28, 2025, 8:16:36 PMApr 28
to da...@googlegroups.com

Can you load dartRverse via

 

library(dartRverse)

 

dartRverse_install()

 

and check if that works.

To unsubscribe from this group and stop receiving emails from it, send an email to http://dartr+un...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.

Message has been deleted

Nelia Perry

unread,
Apr 28, 2025, 11:17:00 PMApr 28
to dartR
Yes, here it is. When I was having trouble a few days ago I tried uninstalling all the packages and then reinstalling them (to start fresh) but since then I have not been able to get dartR.spatial or dartR.sexlinked to install again.

> dartRverse_install() dartRverse packages: dartR.base 1.0.5 | CRAN: 1.0.5 | Github: 1.0.5 (main) | 1.0.5 (beta) | 1.0.5 (dev) dartR.data 1.0.8 | CRAN: 1.0.8 | Github: 1.0.8 (main) | 1.0.8 (beta) | 1.0.8 (dev) dartR.sim 0.94 | CRAN: 0.70 | Github: 0.94 (main) | 0.94 (beta) | 0.94 (dev) dartR.popgen 1.0.5 | CRAN: 1.0.0 | Github: 1.0.5 (main) | 1.0.5 (beta) | 1.0.5 (dev) dartR.captive 1.0.2 | CRAN: 1.0.2 | Github: 1.0.2 (main) | 1.0.2 (beta) | 1.0.2 (dev) dartR.spatial --- | CRAN:0.78 | Github: 0.92 (main) | 0.92 (beta) | 0.92 (dev) dartR.sexlinked --- | CRAN:1.0.5 | Github: 1.0.5 (main) | 1.0.5 (beta) | 1.0.5 (dev)

Bernd.Gruber

unread,
May 1, 2025, 10:16:18 PMMay 1
to da...@googlegroups.com

Hi Nelia,

 

Can you make sure have not loaded the dartR package (the legacy one).

 

Via packages (and if selected) unclick it.

 

 

Might be that you use both of the packages and that can cause trouble.

 

Cheers,  Bernd

 

 

 

 

From: da...@googlegroups.com <da...@googlegroups.com> On Behalf Of Nelia Perry
Sent: Tuesday, 29 April 2025 10:32 AM
To: dartR <da...@googlegroups.com>
Subject: Re: [dartR] Error during gl.read.dart

 

Yes, here it is. When I was having trouble a few days ago I tried uninstalling all the packages and then reinstalling them (to start fresh) but since then I have not been able to get dartR.spatial or dartR.sexlinked to install again.

 

> dartRverse_install() dartRverse packages: dartR.base 1.0.5 | CRAN: 1.0.5 | Github: 1.0.5 (main) | 1.0.5 (beta) | 1.0.5 (dev) dartR.data 1.0.8 | CRAN: 1.0.8 | Github: 1.0.8 (main) | 1.0.8 (beta) | 1.0.8 (dev) dartR.sim 0.94 | CRAN: 0.70 | Github: 0.94 (main) | 0.94 (beta) | 0.94 (dev) dartR.popgen 1.0.5 | CRAN: 1.0.0 | Github: 1.0.5 (main) | 1.0.5 (beta) | 1.0.5 (dev) dartR.captive 1.0.2 | CRAN: 1.0.2 | Github: 1.0.2 (main) | 1.0.2 (beta) | 1.0.2 (dev) dartR.spatial --- | CRAN:0.78 | Github: 0.92 (main) | 0.92 (beta) | 0.92 (dev) dartR.sexlinked --- | CRAN:1.0.5 | Github: 1.0.5 (main) | 1.0.5 (beta) | 1.0.5 (dev)

 

On Tuesday, April 29, 2025 at 10:16:36AM UTC+10 Bernd. Gruber wrote:

Can you load dartRverse via

 

library(dartRverse)

 

dartRverse_install()

 

and check if that works.

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.

Nelia Perry

unread,
May 5, 2025, 1:21:21 AMMay 5
to dartR
Hi,

I do not have dartR installed. 

Based on the help I have received, it seems the issue is related to the version of R I have relative to the versions of each package in dartRverse. When using a computer that has a newer version of R and of each package, I am not having any issues. I am working with IT at my institution to make sure these can be updated.

Thank you for all the help!

Best,
Nelia
Reply all
Reply to author
Forward
0 new messages