# Test C compiler ccode <- 'extern "C" {void test() {double x=2.1; x = x+1;}}\n' cat(file="R_Cpp_Test.cpp", ccode) system("R CMD shlib R_Cpp_Test.cpp") # Test FORTRAN compiler Note: spaces are important in fcode below fcode <- ' subroutine bar(n, x) integer n double precision x(n) integer i do 100 i = 1, n x(i) = x(i) ** 2 100 continue end ' cat(file="R_FORTRAN_Test.f", fcode) system("R CMD shlib R_FORTRAN_Test.f") Some are having issues installing pmplots on Metworx.