Skip to content

Commit fd4414c

Browse files
author
Frankie Robertson
committed
Add guard for availability of Base.versioninfo(...) in debuginfo(...)
1 parent cc0fb5e commit fd4414c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/RCall.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if Rhome == ""
5656
__precompile__(false)
5757
end
5858

59-
include("versioninfo.jl")
59+
include("debuginfo.jl")
6060
include("types.jl")
6161
include("Const.jl")
6262
include("methods.jl")

src/versioninfo.jl renamed to src/debuginfo.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
Print some useful information about the current RCall.jl setup.
33
If `all` is false, only RCall.jl information is printed, otherwise
44
information about your Julia and R setup is printed as well.
5+
This function is intended to be used in the Julia REPL only.
56
"""
6-
function versioninfo(; all=true)
7+
function debuginfo(; all=true)
8+
if all && !isdefined(Main, :versioninfo)
9+
error("This function is intended to be used in the Julia REPL only.")
10+
end
711
if all
812
println("RCall.jl information:")
913
end

0 commit comments

Comments
 (0)