Jump to content

TERR Error in ggplot2 Packages


Yearim Yeom 2

Recommended Posts

I'm trying to make a plot using ggplot2 package in TERR RStudio.

At the beginning, I got an error like this :Error in rlang::enquos : 'enquos' is not an exported object from 'namespace:rlang'

https://github.com/sboysel/fredr/issues/67then I followed this link, restart R session and reinstall 'rlang' package.

After the reinstallation, I thought that I can use the ggplot2 packages in RStudio.

But now, I got another error likt this :Error: could not find function "ggplot"

I also tried to reinstall ggplot2 package and STILL I GOT AN ERROR CODE.

How can I solve this problem I really need to use ggplot function.

 

Code below is what I got.

 

> ggplot(data=Clus_dat,aes(x=x,y=y)) + geom_point()

Error: could not find function "ggplot"

> library(ggplot2)

Warning message:

In library.dynam(chname = chname, package = package, lib.loc... : Could not load foreign binary C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0/lazyeval/libs/x64/lazyeval.dll: .

Error in .loadNamespaceImpl(package, path, keep.source, partial) : error executing useDynLib for dynamic library 'lazyeval' from package 'lazyeval' loaded from C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0 : Error in library.dynam(chname = chname, package = package, lib.loc = ... : Foreign binary lazyeval could not be loaded

> install.packages("ggplot2")

Trying to download URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/ggplot2_2.2.1.zip' to file 'C:/Users/user/AppData/Local/Temp/TERR_683000291/downloaded_packages/ggplot2_2.2.1.zip'

Downloaded 2760173 bytes

* installing *binary* package ggplot2 from "C:\Users\user\AppData\Local\Temp\TERR_683000291\downloaded_packages\ggplot2_2.2.1.zip" to "C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0"

* checking MD5 checksums

MD5 checksums ok

> library(ggplot2)

Warning message:

In library.dynam(chname = chname, package = package, lib.loc... : Could not load foreign binary C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0/lazyeval/libs/x64/lazyeval.dll: .

Error in .loadNamespaceImpl(package, path, keep.source, partial) : error executing useDynLib for dynamic library 'lazyeval' from package 'lazyeval' loaded from C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0 : Error in library.dynam(chname = chname, package = package, lib.loc = ... : Foreign binary lazyeval could not be loaded

> ggplot(data=Clus_dat,aes(x=x,y=y)) + geom_point()

Error: could not find function "ggplot"

Warning message:

In library.dynam(chname = chname, package = package, lib.loc... : Could not load foreign binary C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0/lazyeval/libs/x64/lazyeval.dll: .

 

 

 

 

Then I tried below:

Trying to download URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/ggplot2_2.2.1.zip' to file 'C:/Users/user/AppData/Local/Temp/TERR_683000291/downloaded_packages/ggplot2_2.2.1.zip'

 

Still I got an error like this

> library(ggplot2)

Warning messages:

1: In .loadNamespaceImpl(package, path, keep.source, partial) : package 'gtable': S3method declaration for 'makeContent.gtable' ignored: cannot find generic

2: In .loadNamespaceImpl(package, path, keep.source, partial) : package 'gtable': S3method declaration for 'makeContext.gTableChild' ignored: cannot find generic

3: In .loadNamespaceImpl(package, path, keep.source, partial) : package 'gtable': S3method declaration for 'makeContext.gtable' ignored: cannot find generic

4: In library.dynam(chname = chname, package = package, lib.loc... : Could not load foreign binary C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0/lazyeval/libs/x64/lazyeval.dll: .

Error in .loadNamespaceImpl(package, path, keep.source, partial) : error executing useDynLib for dynamic library 'lazyeval' from package 'lazyeval' loaded from C:/Users/user/Documents/TERR/x86_64-pc-windows-library/4.0 : Error in library.dynam(chname = chname, package = package, lib.loc = ... : Foreign binary lazyeval could not be loaded

> ggplot(data=Clus_dat,aes(x=x,y=y)) + geom_point()

Error: could not find function "ggplot"

Link to comment
Share on other sites

as far as I know, ggplot2 is not supported in TERR. The idea is to return data and make plots using Spotfire.

It is possible to create R native plots using the package RinR: the user calls RinR and retrieves a graphical object that can be saved as a binary document property and displayed in a Textarea.

 

https://docs.tibco.com/pub/enterprise-runtime-for-R/latest/doc/html/Lang...

https://docs.tibco.com/pub/enterprise-runtime-for-R/latest/doc/html/Lang...

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...