Skip to content

Commit

Permalink
fix DCM test
Browse files Browse the repository at this point in the history
  • Loading branch information
KevWindows committed Jan 13, 2025
1 parent 32dd165 commit bb44418
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions lib/providers/pty.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,21 @@ final ptyProvider = StateProvider<Pty>((ref) {
/// Linux and MacOS desktops initiate R simply through the R command. Windows
/// does an R.exe.
// Rewrite code to remove nesting to pass the DCM test.

String get shell {
return Platform.isWindows
? 'R.exe'
: Platform.isMacOS
? '/usr/local/bin/R'
: Platform.isAndroid
// 20250113 gjw Trying a UserLand install of R on Android.
? '/data/data/tech.ula/files/support/busybox run-parts /data/data/tech.ula/files/support/executables -- /usr/bin/R'
: '/usr/bin/R';
if (Platform.isWindows) {
return 'R.exe';
}

if (Platform.isMacOS) {
return '/usr/local/bin/R';
}

if (Platform.isAndroid) {
// 20250113 gjw Trying a UserLand install of R on Android.
return '/data/data/tech.ula/files/support/busybox run-parts /data/data/tech.ula/files/support/executables -- /usr/bin/R';
}

return '/usr/bin/R';
}

0 comments on commit bb44418

Please sign in to comment.