Closed Peprah94 closed 5 months ago
The branch used the latest version of the main branch.
a few changes required:
focalTaxon$include <- FALSE
focalTaxon$include[focalTaxon$taxa %in% focalTaxonIndex] <- TRUE
or even more simply: focalTaxon$include <- focalTaxon$taxa %in% focalTaxonIndex
selectedParameters <- c("aspect",
"elevation",
"precipitation",
"temperature")
and L56-61 in environmentalImport.R would become:
if(!exists("selectedParameters ")){
selectedParameters <- parameters$parameters[parameters$selected]
}
If you make these 3 changes and @samaperrin is happy, it should be good to merge.
Two general comments:
Yeah you've made some updates to an outdated version of the repo, some of these are made redundant by @RRTogunov 's recent updates. It might be worth checking out the latest version and then seeing what still needs to be updated.
I copied the main into my branch before running the code to make these changes. When was the main branch updated?
Kwaku.
On Wed, 7 Feb 2024 at 22:54, Sam Perrin @.***> wrote:
Yeah you've made some updates to an outdated version of the repo, some of these are made redundant by @RRTogunov https://github.com/RRTogunov 's recent updates. It might be worth checking out the latest version and then seeing what still needs to be updated.
— Reply to this email directly, view it on GitHub https://github.com/gjearevoll/BioDivMapping/pull/111#issuecomment-1933001019, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQDCGUDLZVRUKKZVRTSH3DYSPZYBAVCNFSM6AAAAABC4H52SWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZTGAYDCMBRHE . You are receiving this because you authored the thread.Message ID: @.***>
Why have changes been made?
I have made changes to three files. One has to do with selection of environmental covariates and the other has to do with the selection of focal taxon without going through the excel file. The last change has to setting the encoder for the api when working with windows device.
What changes have been made?
pipeline/import/environmentalImport.R: I have added a line of code that makes the user select the environmental covariates without going through the excel file to make the changes.
functions/importRedList.R: The the encoding does not work in windows. I have added lines of code that set the encoding if the system the pipeline is being run on is WINDOWS.
pipeline/import/taxaImport.R: Similar to the environmental covariates, I have added lines of code that makes the user choose the taxa to run without going into the excel file to make changes.
masterScript.R: Some changes showing how the three functions above works.