diff options
Diffstat (limited to 'm4/ax_r_package.m4')
-rw-r--r-- | m4/ax_r_package.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_r_package.m4 b/m4/ax_r_package.m4 index 9982652..f24b32a 100644 --- a/m4/ax_r_package.m4 +++ b/m4/ax_r_package.m4 @@ -40,7 +40,7 @@ AC_DEFUN([AX_R_PACKAGE], [ AC_MSG_CHECKING([R package PKG VERSION]) - TEST=$( $R --silent --vanilla -e 'if(system.file(package="PKG") == "") stop("not found")' 2>/dev/null ) + TEST=$( $R --silent --vanilla -e 'if(is.na(packageDescription("PKG"))) stop("not found")' 2>/dev/null ) AS_IF([test $? -eq 0], [], [ AC_MSG_RESULT([no]) AC_MSG_ERROR([R package PKG not found.]) |