Skip to content

Commit

Permalink
Add here package to install list
Browse files Browse the repository at this point in the history
* see #10
* also fix bad source file name
  • Loading branch information
jefferis committed May 24, 2020
1 parent 0d773dc commit d5f6384
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions 00-setup/01-installation.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 2 additions & 0 deletions 00-setup/02-packages.R
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 3 additions & 1 deletion 00-setup/03-pyramidalneuron.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d5f6384

Please sign in to comment.