Skip to content

"validate" cannot detect error in R code #1418

@jnishii

Description

@jnishii

I'm trying to use nbgrader for R language, but the "Validate" button and autograder doesn't detect errors in answer cells.
I tried the following commands to throw error, but "validate" button always returns the message "Success! Your notebook passes all the tests" and I always got full score.

raise NotImplementedError()
fail()
e <- simpleError("test error")
stop(e)
throw('NotImplementedError') 

When I run the cells above, they return Error, so I think nbgrader seems not to detect the thrown error.
I'm currently using nbgrader for python on the same system without problems.
Is there some solution?

Operating system

Ubuntu 16.04.6 LTS

nbgrader --version

nbgrader version 0.6.1

jupyterhub --version (if used with JupyterHub)

0.9.6

jupyter notebook --version

6.0.2

Expected behavior

Detect errors in notebook

Actual behavior

"Validate" button doesn't detect erros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions