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 function #3

Open
dontzb opened this issue Oct 9, 2018 · 5 comments
Open

error in function #3

dontzb opened this issue Oct 9, 2018 · 5 comments

Comments

@dontzb
Copy link

dontzb commented Oct 9, 2018

i run the function beyesVAR_TVP with an error:
Error in index(y) : could not find function "index"

how to deal with it?? 3q~

@runnytone
Copy link

you may need to load xts library or other library.

@dontzb
Copy link
Author

dontzb commented Oct 10, 2018

thanks for your advice, problem solved~

@runnytone
Copy link

runnytone commented Oct 10, 2018 via email

@dontzb
Copy link
Author

dontzb commented Oct 10, 2018

my pc system is win7, i mainly refer to lemuelemos‘s solution.
I download the whole package first, as you can click Clone or download on the homepage of GediminasB/bayesVAR_TVP,
Then in the package file, change the last line of NAMESPACE, ‘useDynLib(bayesVAR)’ into ‘useDynLib(bayesVARTVP)’ .
Open Rstudio, right-click on the right-top corner of the frame to open a R-project, the current target R-project is in the bayesTVP-VAR file.
After that, Click build and reload, you can install the package or refresh at anytime you want a change in the code.
hope it may work

@runnytone
Copy link

Thank you. I tried. But got the warining below.

`ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bayesVARTVP.so] Error 1
ERROR: compilation failed for package ‘bayesVARTVP’

  • removing ‘/private/var/folders/w4/628bfgcn49n_m8b8rr3rr4_h0000gn/T/RtmplJB5c6/devtools_install_ebc1cf5e74e/bayesVARTVP’
    Error: Command failed (1)`

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