Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Machine_float not exported #35

Open
david-cortes opened this issue Dec 7, 2020 · 2 comments
Open

Machine_float not exported #35

david-cortes opened this issue Dec 7, 2020 · 2 comments

Comments

@david-cortes
Copy link
Contributor

I see the readme says that .Machine_float should show the information about float type for my machine, but it doesn't seem to be an exported function from the package. None of the following succeeds:

.Machine_float
float::.Machine_float
float:::.Machine_float
Machine_float
float::Machine_float
float:::Machine_float
@dselivanov
Copy link
Contributor

.Call(float:::R_machine_spm)

@wrathematics
Copy link
Owner

I made it a dataset at some point to satisfy CRAN policies. It should be available if the package is loaded. You can also do

data(Machine_float, package="float")
Machine_float
## $float.eps
## [1] 1.192093e-07
## 
## $float.xmin
## [1] 1.175494e-38
## 
## $float.xmax
## [1] 3.402823e+38
## 
## $float.base
## [1] 2
## 
## $float.digits
## [1] 24
## 
## $float.exponent
## [1] 8
## 
## $float.min.exp
## [1] -125
## 
## $float.max.exp
## [1] 128

I will try to fix the docs soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants