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

"R_frb" not available for .C() for package "FRB" #1

Open
guhjy opened this issue Oct 21, 2017 · 3 comments
Open

"R_frb" not available for .C() for package "FRB" #1

guhjy opened this issue Oct 21, 2017 · 3 comments

Comments

@guhjy
Copy link

guhjy commented Oct 21, 2017

a <- lmrob(LNOx ~ LNOxEm + sqrtWS, data=NOxEmissions)
set.seed(123)
tmp <- frb(lmrob.object=a, nboot=1000, return.coef=FALSE)
Error in .C("R_frb", as.double(xx), as.double(yy), as.double(w), as.integer(n), :
"R_frb" not available for .C() for package "FRB"

@msalibian
Copy link
Owner

@guhjy I can't reproduce the error. I just re-installed FRB and ran the above without problems (output below). Did "install_github" build the package properly when your last ran it?

library(devtools)
install_github("msalibian/FRB")
library(FRB)
library(robustbase)
data(NOxEmissions)
a <- lmrob(LNOx ~ LNOxEm + sqrtWS, data=NOxEmissions)
set.seed(123)
( tmp <- frb(lmrob.object=a, nboot=1000, return.coef=FALSE) )
              [,1]          [,2]          [,3]
[1,]  0.0029529150 -3.911259e-04  6.996540e-05
[2,] -0.0003911259  5.827418e-05 -4.159314e-05
[3,]  0.0000699654 -4.159314e-05  1.786090e-04

@guhjy
Copy link
Author

guhjy commented Oct 22, 2017 via email

@msalibian
Copy link
Owner

  1. What to do if two packages have the same name?
    Thanks for pointing this out. I think I will need to rename my package. Maybe to FRB.reg, or something that reflects the fact that my package only deals with linear regression models.

  2. What are the differences between your package and the CRAN "FRB" package?
    The methodology is the same. My package deals with (scalar-response) linear regression models, the other one deals with multivariate models.

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

2 participants