kiwiroy / RLinuxModules

R package that makes linux environment modules available from R
Other
1 stars 1 forks source link

Console output is printed on a single line #6

Open eburgueno opened 3 years ago

eburgueno commented 3 years ago
> library("RLinuxModules")
> module("list")
[1] "Currently Loaded Modulefiles:\n 1) powerPlant/core <S>   5) asub/2.2                9) gdal/2.4.0 <aL>  \n 2) git/2.21.0            6) unixODBC/2.3.0 <aL>    10) proj/5.2.0 <aL>  \n 3) perlbrew/0.76         7) JAGS/4.2.0 <aL>        11) R/3.6.1          \n 4) perl/5.28.0           8) texlive/20151117 <aL>  \n\nKey:\n<module-tag>  <aL>=auto-loaded  <S>=sticky  "

> packageVersion("RLinuxModules")
[1] '0.4'

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS:   /software/statistical/R-3.6.1/lib64/R/lib/libRblas.so
LAPACK: /software/statistical/R-3.6.1/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_NZ.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_NZ.UTF-8        LC_COLLATE=en_NZ.UTF-8    
 [5] LC_MONETARY=en_NZ.UTF-8    LC_MESSAGES=en_NZ.UTF-8   
 [7] LC_PAPER=en_NZ.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RLinuxModules_0.4

loaded via a namespace (and not attached):
[1] compiler_3.6.1    R.methodsS3_1.7.1 R.utils_2.9.2     R.oo_1.23.0      

Same result with R 4.0.0.

kiwiroy commented 3 years ago

Related to #5.

Workaround in the meantime.

library(magrittr)
module("list") %>% cat()