Chris Lai Posted October 22 Share Posted October 22 I try to run TERR script using R package in my Spotfire, but keep getting errors as below: "Error in .loadNamespaceImpl(package, path, keep.source, partial) : error executing useDynLib for dynamic library 'rlang' from package 'rlang' loaded from C:/Users/CHRISC~1.LAI/DOCUME~1/TERR/X86_64~1/6.1 : Error in library.dynam(chname = chname, package = package, lib.loc = ... : library 'rlang' not found" My Spotfire version is 14.0.3. I tired different version of rlang package and rlang 0.4.8 gave a different error: "Error in eval(p, e) : could not find function "on_load"". Any help would be really appreciated. Link to comment Share on other sites More sharing options...
Douglas Johnson Posted October 22 Share Posted October 22 Hi Chris, I see that you are using a Spotfire version that is eligible for Spotfire technical support. If you open a Spotfire support case, I will watch for it, and I can help you with this. It's very easy to run into problems like this one when you are using a mix of CRAN package versions from the tidyverse family of packages (which includes dplyr and rlang, for example) that are not compatible with each other. All the best, Doug Johnson Senior Staff Engineer Spotfire Product Support https://support.tibco.com https://www.spotfire.com/ Spotfire, a business unit of Cloud Software Group www.cloud.com -- 1 Link to comment Share on other sites More sharing options...
Solution Douglas Johnson Posted October 22 Solution Share Posted October 22 Hi Chris, In a TERR Console session launched from my Spotfire Analyst 14.0.3 desktop client's "Tools > TERR Tools > Launch TERR Console" menu selection, the following shows the CRAN packages and versions that a TERR call to install.packages("tidyverse") will install: > > installed.packages(lib = .libPaths()[1])[, "Version"] BH DBI MASS Matrix R6 RColorBrewer "1.72.0-3" "1.1.0" "7.3-53" "1.2-18" "2.4.1" "1.1-2" Rcpp askpass assertthat backports base64enc blob "1.0.5" "1.1" "0.2.1" "1.1.10" "0.1-3" "1.2.1" broom callr cellranger cli clipr colorspace "0.7.1" "3.5.1" "1.1.0" "2.1.0" "0.7.1" "1.4-1" cpp11 crayon curl dbplyr desc digest "0.2.3" "1.3.4" "4.3" "1.4.4" "1.2.0" "0.6.25" dplyr ellipsis evaluate fansi farver forcats "1.0.2" "0.3.1" "0.14" "0.4.1" "2.0.3" "0.5.0" fs generics ggplot2 glue gtable haven "1.5.0" "0.0.2" "3.3.2" "1.4.2" "0.3.0" "2.3.1" highr hms htmltools httr isoband jsonlite "0.8" "0.5.3" "0.5.0" "1.4.2" "0.2.2" "1.7.1" knitr labeling lattice lifecycle lubridate magrittr "1.30" "0.3" "0.20-41" "0.2.0" "1.7.9" "1.5" markdown mgcv mime modelr munsell nlme "1.1" "1.8-33" "0.9" "0.1.8" "0.5.0" "3.1-149" openssl pillar pkgbuild pkgconfig pkgload praise "1.4.3" "1.4.6" "1.1.0" "2.0.3" "1.1.0" "1.0.0" prettyunits processx progress ps purrr readr "1.1.1" "3.4.4" "1.2.2" "1.4.0" "0.3.4" "1.4.0" readxl rematch reprex rlang rmarkdown rprojroot "1.3.1" "1.0.1" "0.3.0" "0.4.8" "2.4" "1.3-2" rstudioapi rvest scales selectr stringi stringr "0.11" "0.3.6" "1.1.1" "0.4-2" "1.5.3" "1.4.0" sys testthat tibble tidyr tidyselect tidyverse "3.4" "2.3.2" "3.0.4" "1.1.2" "1.1.0" "1.3.0" tinytex utf8 vctrs viridisLite whisker withr "0.26" "1.1.4" "0.3.4" "0.3.0" "0.4" "2.3.0" xfun xml2 yaml "0.18" "1.3.2" "2.2.1" > > These are the versions of those packages you need to use. All the best, Doug 2 Link to comment Share on other sites More sharing options...
Chris Lai Posted October 23 Author Share Posted October 23 Hi Douglas, Thank you very much for your assistance. Following the steps you provided, I noticed that some of the installed CRAN package versions differ from those suggested. I will attempt to correct them and see if this resolves the issue. If not, I will proceed with opening a Spotfire support case. Information from my computer: BH DBI DLL DT EnvCpt "1.72.0-3" "1.1.2" "1.0.0" "0.16" "1.1.2" MASS Matrix R6 RColorBrewer Rcpp "7.3-53" "1.4-1" "2.5.1" "1.1-3" "1.0.8.3" RcppEigen Rdpack SAM askpass assertthat "0.3.3.7.0" "2.3" "1.1.2.1" "1.1" "0.2.1" backports base64enc bit bit64 blob "1.4.1" "0.1-3" "4.0.4" "4.0.5" "1.2.3" broom bslib cachem callr cellranger "0.8.0" "0.3.1" "1.0.6" "3.7.0" "1.1.0" changepoint cli clipr codetools colorspace "2.2.2" "3.6.3" "0.8.0" "0.2-16" "2.0-3" commonmark cowplot cpop cpp11 crayon "1.7" "1.1.1" "1.0.0" "0.4.2" "1.5.1" crops crosstalk curl data.table dbplyr "1.0.1" "1.1.0.1" "4.3.2" "1.14.2" "1.4.4" digest dplyr dplyr.teradata dplyrAssist ellipsis "0.6.29" "1.1.2" "0.3.2" "0.1.0" "0.3.2" evaluate fansi farver fastmap forcats "0.15" "1.0.3" "2.1.0" "1.1.0" "0.5.1" foreach fs gargle generics ggplot2 "1.5.0" "1.5.2" "1.2.0" "0.1.2" "3.3.5" glmnet glue googledrive googlesheets4 gtable "4.0-2" "1.6.2" "2.0.0" "1.0.0" "0.3.0" haven highr hms htmltools htmlwidgets "2.5.0" "0.9" "1.1.1" "0.5.2" "1.5.2" httpuv httr ids isoband iterators "1.5.4" "1.4.2" "1.0.1" "0.2.5" "1.0.12" jquerylib jsonlite knitr labeling later "0.1.4" "1.8.0" "1.38" "0.4.2" "1.1.0.1" lattice lazyeval lifecycle locpol lubridate "0.20-41" "0.2.2" "1.0.1" "0.7-0" "1.8.0" magrittr mathjaxr memoise mgcv mime "2.0.3" "1.6-0" "2.0.1" "1.8-40" "0.12" miniUI modelr munsell nlme odbc "0.1.1.1" "0.1.8" "0.5.0" "3.1-157" "1.2.3" openssl pacman pillar pkgconfig plyr "2.0.0" "0.5.1" "1.9.0" "2.0.3" "1.8.7" prettyunits processx progress promises ps "1.1.1" "3.5.3" "1.2.2" "1.1.1" "1.6.0" purrr rappdirs rbibutils readr readxl "0.3.4" "0.3.3" "2.2.8" "2.1.2" "1.4.0" rematch rematch2 remotes reprex reshape "1.0.1" "2.1.2" "2.4.2" "2.0.1" "0.8.9" rlang rmarkdown rstudioapi rvest sandwich "0.4.8" "2.13" "0.13" "1.0.2" "3.0-0" sass scales segmented selectr sets "0.4.1" "1.2.0" "1.2-0" "0.4-2" "1.0-21" shape shiny shinyAce shinyWidgets sourcetools "1.4.5" "1.5.0" "0.4.1" "0.5.4" "0.1.7" stringi stringr strucchange survival sys "1.7.6" "1.4.0" "1.5-2" "3.2-7" "3.4" tibble tidyr tidyselect tidyverse tinytex "3.1.6" "1.2.0" "1.1.2" "1.3.0" "0.38" tzdb utf8 uuid vctrs viridisLite "0.3.0" "1.2.2" "1.1-0" "0.6.5" "0.4.0" vroom withr xfun xml2 xtable "1.5.7" "2.5.0" "0.30" "1.3.3" "1.8-4" yaml zoo "2.3.5" "1.8-8" Regards, Chris Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now