twitter / AnomalyDetection

Anomaly Detection with R
GNU General Public License v3.0
3.55k stars 776 forks source link

Failed to Install AnomalyDetection #23

Open michalmonselise opened 9 years ago

michalmonselise commented 9 years ago

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)

owenvallis commented 9 years ago

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

michalmonselise commented 9 years ago

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

owenvallis commented 9 years ago

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.

cjnolet commented 9 years ago

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

x089797 commented 9 years ago

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

Eflores89 commented 9 years ago

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

x089797 commented 9 years ago

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

Eflores89 commented 9 years ago

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

x089797 commented 9 years ago

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)
ArtfulCreator commented 8 years ago

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!

ogutierrez310 commented 8 years ago

Anyway I can also get the tar.gz file? I would greatly appreciate it. email: ogutierrez310@gmail.com

Thanks!

Omar

amirva commented 7 years ago

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: amir.vasebi@gmail.com

Thanks,

Amir