Rblp / Rblpapi

R package interfacing the Bloomberg API from https://www.bloomberglabs.com/api/
Other
166 stars 75 forks source link

install Rblpapi 3.6.2 from source #295

Closed Courvoisier13 closed 4 years ago

Courvoisier13 commented 4 years ago

Hi I need to install Rblpapi 3.6.2 from source because I am using R3.6 and I can't install from binary. I need this because of the #281 issue. I tried:

   packageurl <- "https://cran.r-project.org/src/contrib/Archive/Rblpapi/Rblpapi_0.3.6.tar.gz"
   install.packages(packageurl, repos=NULL, type="source")

but it gave the following error:

   sh: curl: command not found
   mv: cannot stat 'blpHeaders.tar.gz': No such file or directory
   tar (child): ../blp/win/i386/blpHeaders.tar.gz: Cannot open: No such file or directory
   tar (child): Error is not recoverable: exiting now
   tar: Child returned status 2
   tar: Error is not recoverable: exiting now
   make: *** [Makevars.win:46: blpLibrary] Error 2
   ERROR: compilation failed for package 'Rblpapi'
   * removing 'D:/libraries/R/libraries-3.6.1/Rblpapi'

I downloaded the https://github.com/Rblp/Rblpapi/archive/0.3.6.tar.gz file and tried to build and found that the folder ../blp/win/ only has an x64 folder that one is empty.

What should I complete in this folder in order to be able to build the package?

thanks

eddelbuettel commented 4 years ago

Install curl as the error message says.

Also consider learning markdown formatting to make your answers more easily readable. There is a link in every edit box.

eddelbuettel commented 4 years ago

What should I complete in this folder in order to be able to build the package?

It is all open source. You can read every command, step by step. Start with configure as R does.

Courvoisier13 commented 4 years ago

I am using an older version of chrome :( and can't update it. I can't edit and I can't or insert "code" unfortunately. it's very annoying apologies.

so I need cURL from https://curl.haxx.se/download.html?

Also I am under windows. are the path in the configure the same ?

eddelbuettel commented 4 years ago

I am using an older version of chrome :( and can't update it. I can't edit and I can't or insert "code" unfortunately. it's very annoying apologies.

Entirely wrong but I don't have the time to teach you all of this.

Also consider googling "how to install curl on Windows". Used by hundreds of millions of people. There are binaries.

Please do your homework, we are all busy. The package obviously builds at CRAN for a variety of systems including yours as shown here: https://cloud.r-project.org/web/checks/check_results_Rblpapi.html