trevorld / findpython
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.
cran-comments.rst has changed.

@@ -96,7 +96,7 @@
Loading
96 96
        }
97 97
    }
98 98
    # Try using reticulate::py_discover_config()$python_versions if can't find a suitable command
99 -
    if(system.file("reticulate") != "") { 
99 +
    if (requireNamespace("reticulate", quietly=TRUE)) { 
100 100
        python_cmds <- reticulate::py_discover_config()$python_versions
101 101
        for(cmd in python_cmds) {
102 102
            if(is_python_sufficient(cmd, minimum_version, maximum_version, required_modules)) { 
@@ -104,7 +104,8 @@
Loading
104 104
            }
105 105
        }
106 106
    }
107 -
    if(is.null(error_message)) { error_message <- paste("Couldn't find a sufficient Python binary.",
107 +
    if (is.null(error_message)) { 
108 +
        error_message <- paste("Couldn't find a sufficient Python binary.",
108 109
                    "If you haven't installed the Python dependency yet please do so.",
109 110
                    "If you have but it isn't on the system path (as is default on Windows) please add it to path",
110 111
                    "or set options('python_cmd'='/path/to/binary') ",
Files Coverage
R/find_python_cmd.r 97.80%
Project Totals (1 files) 97.80%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading