diff --git a/00-setup/01-installation.R b/00-setup/01-installation.R index 94abb95..1d08c86 100644 --- a/00-setup/01-installation.R +++ b/00-setup/01-installation.R @@ -3,6 +3,7 @@ if(!require("natmanager")) install.packages("natmanager") # See http://natverse.org/install/ for details / troubleshooting natmanager::install("natverse") +if(!require("here")) install.packages("here") if(!require("ggpubr")) install.packages("ggpubr") if(!require("reshape2")) install.packages("reshape2") if(!require("catnat")) remotes::install_github("jefferislab/catnat") diff --git a/00-setup/02-packages.R b/00-setup/02-packages.R index 6c4785b..ad8b5cf 100644 --- a/00-setup/02-packages.R +++ b/00-setup/02-packages.R @@ -1,5 +1,7 @@ # load the natverse, which includes packages like nat, nat.nblast, etc. library(natverse) + +# additional packages that we will use in these examples library(catnat) library(ggpubr) library(reshape2) diff --git a/00-setup/03-pyramidalneuron.R b/00-setup/03-pyramidalneuron.R index fea9c50..f534c7a 100644 --- a/00-setup/03-pyramidalneuron.R +++ b/00-setup/03-pyramidalneuron.R @@ -7,7 +7,9 @@ # First of all, we need to load the packages we will be using # Make sure the location of the present R file is your working directory # See getwd() -source("01-packages.R") +setwd(here::here("00-setup")) + +source("02-packages.R") # Now let's read in that .swc file neuron = read.neuron("data/test/axon_traces_27_06_19_s4_c7_Pom.traces")