1dSVAR.R errot

Dear AFNI experts,
I have been getting the following error message in R when trying to run AFNI’s 1dSVAR.R
When I run R in terminal I get"

source(“~/abin/1dSVAR.R”)
[1] “#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
[1] " ================== Welcome to 1dSVAR.R ================== "
[1] “AFNI Structural Vector Auto-Regressive (SVAR) Modeling Package!”
[1] “#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
[1] “Version 0.0.3, June 21, 2011”
[1] “Author: Gang Chen (gangchen@mail.nih.gov)”
[1] “Website: https://afni.nimh.nih.gov/sscc/gangc/SVAR.html
[1] “SSCC/NIMH, National Institutes of Health, Bethesda MD 20892”
[1] “#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
Loading required package: network
network: Classes for Relational Data
Version 1.13.0 created on 2015-08-31.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
Mark S. Handcock, University of California – Los Angeles
David R. Hunter, Penn State University
Martina Morris, University of Washington
Skye Bender-deMoll, University of Washington
For citation information, type citation(“network”).
Type help(“network-package”) to get started.

Package network loaded successfully!

[1] “"
[1] “Visit https://afni.nimh.nih.gov/sscc/gangc/SVAR.html and makse sure”
[1] “you’ve acquired the data for the analysis in desirable data format.”
[1] "

[1] “################################################################”
[1] “Please consider citing the following if this program is useful for you:”

Gang Chen, Daniel R. Glen, Ziad S. Saad, J. Paul Hamilton, Moriah E.	Thomason, Ian H. Gotlib, and Robert W. Cox, Vector Autoregression, 	Structural Equation Modeling, and Their Synthesis in Neuroimaging 	Data Analysis. Under review. n

[1] “################################################################”
[1] “Use CNTL-C on Unix or ESC on GUI version of R to stop at any moment.”
Error in file(file, “r”) : cannot open the connection
In addition: Warning message:
In file(file, “r”) :
cannot open file 'Analysis type (0: quit; 1: individual; 2: group)? ': No such file or directory

And…

If I run it through R studio I get:

source(“~/abin/1dSVAR.R”)
[1] “#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
[1] " ================== Welcome to 1dSVAR.R ================== "
[1] “AFNI Structural Vector Auto-Regressive (SVAR) Modeling Package!”
[1] “#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
[1] “Version 0.0.3, June 21, 2011”
[1] “Author: Gang Chen (gangchen@mail.nih.gov)”
[1] “Website: https://afni.nimh.nih.gov/sscc/gangc/SVAR.html
[1] “SSCC/NIMH, National Institutes of Health, Bethesda MD 20892”
[1] “#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
Error in if (file == “”) { : missing value where TRUE/FALSE needed

Any guidance will be appreciated,
Thanks
Rodrigo

Yes, I would appreciate an answer to this question, because I get the same error as well.

Rai

For some reason the message escaped my attention. Probably because of the AFNI workshop during that week. I’ll take a close look early next week.