SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: quantstrat [ Reply ]
By: Joshua Ulrich on 2017-01-23 13:20
[forum:43822]
"The fortran was installed in usr2 and I moved local to the usr directory and then executed
export PATH=$PATH:/usr/local/bin"

I don't know what you mean by "moved local to the usr directory". It sounds like you moved some executable file (e.g. the fortran install). You should not do that. Install scripts do more than simply put a file in a directory, and other things likely rely on where the executable is installed.

Calling "export PATH=$PATH:/usr/local/bin" won't affect anything, unless you also started RStudio from the terminal where you ran the export command. But that's not clear from your message.

The installation of PerformanceAnalytics failed because it couldn't find the fortran executable:
gfortran-4.8 -fPIC -Wall -g -O2 -c momentF.f90 -o momentF.o
make: gfortran-4.8: No such file or directory

These all appear to be issues with configuring your Mac to install compiled code from source. I don't have a Mac, and I doubt many who follow this forum do either, so you're unlikely to get much help here. You could try posting on R-SIG-Mac.

RE: quantstrat [ Reply ]
By: Leo Shpiz on 2017-01-23 13:10
[forum:43821]
https://cran.r-project.org/bin/macosx/tools/

Used above to load
gfortran-4.2.3.pkg (OS X 10.5+, signed, 64-bit driver)

The fortran was installed in usr2 and I moved local to the usr directory and then executed

export PATH=$PATH:/usr/local/bin

In RStudio I did the install and said yes from sources

install.packages("quantstrat", repos="http://R-Forge.R-project.org")
also installing the dependencies ‘PerformanceAnalytics’, ‘blotter’

Warning in install.packages :
URL 'http://download.r-forge.r-project.org/bin/macosx/mavericks/contrib/3.3/PACKAGES.gz': status was '404 Not Found'
Warning in install.packages :
URL 'http://download.r-forge.r-project.org/bin/macosx/mavericks/contrib/3.3/PACKAGES': status was '404 Not Found'
Warning in install.packages :
unable to access index for repository http://R-Forge.R-project.org/bin/macosx/mavericks/contrib/3.3:
cannot download all files
Packages which are only available in source form, and may need compilation of
C/C++/Fortran: ‘PerformanceAnalytics’ ‘blotter’ ‘quantstrat’
Do you want to attempt to install these from sources?
y/n: y
installing the source packages ‘PerformanceAnalytics’, ‘blotter’, ‘quantstrat’

trying URL 'http://R-Forge.R-project.org/src/contrib/PerformanceAnalytics_1.4.4000.tar.gz'
Content type 'application/x-gzip' length 2119678 bytes (2.0 MB)
==================================================
downloaded 2.0 MB

trying URL 'http://R-Forge.R-project.org/src/contrib/blotter_0.9.1741.tar.gz'
Content type 'application/x-gzip' length 74117 bytes (72 KB)
==================================================
downloaded 72 KB

trying URL 'http://R-Forge.R-project.org/src/contrib/quantstrat_0.9.1739.tar.gz'
Content type 'application/x-gzip' length 799472 bytes (780 KB)
==================================================
downloaded 780 KB

* installing *source* package ‘PerformanceAnalytics’ ...
** libs
gfortran-4.8 -fPIC -Wall -g -O2 -c momentF.f90 -o momentF.o
make: gfortran-4.8: No such file or directory
make: *** [momentF.o] Error 1
ERROR: compilation failed for package ‘PerformanceAnalytics’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/PerformanceAnalytics’
Warning in install.packages :
installation of package ‘PerformanceAnalytics’ had non-zero exit status
ERROR: dependency ‘PerformanceAnalytics’ is not available for package ‘blotter’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/blotter’
Warning in install.packages :
installation of package ‘blotter’ had non-zero exit status
ERROR: dependency ‘blotter’ is not available for package ‘quantstrat’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/quantstrat’
Warning in install.packages :
installation of package ‘quantstrat’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/7l/dpy9h0ss2450qcp053x0_sk00000gn/T/Rtmp7zLZ6J/downloaded_packages’
>

RE: quantstrat [ Reply ]
By: Joshua Ulrich on 2017-01-10 14:41
[forum:43791]
"failed when I tried doing it on my MAC" does not make it easy to help you, which is why I requested: "If you still have trouble, please
provide more details (e.g. your R version, operating system (and version), etc)."

You need to be as specific as possible.

RE: quantstrat [ Reply ]
By: Leo Shpiz on 2017-01-10 14:19
[forum:43790]
Thank you for the quick response

I was able to load quantstrat and it's dependencies in R from sources using Windows, but failed when I tried doing it on my MAC.


RE: quantstrat [ Reply ]
By: Joshua Ulrich on 2017-01-10 12:15
[forum:43789]
quantstrat, blotter, and FinancialInstrument have moved to GitHub:
https://github.com/braverock/

Please try to install using the sources there. If you still have trouble, please provide more details (e.g. your R version, operating system (and version), etc).

quantstrat [ Reply ]
By: Leo Shpiz on 2017-01-07 20:06
[forum:43788]
Unable to install the package - also tired installing from sources and failed
on my MAC

Any help would be appreciated

Thanks to:
Vienna University of Economics and Business Powered By FusionForge