analyticalmonk / Rperform

:bar_chart: R package for tracking performance metrics across git versions and branches.
https://analyticalmonk.github.io/Rperform
GNU General Public License v3.0
65 stars 9 forks source link

Error (evaluation nested too deeply) when using Rperform in iregnet #37

Open RoverVan opened 7 years ago

RoverVan commented 7 years ago

Hey @analyticalmonk @tdhock , I am the student of iregnet on 2017 GSoC. Recently i have found some errors when I use Rperform to obtain iregnet performance across two branches.

The code below is what I used in Rperform. It means that optimization branch is to be merge into master branch.

>library(Rperform) >setwd("PATH/TO/PROJECT/iregnet/") >plot_branchmetrics(test_path = "tests/testthat/test_elemStatsLearn.R", metric = "time", branch1 = "optimization", branch2 = "master", save_data = F, save_plots = F)

When the code is run, the error messages has shown like this:

Error: evaluation nested too deeply: infinite recursion / options(expressions=)? Error during wrapup: evaluation nested too deeply: infinite recursion / options(expressions=)?

When changing the parameter in branch1, such as cv branch in iregnet, the same problem occurs. However, when I use the function of single branch(plot_metrics()) on master branch, it successfully run. It suggests that the master branch is not compatible with the function that across two branches.

Here is some of my sessionInfo:

R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X Yosemite 10.10.5 Rperform_0.0.0.9000 testthat_1.0.2 and the iregnet is the current version of iregnet

Please contact me if you need any more informations about iregnet or the error messages.

analyticalmonk commented 7 years ago

Hi @RoverVan Thanks for reporting this. I will have a look at it and get back to you.

analyticalmonk commented 7 years ago

@DevinderKaur Please have a look into this.

tdhock commented 7 years ago

Hey @analyticalmonk @DevinderKaur this issue is blocking us from moving forward in the iregnet GSOC2017 project -- it is about speed optimization, and we really want to use Rperform.

Do you have any idea about what is causing the error? Any idea what parts of the code need to be modified for a fix? Maybe I or @RoverVan could submit a PR if you point us in the right direction. Thanks in advance.