From ccberry @ending from uc@d@edu  Tue May  8 00:16:15 2018
From: ccberry @ending from uc@d@edu (Berry, Charles)
Date: Mon, 7 May 2018 22:16:15 +0000
Subject: [Rd] BUG in .col(  c(1, 1) ) ?
Message-ID: <AD63FFC3-BDC8-4C5A-B5FE-695D6B29C3F9@ucsd.edu>

I would have expected coercion to an integer vector or at least a complaint that the user did not provide a valid matrix dimension.

> .col(c(1,1))
Error in .col(c(1, 1)) : 
  a matrix-like object is required as argument to 'col'
> .col(c(1L,1L))
     [,1]
[1,]    1
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.4

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

loaded via a namespace (and not attached):
[1] compiler_3.5.0
> 

HTH,

Chuck

p.s. Thanks for adding .col()


[Rd] BUG in .col( c(1, 1) ) ?
Berry, Charles