We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following works:
X = randn(100,5) y = 7.0 .+ X[:,1] .+ 2.0 .* X[:,2] .* X[:,3] + 3*randn(100) using RCall @rput y @rput X R" library(L0Learn) J = ncol(X); nf = 5; set.seed(1); fitL0 = L0Learn.cvfit(X, y, nFolds=nf, seed=1, maxSuppSize=nrow(X)/2, intercept = T) " @rget J @rget fitL0
But I get an error when I include a kw w/ a string:
R" library(L0Learn) J = ncol(X); nf = 5; set.seed(1); fitL0 = L0Learn.cvfit(X, y, nFolds=nf, seed=1, maxSuppSize=nrow(X)/2, intercept = T, algorithm = "CDPSI") "
It says: syntax: cannot juxtapose string literal
syntax: cannot juxtapose string literal
The text was updated successfully, but these errors were encountered:
It can be solved w/ triple string quotations:
R""" library(L0Learn) J = ncol(X); nf = 5; set.seed(1); fitL0 = L0Learn.cvfit(X, y, nFolds=nf, seed=1, maxSuppSize=nrow(X)/2, intercept = T, algorithm = "CDPSI") """
Sorry, something went wrong.
No branches or pull requests
The following works:
But I get an error when I include a kw w/ a string:
It says:
syntax: cannot juxtapose string literal
The text was updated successfully, but these errors were encountered: