Dmitry Surovtsev Posted May 8, 2019 Share Posted May 8, 2019 Hi, My data function requires a certain function in sp package for TERR. So I unstalled this package from CRAN repository and entered its name in the line Packages (separated by semicolons): in R script definition window. While everything calculates correctly, now I get yellow triangle and warning message in the lower left corner informing me that some graphic functions are masked from some packages. I need to get rid of those. Thoroughly reading your documentation I found the functionsuppressUnimplementedGraphicsWarnings that apparently does what I need. However, I can't understand how to use it. Can you provide an example ofTERR code snippet with this function TA Link to comment Share on other sites More sharing options...
Dmitry Surovtsev Posted May 9, 2019 Author Share Posted May 9, 2019 I found a suggestion at https://community.spotfire.com/sites/default/files/wiki_files/top_10_tricks_for_terr_data_functions_2.pdf but it didn't solve my problem. My required library is sp, but the warnings about masked graphics are generated by its nested libraries graphics and methods. Using the following statements in my R code instead of usual library() calls still results in the same warning messages:suppressWarnings(suppressPackageStartupMessages(library(graphics)))suppressWarnings(suppressPackageStartupMessages(library(methods)))suppressWarnings(suppressPackageStartupMessages(library(sp)))---TIBCO Enterprise Runtime for R returned warningsThe following object(s) are masked _from_ 'package:graphics': plotThe following object(s) are masked _from_ 'package:methods': coerce, showThe following object(s) are masked _from_ 'base': merge, split, summary--- Link to comment Share on other sites More sharing options...
Dmitry Surovtsev Posted May 9, 2019 Author Share Posted May 9, 2019 Eventually the below two stepsdid the trick for me: 1. Remove sp from the entry field Packages (separated by semicolons): in Edit Script definition window 2. use code: suppressPackageStartupMessages(library(sp, warn.conflicts=FALSE, quietly=TRUE)) 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