Articles

Affichage des articles du août, 2022

To have names of months in English and not in current langage version of R

 > Sys.setlocale(category = "LC_TIME", locale="en_GB.UTF-8") [1] "en_GB.UTF-8"  > x <- seq(from=as.Date("2000-04-01"), length.out=100, by=1)  > y <- rnorm(length(x), 5,2)  > plot(x, y)  > Sys.setlocale(category = "LC_TIME", locale="") [1] "fr_FR.UTF-8"

To install spam package in MacOSX

 To install spam package in MacOSX, I have been forced to do: sudo ln -s /usr/local/opt/gcc/lib/gcc/current /usr/local/gfortran/lib  to prevent an error: ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0' ld: warning: directory not found for option '-L/usr/local/gfortran/lib' ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0' ld: warning: directory not found for option '-L/usr/local/gfortran/lib' ld: library not found for -lgfortran clang: error: linker command failed with exit code 1 (use -v to see invocation)