본문 바로가기
언어|프로그램 메모장/spotfire

spotfire TERR 패키지 일부 실행 불가

by 히민히 2021. 6. 7.

엉엉...

일부 사용 불가하여 문제가 무엇인지 해결방안 모색중 

 

 

 

👉오류는 이렇게 발생함.

 

If you are using TERR Service (e.g 1.3.1 or 1.3.0) version which has a TERR engine version 5.1.0, or using the local built-in TERR engine (5.1.0) from Spotfire Analyst, this error would be due to the incompatibility of the installed version dplyr with TERR engine 5.1.0. 

 

 

TERR 엔진 버전 5.1.0이있는 TERR 서비스 (예 : 1.3.1 또는 1.3.0) 버전을 사용하거나 Spotfire Analyst의 로컬 내장 TERR 엔진 (5.1.0)을 사용하는 경우이 오류가 발생합니다. 설치된 버전 dplyr과 TERR 엔진 5.1.0의 비 호환성. 

 

버전 문제로 인해 패키지가 실행 안되는 것으로 확인.

 

두가지 방법이 있는데, 

 

 

 

1. 설치된 패키지 TERR엔진에서 삭제하고 이전 버전 설치하는 방법. 

 

 

번은 이런식으로 진행하면 된다고,,,

uninstall.packages ( "dplyr")

install.packages("dplyr", repos = "https://mran.revolutionanalytics.com/snapshot/2020-05-20/")

dylpr의 과거버전을 설치해주는 작업.

 

전에 버전이 깔려있다면 삭제해준 후에, 

이렇게 진행하여 전버전의 dplyr를 설치한 다음에, 진행해주면 된다.!

 

 

 

 

2. 서버에 올린 spk 파일을 교체하기

1번이 간단하다!

이것은 그냥 정리용으로 메모해두기.

 

*지울경우*

1) 원본패키지가 포함된 DCF를 텍스트 편집기에서 염.

 

2) 패키지 이름이 포함된 줄을 찾습니다.

 

3) 목록에서 패키지 이름을 제거한 다음 DCF를 저장합니다.

이것만 건들이고 나머지는 건들지 말기!!

 

 

 

4) TERR TOOI 에서 spk 함수를 호출하고 편지한 DCF의 이름과 원본 SPK 파일 이름을 넣어줌.

 

 

writeLines("Packages: data.table, tidyr", "SpotfireSPK.dcf")

buildServerSPK("SpotfireSPK.dcf", "SpotfireSPK.spk", spkName="data.table, tidyr")

 

 

 

❗❗❗❗근데 이렇게 진행해도 오류난다. 이렇게 기존 spk에 삭제하고 추가할려고 했는데...

패키지가 없다면서, 아마도 지금 terr 치고 있는 툴에 깔린 패키지 없어서 안되는듯.

 

 

 

 

 

새로 하나 만들어주고 서버의 spk와 교체하는게 가장 나은 방법인 것 같음!

 

library(SpotfireSPK)
uninstall.packages( "dplyr") // 만약 기존에 dplyr 패키지 깔려있다면, 
install.packages( "dplyr", repos = "https://mran.revolutionanalytics.com/snapshot/2020-05-20/")
install.packages(c("data.table","tidyr"))

writeLines("Packages: dplyr, data.table, tidyr", "SpotfireSPK.dcf")
buildSPK("SpotfireSPK.dcf", "SpotfireSPK.spk")
readLines("SpotfireSPK.dcf")

이렇게 하여 생성된 spk 파일을 서버에 올려주면 전버전 dplyr 로 설치되어 잘 진행 될 것~~

 

 

 

서버에 올라간 기존 파일 지우고, 다시 재 업로드 해준다!

 

 

 

 

출처:

https://support.tibco.com/s/article/How-to-access-historical-versions-of-R-packages-from-the-CRAN-repository

 

How to access historical versions of R packages from the CRAN repository.

 

support.tibco.com

👉TIBCO 과거 패키지

 

 

 

https://support.tibco.com/s/article/Data-function-fails-with-TerrServiceClient-TERRSRV-error-TIBCO-Enterprise-Runtime-for-R-returned-an-error-Error-restricted-call-to-Native-dir-exists

 

Data function fails with TerrServiceClient (TERRSRV) error "TIBCO Enterprise Runtime for R returned an error: 'Error: restricted

 

support.tibco.com

 

 

https://datashoptalk.com/terr-errors-tidyr-package/

 

TERR Errors with tidyr Package — Data Shop Talk

This blog post will explain how to fix an error with the tidyr package by uninstalling the default version of the package and installing an older one.

datashoptalk.com

 

 

 

<<서버에 올린>>

❕기존 SPK에서 패키지 제거

https://docs.tibco.com/pub/terrsrv/latest/doc/html/GUID-6BC9E85A-A80F-4969-AB18-55AF48E00469.html

 

Removing CRAN Packages from an existing SPK to put on Spotfire Server

By editing the DCF and then running a few lines of TERR code, you can remove packages from a Spotfire SPK that you can deploy to Spotfire Server for use by the TERR service and the Spotfire Web Player. You can create an SPK containing packages, you can add

docs.tibco.com

 

 

기존 SPK에 패키지 추가

https://docs.tibco.com/pub/terrsrv/latest/doc/html/GUID-E96A40D4-542B-4724-965D-CD0A26CCDC47.html

 

Adding CRAN Packages to an existing SPK to put on Spotfire Server

By editing the DCF and then running a few lines of TERR code, you can add packages to a Spotfire SPK that you can deploy to Spotfire Server for use by the TERR service and the Spotfire Web Player. You can create an SPK containing packages, you can add a pa

docs.tibco.com

 

반응형

댓글