Closed mxochicale closed 5 months ago
Create new repo: https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course
Clone repo git clone https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course
Installing R using the following: https://cran.r-project.org/bin/windows/base/
Using the default settings during the installation of RGUi 4.x.x
From RGui Console, enter the following command:
options(repos = c(
carpentries = "https://carpentries.r-universe.dev/",
CRAN = "https://cran.rstudio.com/"
))
Enter the following command:
remotes::install_github("HealthBioscienceIDEAS/sandpaper", dependencies = TRUE)
Change path from RGUi to the GitHub folder of the medical image registration course. This is done from the Menu list by picking 'File' then 'Change Dir..'
Run the following command to start sandpaper:
sandpaper::build_lesson()
You may notice some package not installed called Pandoc after running the sandpaper command. If so, install Pandoc then run step 8 again. Pandoc installation: https://pandoc.org/installing.html
Hi @jamie-mcclelland
RE: https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/pull/5#issuecomment-2149477503 Let's solve it in this issue as Pull Requests (PRs) are generally for reviewing purposes.
I think you are missing install.packages(c("remotes"), dep =TRUE)
, can you try (which is in step 4 of the linux section)
options(repos = c(
carpentries = "https://carpentries.r-universe.dev/",
CRAN = "https://cran.rstudio.com/"
))
install.packages(c("remotes"), dep =TRUE)
Hi @mxochicale - I have now been able to build the sandpaper lesson for the itksnap exercises, but ran into some issues along the way: steps 1 and 2 (creating and cloning the repo) are missing from the windows instructions I had to do step 7 to install pandocs, but then I had to restart R so it could find pandocs on the path (without restarting it said it still couldn't find it) when I initially built the lesson I was on the master branch so the itksnap exercises were missing - I figures out I needed to switch the branch, and then it built the lesson fine, but this is not currently mentioned in the instructions. I will now review the exercises themselves and provide my comments on the pull request
Setting up sandpaper in Ubuntu 22.04 x64
Steps
git clone https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course
options(repos = c( carpentries = "https://carpentries.r-universe.dev/", CRAN = "https://cran.rstudio.com/" )) install.packages(c("remotes"), dep =TRUE)
remotes::install_github("HealthBioscienceIDEAS/sandpaper", dependencies = TRUE)
this one is taking some 20mins the fist time as it seems is building various packages
Terminal logs
Downloading GitHub repo HealthBioscienceIDEAS/sandpaper@HEAD These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All
2: CRAN packages only
3: None
4: pegboard (0.7.5 -> a32a7836d...) [GitHub] 5: varnish (1.0.2 -> 56d594d27...) [GitHub] 6: curl (4.3.2 -> 5.2.1 ) [CRAN]
7: httr (1.4.2 -> 1.4.7 ) [CRAN]
8: gh (1.3.0 -> 1.4.1 ) [CRAN]
9: covr (3.5.1 -> 3.6.4 ) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 1
The downloaded source packages are in ‘/tmp/Rtmpn94NAu/downloaded_packages’ Downloading GitHub repo carpentries/pegboard@HEAD These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All
2: CRAN packages only
3: None
4: tinkr (0.2.0.9000 -> be564d524...) [GitHub]
Enter one or more numbers, or an empty line to skip updates: 1
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ✔ checking for file ‘/tmp/Rtmpn94NAu/remotes50ddb31b7ca85/HealthBioscienceIDEAS-sandpaper-fb14e02/DESCRIPTION’ ... ─ preparing ‘sandpaper’: ✔ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts (420ms) ─ checking for empty or unneeded directories Omitted ‘LazyData’ from DESCRIPTION ─ building ‘sandpaper_0.16.4.tar.gz’
Installing package into ‘/home/mxochicale/R/x86_64-pc-linux-gnu-library/4.4’ (as ‘lib’ is unspecified)
sandpaper::create_lesson("~/Desktop/medical-registration/Medical-Image-Registration-Short-Course")
LOGS
set_episodes(path = path, order = ep, write = TRUE) • Edit '/home/mxochicale/Desktop/medical-registration/Medical-Image-Registration-Short-Course/episodes/introduction.Rmd' ✔ First episode created in /home/mxochicale/Desktop/medical-registration/Medical-Image-Registration-Short-Course/episodes/introduction.Rmd ℹ Workflows up-to-date! ✔ Lesson successfully created in ~/Desktop/medical-registration/Medical-Image-Registration-Short-Course ✔ Setting active project to '/home/mxochicale/Desktop/medical-registration/Medical-Image-Registration-Short-Course' ✔ Changing working directory to '/home/mxochicale/Desktop/medical-registration/Medical-Image-Registration-Short-Course/' ~/Desktop/medical-registration/Medical-Image-Registration-Short-Course
Setting up config file in sandpaper template:
Set up GitHub Pages
/root
and click save