Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax of error parameter of tryCatch in setup_r_environment action. #929

Merged
merged 1 commit into from
Oct 19, 2015

Conversation

nsoranzo
Copy link
Member

@yhoogstrate
Copy link
Member

I got this one in dexseq:

* installing *source* package ‘Cairo’ ...
** package ‘Cairo’ successfully unpacked and MD5 sums checked
configure: error: Cannot use cairo-ft backend, although cairo claims it is working. Please check your caito installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly.
ERROR: configuration failed for package ‘Cairo’

I am not sure whether it's your PR or cairo

Edit:
package_deseq_2_8_2 works

@mvdbeek
Copy link
Member

mvdbeek commented Oct 16, 2015

@yhoogstrate it's cairo. This is very interesting. I have a fix over in galaxyproject/tools-iuc#312 that I can separate out from the PR. Haven't tested this PR ( PR #929 ) right here yet.

@yhoogstrate
Copy link
Member

deseq2 1.8.2 and package_r_edger_3_11_0 install flawless, and the error logs don't contain weird error messages in STDERR that should be picked up

package_r_ggplot2_0_9_3 fails with a compilation-failed-error and ends up in error state in Galaxy as it should:

 Rscript -e "tryCatch( { install.packages(c('rcpp_0.9.9.tar.gz'), lib = '/tmp/galaxy_r_fix/galaxy/tool_dependencies/ggplot2/0.9.3/iuc/package_r_ggplot2_0_9_3/07de191649b4', repos = NULL, dependencies = FALSE) }, error = function(e) { print(e); quit(status = 1) }, warning = function(w) { if ( grepl('had non-zero exit status|is not writable|installation of one of more packages failed', as.character(w)) ) { print(w); quit(status = 1) } } )"
STDERR
* installing *source* package ‘Rcpp’ ...
** libs
In file included from ../inst/include/Rcpp/sugar/logical/logical.h:27:0,
                 from ../inst/include/Rcpp/sugar/sugar_forward.h:29,
                 from ../inst/include/RcppCommon.h:324,
                 from ../inst/include/Rcpp/Date.h:25,
                 from Date.cpp:28:
../inst/include/Rcpp/sugar/logical/SingleLogicalResult.h:36:2: error: recursive type ‘Rcpp::sugar::conversion_to_bool_is_forbidden<x>’ undefined
  conversion_to_bool_is_forbidden<x>{
  ^
make: *** [Date.o] Error 1
ERROR: compilation failed for package ‘Rcpp’

The fix of @nsoranzo seems to do the job correctly.

@bgruening
Copy link
Member

👍 from me as well.

@martenson
Copy link
Member

@galaxybot test this

jmchilton added a commit that referenced this pull request Oct 19, 2015
Fix syntax of error parameter of tryCatch in setup_r_environment action.
@jmchilton jmchilton merged commit ca4a09b into galaxyproject:dev Oct 19, 2015
@nsoranzo nsoranzo deleted the R_install_fix branch October 19, 2015 13:43
@jmchilton jmchilton modified the milestone: 16.01 Jan 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants