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

Error in code? #33

Open
mdeserisy opened this issue Mar 17, 2023 · 2 comments
Open

Error in code? #33

mdeserisy opened this issue Mar 17, 2023 · 2 comments

Comments

@mdeserisy
Copy link

Hello!

I am new to using NBS in R but have used it before with success in MatLab. I am transitioning to R for cost reasons and would like to try to stay on that platform. When I am run NBS using this code:

NBS(control_reward_filtered, irr.parent_NBS_filtered, second.col)

I receive the following error:
Error in :=(eval(sID), seq_len(dim(covars)[1L])) :
Check that is.data.table(DT) == TRUE. Otherw
irr.parent_NBS_filtered.csv
second.col.csv
control_reward_filtered.csv
ise, := and :=(...) are defined for use in j, once only and in particular ways. See help(":=").

When I review the error using help and online it suggests there might be a corruption in the newest version of data.table and I need to revert to an old version. Is there a way to run the NBS package by calling an old version of data.table?

Attaching files called in this code as examples.

@cwatson
Copy link
Owner

cwatson commented Mar 24, 2023

Sorry, I only just saw this. Is that error message incomplete somehow? It looks like it might be missing some text.
I would need to know what versions of R, data.table and brainGraph you're using. Might also be helpful to know what OS you're on, as well. And finally, please include the code you used to create the relevant data, everything leading up to the error.

@mdeserisy
Copy link
Author

Hello!

Thanks so much for getting back to me. Please see the attached screenshot for package information and R version requested. I'm also attaching a screenshot with OS information, though its worth noting that I experienced the exact same error on both Mac and PC (and an older version of windows). Additionally attached is a screenshot of the error message and the Rdata file with the appropriate array. Finally, attached is an RMD file including everything leading up to the error. The csv files attached are the ones I called in dataset creation, etc. except for the attached Rdata and csv files with the datasets called in the RMD file to create the contrast file and brain data.

Thanks again for your help!

Mariah

HBN NBS data analysis_forGitHub.zip
ersion of windows).
allsubj_allcond_rsfc_rtoZ_array_ControlReward_array.zip

irr.parent_NBS.csv

Screenshot 2023-03-24 122609
image

image

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