Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
Question by tommy · Oct 14, 2016 at 11:59 AM · tick-history-rest-apirsetup

Install TRTH library for R: embedded nul error

I downloaded TRTH library for R (THAPI.ZIP) updated on Thursday, July 14, 2016 from

https://developers.thomsonreuters.com/thomson-reuters-tick-history-trth/thomson-reuters-tick-history-trth-soap-api/downloads

When I run in R:

install.packages("path/toTHAPI.ZIP", repos=NULL, type="win.library")

I get the error:

Error in rawToChar(block[seq_len(ns)]) :

embedded nul in string: 'PK\003\004\n\0\0\0\0\0`{­D\0\0\0\0\0\0\0\0\0\0\0\0\006\0\034\0THAPI/UT\t\0\003#­qS9­qSux\v\0\001\004ù\001\0\0\004\024\0\0\0PK\003\004\024\0\0\0\b\0]{­DæÔ\025¸õ\0\0\0c\001\0\0\021\0\034\0THAPI/'

I use R version 3.3.1 (2016-06-21) under Windows.


People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by moragodkrit.chumsri_1 · Oct 16, 2016 at 09:30 PM

@Yaphet

You have to manually unzipped and manually zipped it back. However from description file,it build with R 3.1.0 and I guess that it's not compatible with 3.3.1. Answer from the following post may help.


https://community.developers.refinitiv.com/questions/9090/issues-with-the-installing-the-eikon-api-for-r-pac.html

Comment

People who like this

0 Show 3 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Yaphet · Oct 16, 2016 at 11:00 PM 0
Share

Thanks, I did unzip and zip, but I install some other packages, must I uninstall R and install a version 3.1.0?

avatar image
REFINITIV
moragodkrit.chumsri_1 ♦♦ Yaphet · Oct 16, 2016 at 11:21 PM 0
Share

I'm not R expert. But from my test, I have installed multiple version of R on my windows and it allows me to select specific version of R to run. Also if you are using free version of R Studio, you can select R version to run with your library.

avatar image
Yaphet moragodkrit.chumsri_1 ♦♦ · Oct 17, 2016 at 08:50 AM 0
Share

So I must install another version R? Could I install different version in the same laptop?

avatar image
Answer by tommy · Oct 15, 2016 at 11:28 AM

May be the zip file is corrupted.

After downloading it again to be sure it was not an network problem, I manually unzipped and manually zipped it back.

Now I can install the the package, but when I load it I get:

> library(THAPI)
Error in .mergeMethodsTable(generic, mtable, tt, attach) :
trying to get slot "defined" from an object of a basic class ("list") with no slots
Error: package or namespace load failed for ‘THAPI’
Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Yaphet · Oct 15, 2016 at 05:29 PM 0
Share

I met the same question as yours. How do you solve it then?

avatar image
Answer by tommy · Oct 18, 2016 at 04:23 PM

Could I install different version in the same laptop?

yes

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by barbara.bukhvalova · Feb 17, 2017 at 02:51 PM

Looks like it is high time for TR to wake up and update the zip

I have tried to install from current version (3.3.2 in my case) and from 3.1.0, both original zip and rezipped document (both with THAPI.zip/THAPI structure and having the package in THAPI.zip directly). Whatever I do I get 'THAPI.ZIP/DESCRIPTION' cannot be read (I can open it and it is there).

If I do "type="binary" instead, I get the "embedded nul" error.

Also, if RCurl, XML, and base64 packages are indeed required, they are no longer available for 3.1.0. So if we were all succeeding with installs for 3.1.0, I am not sure that the package would work anyway.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

issues with installing of the EIKON API for R package

Working R examples for Eikon with Lipper data

Cannot retreive RIC list

TRTH API: sample code for R Stan

Automatic Decompression in HTTP request for Tick History Time and Sales report

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges