I am facing an error during the installation of tidyverse R package. The R version is 4.2.0 and OS is ubuntu 22.04 (in windows host OS). I have used the following command in R for the installation:
install.package("tidyverse",dependencies=TRUE)
After the installation when I called the library using library(tidyverse), it gives an error:
System has not been booted with systemd as init system (PID 1). Can't
operate. Failed to connect to bus: Host is down
along a warning message: `
Warning message:In system("timedatectl", intern = TRUE) : running
command 'timedatectl' had status 1
`
Kindly help troubleshoot the error.
Related
I'm using WSL2.
In R, I tried to install packages. For example:
> install.packages("tidyverse")
But I'm getting a Failed to create bus connection error.
Traceback:
Failed to create bus connection: No such file or directory
Warning in system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Failed to create bus connection: No such file or directory
Warning in system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
** testing if installed package can be loaded from final location
Failed to create bus connection: No such file or directory
Warning in system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
** testing if installed package keeps a record of temporary installation path
* DONE (tidyverse)
The downloaded source packages are in
‘/tmp/RtmpD1g9KP/downloaded_packages’
I've tried to install the dbus package:
sudo apt-get update
sudo apt-get install dbus
And am still getting the error after reboot.
I also tried:
sudo systemctl status
but it returns:
System has not been booted with systemd as init system (PID 1). Can't operate.
In .bashrc, or in some other alias file, add a variable for TZ. For me, I did
export TZ="America/New_York"
Then reload bash and it should recognize the timezone. You can see more about the timezone names here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
I just installed R 3.4.4 and Rstudio on my computer with the OS Ubuntu 16.04. Rstudio detects the Installation of R and works normally. However, trying to run R in the terminal I get this error:
Fatal error: unable to open the base package
I have trying setting the R_HOME using:
export R_HOME=/usr/lib/R
However it did not work. Any idea how to resolve this?
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?
I get the following error whenever I use h2o.init():
localh2o<-h2o.init()
H2O is not running yet, starting it now...
Error in system2(command, "-version", stdout = TRUE, stderr = TRUE) :
'""' not found
In addition: Warning message:
In .h2o.checkJava() :
Found JRE at C:/Program Files (x86)/Java/jre7/bin/java.exe but H2O requires the JDK to run
I am running it on RStudio Version 0.99.473 and R version 3.2.2, 64 bit os
The error message is pretty self-explanatory:
Found JRE at C:/Program Files (x86)/Java/jre7/bin/java.exe but H2O requires the JDK to run
You need to install the JDK and point the JAVA_HOME environment variable to the JDK directory (the parent of the bin directory), if it isn't automatically done by the installer.
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.