Open talassio opened 9 years ago
Hi @talassio,
Thanks for submitting this issue; we will have to look into this.
Did you clone a repository or are you following steps from http://ohi-science.org/pages/install.html?
Dear Julia,
I cloned the ecu repository and installed the required packages one by one.
Looking forward to your reply,
best,
Andres
On 16 April 2015 at 17:11, Julia Lowndes notifications@github.com wrote:
Hi @talassio https://github.com/talassio,
Thanks for submitting this issue; we will have to look into this.
Did you clone a repository or are you following steps from http://ohi-science.org/pages/install.html?
— Reply to this email directly or view it on GitHub https://github.com/OHI-Science/ohicore/issues/169#issuecomment-93846116.
Julia,
as discussed:
install.packages('devtools') install.packages('psych') devtools::install_github('ramnathv/rCharts') devtools::install_github('OHI-Science/ohicore')
please add as required packages in calculate_scores.R:
require(pscych) require(ohicore)
Cheers
Hi @talassio,
I have an answer for you. This is what you'll need to install, which I have updated in lines 2-4 of calculate_scores.r
. Note that you are installing the dev branch of ohicore; this is important that the @dev is included in the install_github
call so that you access our most up-to-date repo.
library(devtools) # install.packages('devtools')
install_github("ohi-science/ohicore@dev")
library(ohicore)
With this, you should not have any more problems with psych
and rCharts
.
Marvelous! On Apr 21, 2015 5:43 AM, "Julia Lowndes" notifications@github.com wrote:
Hi @talassio https://github.com/talassio,
I have an answer for you. This is what you'll need to install, which I have updated in lines 2-4 of calculate_scores.r https://github.com/OHI-Science/gye/blob/draft/region2015/calculate_scores.R#L2-L4. Note that you are installing the dev branch of ohicore; this is important that the @dev https://github.com/dev is included in the install_github call so that you access our most up-to-date repo.
library(devtools) # install.packages('devtools') install_github("ohi-science/ohicore@dev") library(ohicore)
— Reply to this email directly or view it on GitHub https://github.com/OHI-Science/ohicore/issues/169#issuecomment-94645745.
Just pulled the updated gye repo, and line install_github("ohi-science/ohicore@dev")
fails with message
ERROR: dependency ‘rCharts’ is not available for package ‘ohicore’
* removing ‘/home/cesma/R/x86_64-pc-linux-gnu-library/3.2/ohicore’
Error: Command failed (1)
In addition: Warning message:
package ‘rCharts’ is not available (for R version 3.2.0)
to fix, add devtools::install_github('ramnathv/rCharts')
before ohicore@dev
Also fails, with message
> require(methods)
> launch_app()
Loading required package: shiny
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘git2r’
Error in loadNamespace(name) : there is no package called ‘git2r’
fix by prepending with
library(git2r)
and finally, launch_app() blows up with
> launch_app()
Error in normalizePath(path, winslash = "/", mustWork = TRUE) :
path[1]="github": No such file or directory
hope this helps,
Cheers, Andrew
Sorry about this. Thanks for the detail; we are investigating and will get back to you!
Hi Andrew,
Thanks for your patience. The proper way to install ohicore is to first install the OHI-Science version of rCharts
, as in the code below.
I have added a script that you can run that will do this for you: gye/region2015/install_ohicore.r
.
Cheers, Julie
# remove old packages
for (p in c('ohicore','ohigui','rCharts')){
if (p %in% rownames(installed.packages())){
lib = subset(as.data.frame(installed.packages()), Package==p, LibPath, drop=T)
remove.packages(p, lib)
}
}
# install dependencies
for (p in c('devtools')){
if (!require(p, character.only=T)){
install.packages(p)
require(p, character.only=T)
}
}
# install packages
install_github('ohi-science/rCharts')
install_github('ohi-science/ohicore@dev')
Hello Julia,
just followed all the steps and still can't make launch_app_code.R work:
launch_app() Loading required package: shiny Error in normalizePath(path, winslash = "/", mustWork = TRUE) : path[1]="github": No such file or directory
Hope this helps.
Cheers,
Andrew
On 22 April 2015 at 13:10, Julia Lowndes notifications@github.com wrote:
Hi Andrew,
Thanks for your patience. The proper way to install ohicore is to first install the OHI-Science version of rCharts, as in the code below.
I have added a script that you can run that will do this for you: gye/region2015/install_ohicore.r.
Cheers, Julie
remove old packagesfor (p in c('ohicore','ohigui','rCharts')){
if (p %in% rownames(installed.packages())){ lib = subset(as.data.frame(installed.packages()), Package==p, LibPath, drop=T) remove.packages(p, lib) } }
install dependenciesfor (p in c('devtools')){
if (!require(p, character.only=T)){ install.packages(p) require(p, character.only=T) } }
install packages
install_github('ohi-science/rCharts') install_github('ohi-science/ohicore@dev')
— Reply to this email directly or view it on GitHub https://github.com/OHI-Science/ohicore/issues/169#issuecomment-95279720.
Sourcing launch_app stops with the error:
Replacing in dir_app/ui.R on line 98
with
as per https://github.com/ramnathv/rMaps/issues/63 seems that the App works, except no map is drawn.