This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Bash function to detect if an R command uses an external connection of | |
| # any kind. Designed to be used with R CMD check | |
| function has_external_connection { | |
| DIR=$(mktemp -d) | |
| # Use a local repository so we don't have to make an external connection for | |
| # `available.packages()` | |
| mkdir -p $DIR/src/contrib |