'How to sort vignettes for a packge in a given order?

I have 5 vignettes in an R package, and want them to be shown in a particular order using either vignette(package="...") or browseVignettes(package="..."). They were originally in one long document, and are meant to be read/browsed in order.

Is this possible? If so, how?

What I get is sorted by the title (not the filename, as I tried, using A_..., B_..., ...)

Vignettes in package ‘vcdExtra’:

E_continuous            Continuous predictors (source, html)
A_creating              Creating and manipulating frequency tables
                        (source, html)
C_loglinear             Loglinear Models (source, html)
D_mosaics               Mosaic plots (source, html)
B_tests                 Tests of Independence (source, html)

I also tried making the titles be like 01_Creating and manipulating frequency tables, but this gave an error in R CMD check.



Solution 1:[1]

First of all, as mousetail has said, on_guild_join only takes one argument. You should only have guild as the function's argument. Secondly, since you're using a guild object, you should already be able to access the guild's owner through guild.owner. Do view the revised code below.

@client.event
async def on_guild_join(guild):
    try:
        await guild.owner.send("I'm now in your server!")
    except: # occurs if your bot cannot send dm to the owner
        print(f"{guild.owner} has their dms turned off")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bagle