This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Error while using cairo devices in R on ubuntu
I m getting error message while using cairo_pdf().
cairo_pdf("sample.pdf")
Warning messages:
1: In cairo_pdf("sample.pdf") :
unable to load shared object '/usr/local/lib64/R/library/grDevices/libs//cairo.so':
/usr/local/lib64/R/library/grDevices/libs//cairo.so: undefined symbol: png_set_longjmp_fn
2: In cairo_pdf("sample.pdf") : failed to load cairo DLL
OS : RHEL6
R : 2.15
How can fix this error?
Regards
You have installed the package from your distribution repo or build it from source? It seems to me that the package in the RHEL repository compiled without option --with-cairo. Try to build the package from source (tarball, ~23 MB).
Related
This question already has answers here:
readRDS(file) in R
(14 answers)
Closed 4 years ago.
I tried to install ggtern, Ternary and Rtools (the latter as a test) but it doesn't work and always give me this error message
Error in readRDS(file) : unknown input format
Error in readRDS(pfile) : unknown input format
Does anyone know how I can solve this?
Thanks
Which version of R you are using to install the package?
Possible solutions
Delete your .Rhistory and .RData files in the directory in which you are running R.
Run update.packages()
Try and detect "bad files" in your library directories. You can do this in R
Delete the directory in which you have stored your downloaded packages.
I am very new to this community.
My aim is to use R for statistical analysis but some errors occurred.
In the first step, I want to load the "XLConnect"-package, in order to open an xlsx-data file, with this code:
install.packages('XLConnect')
library(XLConnect)
Answer was "package ‘XLConnect’ successfully unpacked and MD5 sums checked", after which the following error was given:
Error in library(XLConnect) : the package ‘XLConnect’ doesn't exist.
I also tried the xlsx package, but in this case always got:
Error in -library('openxlsx') : invalid argument to unary operator
or, that the package openxlsx, doesn't exist but some line before it told me the download, installation and check sums were correct!
Additionally, when I try to change the directory in a script, using
getwd(), the following error occurs:
Error in -getwd() : invalid argument to unary operator
When I type it in the console it works.
I downloaded R here: https://cran.r-project.org/bin/windows/base, installed R version 3.4.3 as well as R Studio.
I already looked in the community for some hints but neither could solve my problem:
XLConnect function is not passing argument to system.file
Error when installing XLConnect in RStudio
MY OS is Windows 10, I tried the 32-bit as well as the 64-bit version of R and installed fitting Java-Versions for both verisons( that was the first error that occured but now isn't there anymore).
I tried to load the packages from several CRAN-Mirrors but always the same error occurs (e.g. Germany(Göttingen),Germany(Münster), Belgium(Ghent) or Switzerland ).
Maybe I missed some very basic setting. Is the information I provided enough or do you need more?
Thanks a lot in advance for your support!
Thanks a lot! I installed java 32-bit and 64-bit versions the way it is recommended here: https://www.r-statistics.com/2012/08/how-to-load-the-rjava-package-after-the-error-java_home-cannot-be-determined-from-the-registry/ and I installed the rJava package like this: install.packages("rJava")
library(rJava) and here: https://askubuntu.com/questions/176115/what-is-the-best-way-of-installing-the-r-package-xlconnect I found that this here should work to register R correctly: sudo R CMD javareconf but then I get the error that the console got an unexpected symbol. Or Do you know how to register Java Development Kit in R correctly. I installed jdk-8u161-windows-x64.
Make sure you have Java Development Kit installed and correctly registered in R.
This question already has answers here:
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
(18 answers)
Closed 5 years ago.
I am performing Barnard's exact test for 2X2 contingency table. I found https://cran.r-project.org/web/packages/Exact/Exact.pdf for doing Barnard's test in R. My R version is 3.2.2 . I am trying to install package Exact, but it seems the package is not available for R version 3.2.2 . Is it so? How do you implement Barnard's test in R ?
Edit:
install.packages("Exact")
It gives the following message
Warning: unable to access index for repository https://mirror.aarnet.edu.au/pub/CRAN/src/contrib
Warning: unable to access index for repository https://mirror.aarnet.edu.au/pub/CRAN/bin/windows/contrib/3.2
Warning message:
package ‘Exact’ is not available (for R version 3.2.2)
library(Exact)
Error in library(Exact) : there is no package called ‘Exact’
Did you type the following exactly? (See what I did there)
install.packages("Exact")
I'm having trouble with manual install of an R-package called "xlsReadWrite." I know there are other packages available that can read Excel or csv files in to R, but I need to use this specific package as it is integrated in various places of a quite long script I want to use.
I'm using R-Studio Version 0.98.1091 on a Mac OS X (10.10.3)
The package is no longer available on CRAN, but there's a zip file available online here:
http://www.swissr.org/download
I can manually install the package but then when I hit the check mark I get the following error output:
library("xlsReadWrite", lib.loc="/Library/Frameworks/R.framework/Versions/3.1/Resources/library")
Error in library.dynam(lib, package, package.lib) :
shared object ‘xlsReadWrite.so’ not found
Error: package or namespace load failed for ‘xlsReadWrite’
I don't know quite how to interpret this. Does anyone have a way of successfully installing this package? Thanks a million in advance!!!
Ben
This question already has answers here:
How do I install an R package from the source tarball on windows?
(6 answers)
Closed 1 year ago.
I downloaded the Windows binary file dmGWAS_2.3.zip clickHere and try to install it by clicking Packages/install package from local zip file. After install, when I try to load 'dmGWAS' I got the error 'Error: package ‘dmGWAS’ was built before R 3.0.0: please re-install it'. I am using win 7 and R 3.1.0.
I searched similar questions but find no solution.
try:
> update.packages(checkBuilt = TRUE, ask = FALSE)
The authors release the newest version dmGWAS_3.0, which is compatible with dmGWAS_2.3. You can use the new version at http://bioinfo.mc.vanderbilt.edu/dmGWAS/