Skip to content

Commit

Permalink
Merge branch 'master' into pull_requests
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanCarbone committed Apr 27, 2024
2 parents 5b0cb1c + 47e28a6 commit 1df0fb1
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 421 deletions.
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
Expand Down
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Imports:
ggplot2,
LearnBayes,
plyr,
mockr,
reshape2,
rmarkdown,
sp,
Expand Down
8 changes: 8 additions & 0 deletions R/detect_os_compat.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Detect whether the user is on a mac or Windows OS (compatable with Frescalo) or a different OS. This function is needed to work with Mockery functions in tests
detect_os_compat <- function() {
if (Sys.info()["sysname"] %in% c("Darwin", "Windows")) {
return(TRUE)
} else {
return(FALSE)
}
}
5 changes: 5 additions & 0 deletions R/run_fresc_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ function(
Plot=TRUE

){

if (!detect_os_compat()) {
stop("Apologies, Frescalo is currently only avaiable on mac and Windows operating systems.")
}

# BODY OF FUNCTION
# Print status to screen
cat("\nSAVING DATA TO FRESCALO WORKING DIRECTORY\n",rep("*",20),"\n\n", sep="")
Expand Down
171 changes: 0 additions & 171 deletions tests/testthat/testerrorChecks.R

This file was deleted.

Loading

0 comments on commit 1df0fb1

Please sign in to comment.