Skip to content

Commit

Permalink
Merge pull request #260 from DylanCarbone/pull_requests
Browse files Browse the repository at this point in the history
Pull requests
  • Loading branch information
AugustT authored Apr 29, 2024
2 parents df19cd3 + 82f6111 commit 2337f64
Show file tree
Hide file tree
Showing 5 changed files with 270 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
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 2337f64

Please sign in to comment.