Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Mata function name causes command to fail to load in Stata 17 #25

Open
@dj866

Description

@dj866

With the recent Stata 17 update, the command now gives the following error:

st_sortlist() is built-in
(233 lines skipped)
(error occurred while loading readreplace.ado)
r(3000);

Looking at the ado, the issue is that "st_sortlist()" now appears to be a function within Stata (although it still does not appear in the Stata help file for Mata), so simply changing the name of this function allows the command to run correctly. I simply replaced all references to "st_sortlist()" with "st_sortname" and this seemed to fix the problem.

Not a Mata expert, so someone with more knowledge of the command should probably double check my work. Here it is

readreplace.ado.zip

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