Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Scratch = "6c6a2e73-6563-6170-7368-637461726353"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"

[weakdeps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"

[extensions]
DataFrames = "DataFrames"

[compat]
FileIO = "1.0.6"
JLD2 = "0.4.15"
MacroTools = "0.5"
Requires = "0.5.2, 0.6, 1"
Scratch = "1"
UnPack = "1.0.1"
julia = "1.0"
julia = "1.9"

[extras]
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
Expand Down
10 changes: 5 additions & 5 deletions src/DrWatson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ include("saving_files.jl")
include("dict_list.jl")

# Functionality that requires Dataframes and other heavy dependencies:
using Requires

function __init__()
# Other init functionality here

using DataFrames

# Update messages
using Scratch
Expand All @@ -61,10 +65,6 @@ const update_version = "-"
const update_name = "update_v$update_version"

# Get scratch space for this package
function __init__()
@require DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" begin
include("result_collection.jl")
end

_display_update = if env_var in keys(ENV)
try
Expand Down
Loading