Skip to content

Commit d5a2ff3

Browse files
committed
[GR-15032] [GR-15033] Broken install.packages when native image is installed.
PullRequest: fastr/1995
2 parents 12d5aa2 + d86de43 commit d5a2ff3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

com.oracle.truffle.r.native/run/install_r_native_image

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if [[ $uninstall -eq 1 ]]; then
6363
fi
6464

6565
if [[ $silent -eq 0 ]]; then
66-
echo "This script is going to build a native image of the R runtime and update the R launchers to use that image as the default, i.e., when '--jvm' option is not used."
66+
echo "This script is going to build a native image of the R runtime and update the R launchers to use that image as the default, i.e., when '--jvm' option is not used. You can uninstall the native image by running this script with the 'uninstall' argument. Run this script with '--help' for more details."
6767
echo "The build takes several minutes and needs a minimum of 6GB of RAM and 150MB of free disk space. The computer may lag during the build."
6868
read -p "Are you sure you want to build and install the native image of the R runtime? (Yy/Nn) " -n 1 -r
6969
echo
@@ -78,6 +78,6 @@ cd "$fastr_home/bin"
7878
cp "exec/R" "exec_R.backup"
7979
cp "Rscript" "Rscript.backup"
8080
sed -e '/^## REMOVE FOR NATIVE IMAGE: BEGIN/,/^## REMOVE FOR NATIVE IMAGE: END/d;' "exec_R.backup" | \
81-
sed -e 's|^exec "$JAVA_HOME/bin/java" .*|exec "$R_HOME/bin/RMain" R "${FASTR_INTERNAL_ARGS[@]}" "$@"|' > "exec/R"
81+
sed -e 's|^exec "$JAVA_HOME/bin/java" .*|exec "$R_HOME/bin/RMain" R ${FASTR_INTERNAL_ARGS[@]} "$@"|' > "exec/R"
8282
sed -e '/^## REMOVE FOR NATIVE IMAGE: BEGIN/,/^## REMOVE FOR NATIVE IMAGE: END/d;' "Rscript.backup" | \
83-
sed -e 's|^exec "$JAVA_HOME/bin/java" .*|exec "$R_HOME/bin/RMain" Rscript "${FASTR_INTERNAL_ARGS[@]}" "$@"|' > "Rscript"
83+
sed -e 's|^exec "$JAVA_HOME/bin/java" .*|exec "$R_HOME/bin/RMain" Rscript ${FASTR_INTERNAL_ARGS[@]} "$@"|' > "Rscript"

mx.fastr/mx_fastr_dists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def mx_register_dynamic_suite_constituents(register_project, register_distributi
310310
" ${graalvm_home}/jre/languages/R/bin/install_r_native_image\n\n" +
311311
"The native image is then used by default. Pass '--jvm' flag to the R or Rscript launcher to " +
312312
"use JVM instead of the native image. Note that the native image is not stable yet and is intended for evaluation " +
313-
"purposes and experiments. Some features may not work when the native image is installed, most notably the --polyglot switch. " +
313+
"purposes and experiments. Some features may not work in the native image mode, most notably some Rcpp based packages. " +
314314
"The native image can be uninstalled using the installation script with 'uninstall' argument.\n\n" +
315315
"See http://www.graalvm.org/docs/reference-manual/languages/r for more."
316316
))

0 commit comments

Comments
 (0)