I am trying to reverse engineer an R code which is currently running on a Linux Server.
I keep getting the following error:
Warning: Error in loadNamespace: there is no package called ‘leafletsector’
90: <Anonymous>
I tried installing the package leafletsector, but it isn't available for R-3.4 or R-3.5.
I am running this code on Windows 7.
Any suggestions?
Related
I am trying to run R script that works fine when running in Rstudio in command prompt, the reason why is that later I want to run it in Talend ETL tool.
However when I run it in command I obtain the following error:
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: install.packages -> contrib.url
Execution halted
Any idea how to solve that?
Note: I tried to install the packages contrib.url or contriburl but it is not compatible with my version of R.
Thanks.
I am having difficulty installing the zenplots package in R. For some odd reason when I use install.packages('zenplots') on my machine (Mac OS Catalina V-10.15.7) it installs fine... but when I try and install it on my second machine (also Mac OS Catalina V-10.15.7) and if I try and install it on my institutes server I get the following error:
Warning in fun(libname, pkgname) : couldn't connect to display ":0"
Error : package or namespace load failed for ‘loon’: .onLoad failed
in loadNamespace() for 'loon', details: call:
structure(.External(.C_dotTcl, ...), class = "tclObj") error: [tcl]
couldn't connect to display ":0".
Error: unable to load R code in package ‘zenplots’ Execution halted
I have also tried to install directly from GitHub using remotes::install_github('great-northern-diver/zenplots', force = T) but I get the same error as above.
I have even tried using install.packages("zenplots", repos="http://R-Forge.R-project.org") which works but unfortunatley this version doesn't contain all the functions found in zenplots.
My R version is above version 3.4.0, which is required for zenplots and as per the documentation I have already installed the graph package from BioConductor.
Any suggestions as to what might be the issue here?
I would guess that the R on your server was compiled without some feature required by the library. My guess: it is missing either tcltk or X11 support. To check do the following:
capabilities()
And see which features return FALSE, meaning they are not enabled.
I have run shinyAPP in server, some APP doesn't work and error message show as picture, I don't know how to solve it.
It seems there is no dplyr package installed in the library used by the R process which your shiny server is using.
from browser console:
Listening on http://127.0.0.1:56037
Warning: Error in library: there is no package called ‘dplyr’
Stack trace (innermost first):
38: library
1: runApp
Error in library(dplyr) : there is no package called ‘dplyr’
Ensure that you have the package installed in the library folder used by shiny server.
E.g. in my case I have separate R used by RStudio so that development is separated from live app.
My library sits in usr//lib64//R//library therefore in linux i will run R as superuser sudo R and then install.packages("dplyr", lib="usr//lib64//R//library//")
I'm trying to install the package quantstrat, however I always get following errors trying this:
--Error : object ‘importDefaults’ is not exported by 'namespace:quantmod'
Failed with error: ‘package ‘FinancialInstrument’ could not be loaded’
Now, when I tried to load the package FinancialInstrument, R throws the following error:
--Error : object ‘importDefaults’ is not exported by 'namespace:quantmod'
I am not sure what to do to get the package quantstrat loaded. I am using the R version 3.0.0 on windows 64 bit system. Any help would be very much appreciated.
Did anyone tried to install R package: UScensus2010blk on your own PC?
I tried to use from UScensus2010:
install.blk ("windows")
It gives an error saying "Not Available Yet"
I downloaded the package myself (4.2GB!) and tried to install from local and I still get error messages:
installing source package 'UScensus2010blk' ...
** data
Warning in file.copy(files, is, TRUE) :
problem copying data\montana.blk10.rda to Q:\LCVDJ\R\R-3.0.2\library\UScensus2010blk\data\montana.blk10.rda: Invalid argument
...
(the error message repeats for different states)
...
** help
Error in lazyLoadDBinsertListElement(from, i, datafile, ascii, compress, :
write failed
ERROR: installing Rd objects failed for package 'UScensus2010blk'
* removing 'Q:/LCVDJ/R/R-3.0.2/library/UScensus2010blk'
Warning in install.packages :
running command '"Q:/LCVDJ/R/R-30~1.2/bin/i386/R" CMD INSTALL -l "Q:\LCVDJ\R\R-3.0.2\library" "C:/Users/n1304/Downloads/UScensus2010blk_1.00.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/n1304/Downloads/UScensus2010blk_1.00.tar.gz’ had non-zero exit status
Does anyone have any idea why my installation is failed? I'm using R-3.0.2
Thanks!
There's an error in the census2010 package. The functions install.tract, install.blk, install.blkgrp, install.county, and install.cdp are supposed to check for R version >= 2.11 if you call the functions with the "windows" argument, but they only check the minor version so if you have R version 3.0 through 3.10 they incorrectly report an error.
To work around this error, you should be able to run
install.packages('UScensus2010blk', repos='http://lakshmi.calit2.uci.edu/census2000/R/', type='source')
instead of
install.blk('windows')
I tried to install it, and received the same message. It appears to be a problem with all the "windows" installations, as the command install.blk("linux") is functional.