diff --git a/build/publish_docs.ps1 b/build/publish_docs.ps1 index 6f8acf27d..4243f466a 100644 --- a/build/publish_docs.ps1 +++ b/build/publish_docs.ps1 @@ -10,13 +10,17 @@ if ($l -eq 0) { $commit_hash = git show -s --format="%H" -Push-Location -Set-Location "$PSScriptRoot/../_site" +try { + Push-Location + Set-Location "$PSScriptRoot/../_site" -Write-Output "Deploying to netlify" + Write-Output "Deploying to netlify" -netlify deploy --dir=. --message="Docs deploy for https://github.com/QutEcoacoustics/audio-analysis/commit/$commit_hash" --prod --site="078c0d59-a45a-4458-bd92-2d7c05f44bb6" --json + netlify deploy --dir=. --message="Docs deploy for https://github.com/QutEcoacoustics/audio-analysis/commit/$commit_hash" --prod --site="078c0d59-a45a-4458-bd92-2d7c05f44bb6" --json -Write-Output "Deploying complete" -Pop-Location \ No newline at end of file + Write-Output "Deploying complete" +} +finally { + Pop-Location +} \ No newline at end of file diff --git a/docs/basics/using_r.md b/docs/basics/using_r.md index cf9f624c5..05d83f3a6 100644 --- a/docs/basics/using_r.md +++ b/docs/basics/using_r.md @@ -13,7 +13,7 @@ Using R is just a wrapper around this process. It might be helpful to think of _R interactive_ as a shell (like PowerShell or Bash) and RStudio as a terminal. -Just using R to invoke AP.exe is adds a lot of complexity. +Just using R to invoke AP.exe adds a lot of complexity. However, you may want to do this if you need to: 1. to integrate an _AP.exe_ analysis in with the rest of your R analysis