AnomalyDetection icon indicating copy to clipboard operation
AnomalyDetection copied to clipboard

Failed to Install AnomalyDetection

Open michalmonselise opened this issue 10 years ago • 12 comments

I am on windows 8. in R 3.1.1 x64 I get the following error:

Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) : no library trees found in 'lib.loc' Error: loading failed Execution halted *** arch - x64 Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) : no library trees found in 'lib.loc' Error: loading failed Execution halted ERROR: loading failed for 'i386', 'x64'

I tried installing R in cygwin bash and got the following error:

Downloading github repo twitter/AnomalyDetection@master Installing AnomalyDetection Error in parse_deps(paste(deps, collapse = ",")) : Invalid comparison operator in dependency:

(the dependency is left blank)

michalmonselise avatar Mar 04 '15 21:03 michalmonselise

Odd, installing on OSX returns

> devtools::install_github("twitter/AnomalyDetection")
Downloading github repo twitter/AnomalyDetection@master
Installing AnomalyDetection
'/usr/local/Cellar/r/3.1.1/R.framework/Resources/bin/R' --vanilla CMD INSTALL  \
  '/private/var/folders/vt/lcrl4r_n36g6fymhk_jp4d2w0000gn/T/Rtmp3AI4b3/devtools157442bace3a/twitter-AnomalyDetection-b9a53f8'  \
  --library='/usr/local/Cellar/r/3.1.1/R.framework/Versions/3.1/Resources/library'  \
  --install-tests 

I'll do some digging to see why it might be failing for Windows 8

owenvallis avatar Mar 04 '15 21:03 owenvallis

Is there any chance of you guys making a .tar.gz file for me to install locally?

michalmonselise avatar Mar 05 '15 01:03 michalmonselise

Hi Michal Monselise, what address should I email the .tar.gz to? Alternatively, you can download the repo and create an R Studio project to build the install.

owenvallis avatar Mar 16 '15 04:03 owenvallis

Any chance we could get a tarball published somewhere? Like maybe attached to the github project (even if a non-released snapshot version)?

cjnolet avatar Apr 13 '15 14:04 cjnolet

Can we also ask for the .tar.gz please? I am trying to install it but receiving error likely due to private network.

devtools::install_github("twitter/AnomalyDetection") Downloading github repo twitter/AnomalyDetection@master Error in function (type, msg, asError = TRUE) : Could not resolve host: api.github.com

x089797 avatar Jul 12 '15 21:07 x089797

For x089797, I've had the same issue with my company firewall.

There is a work-around: download the zip file, then "build" the package with devtools::build(binary=TRUE) with working directory inside the package main file.

The build should produce a .zip, then install locally (install.packages("file.zip", repos=NULL, source = local)).

That should install ir

Eflores89 avatar Jul 12 '15 21:07 Eflores89

Eflores89, Thanks for the response. Where can I get the zip file?

x089797 avatar Jul 12 '15 21:07 x089797

x089797: go to the main page of the github repository and there is a link in the bottom right corner "download as zip"

Eflores89 avatar Jul 13 '15 00:07 Eflores89

Eflores89: I downloaded the zip file, expanded it and placed it under Z:\R-language\AnomalyDetection-master, where I have all those essential files for R packaging - DESCRIPTION, README.md, man and R subdirectories...etc. Under this working directory, I ran devtools as instructed and it gave me error as below:

devtools::build(binary=TRUE) "c:/PROGRA~1/R/R-30~1.3/bin/x64/R" --vanilla CMD INSTALL
"Z:\R-language\AnomalyDetection-master" --build

  • installing to library 'C:/Users/chenmin/AppData/Local/Temp/RtmpmmyLzN/fileadc608f7961'
  • installing source package 'AnomalyDetection' ... ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded Error in namespaceExport(ns, exports) : undefined exports: AnomalyDetectionVec Error: loading failed Execution halted ERROR: loading failed
  • removing 'C:/Users/chenmin/AppData/Local/Temp/RtmpmmyLzN/fileadc608f7961/AnomalyDetection' Error: Command failed (1)

x089797 avatar Jul 13 '15 21:07 x089797

I too downloaded the zip file and faced issues. I resolved them using the following steps

  1. Unzipped the zip file to a directory
  2. opened the "description" file and removed all lines except package and version" and saved it
  3. Rezipped the file
  4. loaded the devtools package
  5. ran install() on the newly created zipped file. It worked!

This is on windows 7 - Hope this helps for some folks who don't have to spend 5 hours on this issue. Also will help for the kind folks who develop this package to fix issues. Thanks!

ArtfulCreator avatar Oct 18 '15 20:10 ArtfulCreator

Anyway I can also get the tar.gz file? I would greatly appreciate it. email: [email protected]

Thanks!

Omar

ogutierrez310 avatar Feb 18 '16 16:02 ogutierrez310

Hi guys,

Can I have the tar.gz file for the last version of anomlydetection package. I found the tar file for Jan 06 2015 version, but it has bunch of bugs. My email is: [email protected]

Thanks,

Amir

amirva avatar Feb 27 '17 22:02 amirva