Skip to content

Instantly share code, notes, and snippets.

@bhaskarvk
Last active September 8, 2016 22:27
Show Gist options
  • Select an option

  • Save bhaskarvk/8476f3f54a16844f7770b643c1bdb4da to your computer and use it in GitHub Desktop.

Select an option

Save bhaskarvk/8476f3f54a16844f7770b643c1bdb4da to your computer and use it in GitHub Desktop.
Shell Script to get value of every R config flag.
getRConfig() {
echo " R CMD config $1"; R CMD config $1; echo "******************************************************************"; echo
}
(
getRConfig BLAS_LIBS
getRConfig CC
getRConfig CFLAGS
getRConfig CPICFLAGS
getRConfig CPP
getRConfig CPPFLAGS
getRConfig CXX
getRConfig CXXCPP
getRConfig CXXFLAGS
getRConfig CXXPICFLAGS
getRConfig CXX1X
getRConfig CXX1XSTD
getRConfig CXX1XFLAGS
getRConfig CXX1XPICFLAGS
getRConfig DYLIB_EXT
getRConfig DYLIB_LD
getRConfig DYLIB_LDFLAGS
getRConfig F77
getRConfig FFLAGS
getRConfig FLIBS
getRConfig FPICFLAGS
getRConfig FC
getRConfig FCFLAGS
getRConfig FCPICFLAGS
getRConfig JAR
getRConfig JAVA
getRConfig JAVAC
getRConfig JAVAH
getRConfig JAVA_HOME
getRConfig JAVA_LIBS
getRConfig JAVA_CPPFLAGS
getRConfig LAPACK_LIBS
getRConfig LIBnn
getRConfig LDFLAGS
getRConfig OBJC
getRConfig OBJCFLAGS
getRConfig MAKE
getRConfig SAFE_FFLAGS
getRConfig SHLIB_CFLAGS
getRConfig SHLIB_CXXLD
getRConfig SHLIB_CXXLDFLAGS
getRConfig SHLIB_EXT
getRConfig SHLIB_FFLAGS
getRConfig SHLIB_LD
getRConfig SHLIB_LDFLAGS
getRConfig SHLIB_FCLD
getRConfig TCLTK_CPPFLAGS
getRConfig TCLTK_LIBS
) 2>&1 | tee $HOME/R-config.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment