External Email - Use Caution
Hello Shrikanth,On Oct 6, 2021, at 16:13, Yadav, Shrikanth Muralidhar <SMYADAV@mgh.harvard.edu> wrote:Hello Freesurfer Developers,_______________________________________________I had a freesurfer-Rstudio issue today which I solved by just working on a Linux shell script. However, I wanted to know if it is possible to send freesurfer related commands from R studio out of curiosity.My Problem:
- I was trying to use freesurfer commands like mri_convert by sending them through the "system()" function in R.
- However, I got a "sh: mri_convert command not found" error. This indicates freesurfer is not sourced into the Linux terminal in the R Session.
My Question: Is it possible to run freesurfer related commands from the rstudio terminal?What I did:
- I looked up this problem online and found a similar example where the user needed the function bedtools. But updating the system path still threw the same error with .
- In addition, I was able to send commands like "dcm2niix" from R using the system function mentioned above. I am certain this is a sourcing issue.
Would appreciate any insightThank youShrikanth
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer