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

[Bug] Error: $ operator is invalid for atomic vectors #12

Open
lhjohn opened this issue Oct 26, 2021 · 1 comment
Open

[Bug] Error: $ operator is invalid for atomic vectors #12

lhjohn opened this issue Oct 26, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@lhjohn
Copy link
Collaborator

lhjohn commented Oct 26, 2021

There still is some problem related to the model settings. Now the situation is that modelSettings$settings is:

> modelSettings$settings
 cohortId outcomeId 
    20613     20700 

This is provided as parameter to editPreprocessing() in loadModelFromJson.R.

  plpModel <- editPreprocessing(modelSettings$settings)

Which then causes the following error, because it cannot be subset.

Error: $ operator is invalid for atomic vectors 

Interestingly, this error did not happen before the fix, but that was maybe because settings held only targetId and has now become a list of two elements once we added outcomeId.

@jreps
Copy link
Collaborator

jreps commented Jan 6, 2022

can you send me this validation package with the error (it makes it easier for me to debug)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants