Problem when trying to install packages
On 16.03.2024 10:48, javad bayat wrote:
Dear all; I found a useful video on youtube that has explained how to install Rtools. I followed the instructions and the problem was solved. " Installing R version 4.0 + RTools 4.0 + RStudio For Data Science (#R
?? A recent set of released software would be Rtools43 + R-4.3.3 Best, Uwe Ligges
#RTools #RStudio #DataScience) - YouTube <https://www.youtube.com/watch?v=h2IPWVXaUuU> " Sincerely On Sat, Mar 16, 2024 at 10:15?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:
Though Navigator may mess up any Rtools stuff because it handles the directory trees where packages and dependencies are located, does it not? If so, maybe just reinstall RStudio directly from its website to proceed. Just a guess obviously. Bert On Sat, Mar 16, 2024, 05:09 javad bayat <j.bayat194 at gmail.com> wrote:
Dear Rui; Many thanks for your reply. I have installed Rtools (rtools43-5958-5975) on my PC and I have R version 4.3.3 and 4.3.2 to install. Also I have installed Rstudio through Anaconda Navigator. But I do not know how to use Rtools for installing the R packages. I would be more than happy if you help me. Sincerely yours
Dear Rui; I hope this email finds you well. I have a problem installing packages
in
Rstudio and R software. When I try to install a package, the software
tries
to download but after downloading, it gives some errors and does not
work.
I would be more than happy if you please help me to solve this issue. Warm regards.
install.packages("openair", type = "source")Installing package into
?C:/R_Libs?
(as ?lib? is unspecified)Warning in install.packages :
dependencies ?lattice?, ?MASS? are not availablealso installing the
dependencies ?deldir?, ?RcppEigen?, ?cli?, ?glue?, ?lifecycle?,
?pillar?, ?rlang?, ?tibble?, ?tidyselect?, ?vctrs?, ?png?, ?jpeg?,
?interp?, ?timechange?, ?maps?, ?nlme?, ?Matrix?, ?cluster?, ?dplyr?,
?hexbin?, ?latticeExtra?, ?lubridate?, ?mapproj?, ?mgcv?, ?purrr?
trying URL '
type 'application/x-gzip' length 103621 bytes (101 KB)downloaded 101 KB trying URL '
type 'application/x-gzip' length 1765714 bytes (1.7 MB)downloaded 1.7 MB trying URL '
type 'application/x-gzip' length 569771 bytes (556 KB)downloaded 556 KB trying URL '
type 'application/x-gzip' length 105420 bytes (102 KB)downloaded 102 KB trying URL '
type 'application/x-gzip' length 107656 bytes (105 KB)downloaded 105 KB trying URL '
type 'application/x-gzip' length 444528 bytes (434 KB)downloaded 434 KB trying URL '
type 'application/x-gzip' length 763765 bytes (745 KB)downloaded 745 KB trying URL '
type 'application/x-gzip' length 565982 bytes (552 KB)downloaded 552 KB trying URL '
type 'application/x-gzip' length 103591 bytes (101 KB)downloaded 101 KB trying URL '
type 'application/x-gzip' length 969066 bytes (946 KB)downloaded 946 KB trying URL '
type 'application/x-gzip' length 24880 bytes (24 KB)downloaded 24 KB trying URL '
type 'application/x-gzip' length 18667 bytes (18 KB)downloaded 18 KB trying URL '
type 'application/x-gzip' length 1112116 bytes (1.1 MB)downloaded 1.1 MB trying URL '
type 'application/x-gzip' length 103439 bytes (101 KB)downloaded 101 KB trying URL '
type 'application/x-gzip' length 2278051 bytes (2.2 MB)downloaded 2.2 MB trying URL '
type 'application/x-gzip' length 836832 bytes (817 KB)downloaded 817 KB trying URL '
type 'application/x-gzip' length 2883851 bytes (2.8 MB)downloaded 2.8 MB trying URL '
type 'application/x-gzip' length 369050 bytes (360 KB)downloaded 360 KB trying URL '
type 'application/x-gzip' length 1207521 bytes (1.2 MB)downloaded 1.2 MB trying URL '
type 'application/x-gzip' length 1199967 bytes (1.1 MB)downloaded 1.1 MB trying URL '
type 'application/x-gzip' length 1292936 bytes (1.2 MB)downloaded 1.2 MB trying URL '
type 'application/x-gzip' length 428043 bytes (418 KB)downloaded 418 KB trying URL '
type 'application/x-gzip' length 25544 bytes (24 KB)downloaded 24 KB trying URL '
type 'application/x-gzip' length 1083217 bytes (1.0 MB)downloaded 1.0 MB trying URL '
type 'application/x-gzip' length 220868 bytes (215 KB)downloaded 215 KB trying URL '
type 'application/x-gzip' length 1796725 bytes (1.7 MB)downloaded 1.7
Hello, If you are on Windows, do you have rtools [1] installed? On Thu, Mar 14, 2024 at 6:47?PM Rui Barradas <ruipbarradas at sapo.pt> wrote:
?s 04:12 de 13/03/2024, javad bayat escreveu:
Dear Rui; I hope this email finds you well. I have a problem installing
packages in
Rstudio and R software. When I try to install a package, the software
tries
to download but after downloading, it gives some errors and does not
work.
I would be more than happy if you please help me to solve this issue. Warm regards.
install.packages("openair", type = "source")Installing package into
?C:/R_Libs?
(as ?lib? is unspecified)Warning in install.packages :
dependencies ?lattice?, ?MASS? are not availablealso installing the
dependencies ?deldir?, ?RcppEigen?, ?cli?, ?glue?, ?lifecycle?,
?pillar?, ?rlang?, ?tibble?, ?tidyselect?, ?vctrs?, ?png?, ?jpeg?,
?interp?, ?timechange?, ?maps?, ?nlme?, ?Matrix?, ?cluster?, ?dplyr?,
?hexbin?, ?latticeExtra?, ?lubridate?, ?mapproj?, ?mgcv?, ?purrr?
trying URL '
type 'application/x-gzip' length 103621 bytes (101 KB)downloaded 101 KB trying URL '
type 'application/x-gzip' length 1765714 bytes (1.7 MB)downloaded 1.7 MB trying URL '
type 'application/x-gzip' length 569771 bytes (556 KB)downloaded 556 KB trying URL '
type 'application/x-gzip' length 105420 bytes (102 KB)downloaded 102 KB trying URL '
type 'application/x-gzip' length 107656 bytes (105 KB)downloaded 105 KB trying URL '
type 'application/x-gzip' length 444528 bytes (434 KB)downloaded 434 KB trying URL '
type 'application/x-gzip' length 763765 bytes (745 KB)downloaded 745 KB trying URL '
type 'application/x-gzip' length 565982 bytes (552 KB)downloaded 552 KB trying URL '
type 'application/x-gzip' length 103591 bytes (101 KB)downloaded 101 KB trying URL '
type 'application/x-gzip' length 969066 bytes (946 KB)downloaded 946 KB trying URL '
type 'application/x-gzip' length 24880 bytes (24 KB)downloaded 24 KB trying URL '
type 'application/x-gzip' length 18667 bytes (18 KB)downloaded 18 KB trying URL '
type 'application/x-gzip' length 1112116 bytes (1.1 MB)downloaded 1.1 MB trying URL '
type 'application/x-gzip' length 103439 bytes (101 KB)downloaded 101 KB trying URL '
type 'application/x-gzip' length 2278051 bytes (2.2 MB)downloaded 2.2 MB trying URL '
type 'application/x-gzip' length 836832 bytes (817 KB)downloaded 817 KB trying URL '
type 'application/x-gzip' length 2883851 bytes (2.8 MB)downloaded 2.8 MB trying URL '
type 'application/x-gzip' length 369050 bytes (360 KB)downloaded 360 KB trying URL '
type 'application/x-gzip' length 1207521 bytes (1.2 MB)downloaded 1.2 MB trying URL '
type 'application/x-gzip' length 1199967 bytes (1.1 MB)downloaded 1.1 MB trying URL '
type 'application/x-gzip' length 1292936 bytes (1.2 MB)downloaded 1.2 MB trying URL '
type 'application/x-gzip' length 428043 bytes (418 KB)downloaded 418 KB trying URL '
type 'application/x-gzip' length 25544 bytes (24 KB)downloaded 24 KB trying URL '
type 'application/x-gzip' length 1083217 bytes (1.0 MB)downloaded 1.0 MB trying URL '
type 'application/x-gzip' length 220868 bytes (215 KB)downloaded 215 KB trying URL '
type 'application/x-gzip' length 1796725 bytes (1.7 MB)downloaded 1.7
MB
* installing *source* package 'deldir' ...
** package 'deldir' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'deldir'
* removing 'C:/R_Libs/deldir'
Warning in install.packages :
installation of package ?deldir? had non-zero exit status
* installing *source* package 'RcppEigen' ...
** package 'RcppEigen' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'RcppEigen'
* removing 'C:/R_Libs/RcppEigen'
Warning in install.packages :
installation of package ?RcppEigen? had non-zero exit status
* installing *source* package 'cli' ...
** package 'cli' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'cli'
* removing 'C:/R_Libs/cli'
Warning in install.packages :
installation of package ?cli? had non-zero exit status
* installing *source* package 'glue' ...
** package 'glue' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'glue'
* removing 'C:/R_Libs/glue'
Warning in install.packages :
installation of package ?glue? had non-zero exit status
* installing *source* package 'rlang' ...
** package 'rlang' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rlang'
* removing 'C:/R_Libs/rlang'
Warning in install.packages :
installation of package ?rlang? had non-zero exit status
* installing *source* package 'png' ...
** package 'png' successfully unpacked and MD5 sums checked
** using staged installation
bash.exe: warning: could not find /tmp, please create!
checking PNG headers and libraries
bash.exe: warning: could not find /tmp, please create!
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 179:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 180:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 181:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 182:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 183:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 319:
make: command not found
./configure.win: line 17: make: command not found
/lib/libpng.lib
found libpng in LOCAL_SOFT: /lib
seems ok, ready to go
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'png'
* removing 'C:/R_Libs/png'
Warning in install.packages :
installation of package ?png? had non-zero exit status
* installing *source* package 'jpeg' ...
** package 'jpeg' successfully unpacked and MD5 sums checked
** using staged installation
bash.exe: warning: could not find /tmp, please create!
checking JPEG headers and libraries
bash.exe: warning: could not find /tmp, please create!
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 179:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 180:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 181:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 182:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 183:
make: command not found
C:\Users\admin\ANACON~1\envs\rstudio\lib\R/bin/config.sh: line 319:
make: command not found
./configure.win: line 17: make: command not found
/lib/libjpeg.lib
found libjpeg in LOCAL_SOFT: /lib
seems ok, ready to go
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'jpeg'
* removing 'C:/R_Libs/jpeg'
Warning in install.packages :
installation of package ?jpeg? had non-zero exit status
* installing *source* package 'timechange' ...
** package 'timechange' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'timechange'
* removing 'C:/R_Libs/timechange'
Warning in install.packages :
installation of package ?timechange? had non-zero exit status
* installing *source* package 'maps' ...
** package 'maps' successfully unpacked and MD5 sums checked
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
running 'src/Makefile.win' ...
Warning in system(paste("make --no-print-directory", paste("-f",
shQuote(makefiles), :
'make' not found
ERROR: compilation failed for package 'maps'
* removing 'C:/R_Libs/maps'
Warning in install.packages :
installation of package ?maps? had non-zero exit status
ERROR: dependency 'lattice' is not available for package 'nlme'
* removing 'C:/R_Libs/nlme'
Warning in install.packages :
installation of package ?nlme? had non-zero exit status
ERROR: dependency 'lattice' is not available for package 'Matrix'
* removing 'C:/R_Libs/Matrix'
Warning in install.packages :
installation of package ?Matrix? had non-zero exit status
* installing *source* package 'cluster' ...
** package 'cluster' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'cluster'
* removing 'C:/R_Libs/cluster'
Warning in install.packages :
installation of package ?cluster? had non-zero exit status
ERROR: dependency 'lattice' is not available for package 'hexbin'
* removing 'C:/R_Libs/hexbin'
Warning in install.packages :
installation of package ?hexbin? had non-zero exit status
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =
vI[[i]]) :
namespace 'rlang' 0.3.4 is being loaded, but >= 1.1.0 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace ->
namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/R_Libs/lifecycle'
Warning in install.packages :
installation of package ?lifecycle? had non-zero exit status
ERROR: dependencies 'deldir', 'RcppEigen' are not available for
package
'interp'
* removing 'C:/R_Libs/interp'
Warning in install.packages :
installation of package ?interp? had non-zero exit status
ERROR: dependency 'timechange' is not available for package
'lubridate'
* removing 'C:/R_Libs/lubridate'
Warning in install.packages :
installation of package ?lubridate? had non-zero exit status
ERROR: dependency 'maps' is not available for package 'mapproj'
* removing 'C:/R_Libs/mapproj'
Warning in install.packages :
installation of package ?mapproj? had non-zero exit status
ERROR: dependencies 'nlme', 'Matrix' are not available for package
'mgcv'
* removing 'C:/R_Libs/mgcv'
Warning in install.packages :
installation of package ?mgcv? had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'vctrs'
* removing 'C:/R_Libs/vctrs'
Warning in install.packages :
installation of package ?vctrs? had non-zero exit status
ERROR: dependencies 'lattice', 'png', 'jpeg', 'interp', 'MASS' are not
available for package 'latticeExtra'
* removing 'C:/R_Libs/latticeExtra'
Warning in install.packages :
installation of package ?latticeExtra? had non-zero exit status
ERROR: dependencies 'lifecycle', 'vctrs' are not available for package
'pillar'
* removing 'C:/R_Libs/pillar'
Warning in install.packages :
installation of package ?pillar? had non-zero exit status
ERROR: dependencies 'lifecycle', 'vctrs' are not available for package
'tidyselect'
* removing 'C:/R_Libs/tidyselect'
Warning in install.packages :
installation of package ?tidyselect? had non-zero exit status
ERROR: dependencies 'lifecycle', 'vctrs' are not available for package
'purrr'
* removing 'C:/R_Libs/purrr'
Warning in install.packages :
installation of package ?purrr? had non-zero exit status
ERROR: dependencies 'lifecycle', 'pillar', 'vctrs' are not available
for package 'tibble'
* removing 'C:/R_Libs/tibble'
Warning in install.packages :
installation of package ?tibble? had non-zero exit status
ERROR: dependencies 'lifecycle', 'pillar', 'vctrs' are not available
for package 'dplyr'
* removing 'C:/R_Libs/dplyr'
Warning in install.packages :
installation of package ?dplyr? had non-zero exit status
ERROR: dependencies 'cluster', 'hexbin', 'lattice', 'latticeExtra',
'lubridate', 'mapproj', 'MASS', 'mgcv' are not available for package
'openair'
* removing 'C:/R_Libs/openair'
Warning in install.packages :
installation of package ?openair? had non-zero exit status
Hello, If you are on Windows, do you have rtools [1] installed? Also, please address your question to R-Help [2], [3], not to me
directly.
[1] https://cran.r-project.org/bin/windows/Rtools/ [2] r-help at r-project.org [3] https://stat.ethz.ch/mailman/listinfo/r-help Hope this helps, Rui Barradas -- Este e-mail foi analisado pelo software antiv?rus AVG para verificar a presen?a de v?rus. www.avg.com
--
Best Regards
Javad Bayat
M.Sc. Environment Engineering
Alternative Mail: bayat194 at yahoo.com
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.