[Basta-users] R version to use for BaSTA?
Owen R. Jones
jones at biology.sdu.dk
Tue Oct 24 09:58:27 CEST 2023
Hi Mark,
I built the attached version from source on my machine running R 4.3.1.
It should work for you. Otherwise, you could build it from source on your own computer.
Here’s how to do that…
You should visit the GitHub site for the package: https://github.com/fercol/BaSTA
To install an R package from the source within a GitHub repository, you'd typically use the `devtools` package in R to install directly from GitHub. However, in this case, the package is contained within a subfolder inside the repository so `devtools::install_github()` won't work as expected.
Here's how you can manually install the package:
1) Download the Folder: Download the specific folder containing the R package (in this case, it is the pkg folder) to your computer.
2) Set Working Directory: In RStudio, navigate to the directory where the package folder resides using setwd().
setwd("/path/to/package_folder/pkg")
3) Install Package: Use `install.packages()` with the `repos = NULL` and `type = "source"` parameters. Set the path as ".", to indicate that you are currently in the package directory (pkg).
install.packages(".", repos = NULL, type = "source")
4) Load Package: Finally, load the installed package using library(BaSTA)
I hope this helps!
Best wishes,
Owen
--
Owen R. Jones
Associate Professor
Faculty of Science
Department of Biology
CPop Biology
T
+45 65 50 27 91<tel:+4565502791>
jones at biology.sdu.dk<mailto:jones at biology.sdu.dk>
www.sdu.dk/ansat/jones<https://www.sdu.dk/ansat/jones>
University of Southern Denmark
Campusvej 55
DK-5230 Odense M
www.sdu.dk<https://www.sdu.dk/>
[signature_3077961394]
From: Basta-users <basta-users-bounces at lists.r-forge.r-project.org> on behalf of "Brown, Mark" <Mark.Brown at rhul.ac.uk>
Date: Saturday, 21 October 2023 at 02:12
To: "basta-users at lists.r-forge.r-project.org" <basta-users at lists.r-forge.r-project.org>
Subject: [Basta-users] R version to use for BaSTA?
You don't often get email from mark.brown at rhul.ac.uk. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Hi Fernando,
I just went to upload BaSTA to R for the first time, via the archive as it’s been removed from the CRAN repository. I went for the most recent version (BaSTA_1.9.5.tar.gz<https://cran.r-project.org/src/contrib/Archive/BaSTA/BaSTA_1.9.5.tar.gz>) and got this error message:
Warning in install.packages :
package ‘BaSTA’ is not available for this version of R
I’m using R 4.3.1 Beagle Scouts. Which version of R should I download to be able to install and use BaSTA? Sorry if the answer is obvious – I’m a fairly new R user.
Thanks,
Mark
This email, its contents and any attachments are intended solely for the addressee and may contain confidential information. In certain circumstances, it may also be subject to legal privilege. Any unauthorised use, disclosure, or copying is not permitted. If you have received this email in error, please notify us and immediately and permanently delete it. Any views or opinions expressed in personal emails are solely those of the author and do not necessarily represent those of Royal Holloway, University of London. It is your responsibility to ensure that this email and any attachments are virus free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/basta-users/attachments/20231024/fa64018b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1389 bytes
Desc: image001.png
URL: <http://lists.r-forge.r-project.org/pipermail/basta-users/attachments/20231024/fa64018b/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BaSTA_1.9.5.tar.gz
Type: application/x-gzip
Size: 226066 bytes
Desc: BaSTA_1.9.5.tar.gz
URL: <http://lists.r-forge.r-project.org/pipermail/basta-users/attachments/20231024/fa64018b/attachment-0001.bin>
More information about the Basta-users
mailing list