tzuliu / ooc

This is a repository for the project of "Ordered Optimal Classification"
MIT License
8 stars 2 forks source link

Can´t install package #4

Open MartinsRodrigo opened 3 years ago

MartinsRodrigo commented 3 years ago

Installing 'ooc' as instructed yields the following error:

devtools::install_github('tzuliu/ooc')
Downloading GitHub repo tzuliu/ooc@HEAD
Skipping 1 packages not available: aspace
√  checking for file 'C:\Users\rodri\AppData\Local\Temp\RtmpAj6M69\remotes4a807872bc7\tzuliu-ooc-c9650bc/DESCRIPTION' (611ms)
-  preparing 'ooc':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  looking to see if a 'data/datalist' file should be added
-  building 'ooc_0.1.tar.gz'

Installing package into ‘C:/Users/rodri/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
ERROR: dependency 'aspace' is not available for package 'ooc'
* removing 'C:/Users/rodri/Documents/R/win-library/4.0/ooc'
Erro: Failed to install 'ooc' from GitHub:
  (convertido do aviso) installation of package ‘C:/Users/rodri/AppData/Local/Temp/RtmpAj6M69/file4a802dd97045/ooc_0.1.tar.gz’ had non-zero exit status`

I see that "aspace" was not installed because this package was removed from CRAN. When I try to install from the archive, the following error occurs:

devtools::install_version("aspace", version = "3.2", 
+                           repos = "http://cran.us.r-project.org")
Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/aspace/aspace_3.2.tar.gz
Installing package into ‘C:/Users/rodri/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'aspace' ...
** package 'aspace' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Erro: (convertido do aviso) package 'Hmisc' was built under R version 4.0.5
Execução interrompida
ERROR: lazy loading failed for package 'aspace'
* removing 'C:/Users/rodri/Documents/R/win-library/4.0/aspace'
Erro: Failed to install 'unknown package' from URL:
  (convertido do aviso) installation of package ‘C:/Users/rodri/AppData/Local/Temp/RtmpAj6M69/remotes4a8023bf4ca7/aspace’ had non-zero exit status

Any idea about how I can solve this problem?

Thanks in advance!

tzuliu commented 3 years ago

Hi,

Thanks for your email and interest in ooc. I will take a look over the weekend and get back to you as soon as possible.

Rodrigo Martins @.***> 於 2021年8月19日 週四 上午10:13寫道:

Installing 'ooc' as instructed yields the following error:

`devtools::install_github('tzuliu/ooc') Downloading GitHub repo @.*** Skipping 1 packages not available: aspace √ checking for file 'C:\Users\rodri\AppData\Local\Temp\RtmpAj6M69\remotes4a807872bc7\tzuliu-ooc-c9650bc/DESCRIPTION' (611ms)

  • preparing 'ooc': √ checking DESCRIPTION meta-information ...
  • cleaning src
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • looking to see if a 'data/datalist' file should be added
  • building 'ooc_0.1.tar.gz'

Installing package into ‘C:/Users/rodri/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) ERROR: dependency 'aspace' is not available for package 'ooc'

  • removing 'C:/Users/rodri/Documents/R/win-library/4.0/ooc' Erro: Failed to install 'ooc' from GitHub: (convertido do aviso) installation of package ‘C:/Users/rodri/AppData/Local/Temp/RtmpAj6M69/file4a802dd97045/ooc_0.1.tar.gz’ had non-zero exit status`

I see that "aspace" was not installed because this package was removed from CRAN. When I try to install from the archive, the following error occurs:

`devtools::install_version("aspace", version = "3.2",

-

                     repos = "http://cran.us.r-project.org")

Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/aspace/aspace_3.2.tar.gz Installing package into ‘C:/Users/rodri/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified)

  • installing source package 'aspace' ... package 'aspace' successfully unpacked and MD5 sums checked using staged installation R data * moving datasets to lazyload DB byte-compile and prepare package for lazy loading Erro: (convertido do aviso) package 'Hmisc' was built under R version 4.0.5 Execução interrompida ERROR: lazy loading failed for package 'aspace'
  • removing 'C:/Users/rodri/Documents/R/win-library/4.0/aspace' Erro: Failed to install 'unknown package' from URL: (convertido do aviso) installation of package ‘C:/Users/rodri/AppData/Local/Temp/RtmpAj6M69/remotes4a8023bf4ca7/aspace’ had non-zero exit status`

Any idea about how I can solve this problem?

Thanks in advance!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tzuliu/ooc/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLM3KW442G5VNMOTCNEKRDT5RSDFANCNFSM5CNHIYIA .

-- Tzu-Ping Liu, Ph.D. Dept. of Political Science UC Davis

MartinsRodrigo commented 3 years ago

Just solved the problem.

I found your ipbridging package website, with an additional instruction to install the occ package. Running the following code solved the problem when trying to install aspace:

Sys.setenv (R_REMOTES_NO_ERRORS_FROM_WARNINGS = TRUE)

tzuliu commented 3 years ago

Hi,

Glad to hear that you solve the issue. I appreciate your interest. Please let me know if you have other issues in the future.

Best, Tzu-Ping

Rodrigo Martins @.***> 於 2021年8月19日 週四 下午11:26寫道:

Just solved the problem.

I found your ipbridging package website, with an additional instruction to install the occ package. Running the following code solved the problem when trying to install aspace:

Sys.setenv (R_REMOTES_NO_ERRORS_FROM_WARNINGS = TRUE)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tzuliu/ooc/issues/4#issuecomment-902009620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLM3KRXJSZ26ATUCDDFD33T5UPDXANCNFSM5CNHIYIA .

-- Tzu-Ping Liu, Ph.D. Dept. of Political Science UC Davis

christopherdanielhare commented 3 years ago

Hi Rodrigo, thanks for bringing this issue to our attention. We've also removed the dependency in the latest version, which should address the root problem.