Skip to content

Add function Pkg.copy_examples("package_name") #3093

@ufechner7

Description

@ufechner7

Feature request

After creating a user project you often want to run some of the examples that are often provided with packages.

There should be a default location for examples, e.g. a folder examples in the package directory.

With

using Pkg
pkg"add KiteViewers"
pkg"copy_examples KiteViewers"

a folder examples should be created and the examples from https://github.com/aenarete/KiteViewers.jl/tree/main/examples should
be copied into this folder. In addition the permissions of the files should be changed to allow editing of the examples.

This feature would:

  1. encourage package authors to provide examples at a standard location
  2. make it easier for users to install the examples and to try them out

At discourse I here a lot of questions from new users these days that ask how to install and run examples. Many then use git to check out the package source code which results in further confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions