How to find the R architecture i.e. 32 bit or 64 bit getting used on unix?

I am trying to install a package and that requires some info on R architecture in use i.e. 32 bit or 64 bit.
When I am using following command it is giving me 64 bit:
system('bootinfo -y')

With other commands like
.Platform$r_arch o/p is ""
R.version$arch o/p is powerpc

When I start R i.e. when I run 'R' command, during startup it correctly tells the version i.e. 64-bit or 32-bit depending on the R version I am using.
/bar/foo> sudo R

R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: powerpc-ibm-aix6.1.9.0 (64-bit)

Can someone please help with the command used to get the above "Platform" detail during R setup so that I can use the same for my own script?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.