Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear documentation for swap_initials() within the format_publications function. #114

Open
fmegahed opened this issue Aug 8, 2022 · 1 comment

Comments

@fmegahed
Copy link

fmegahed commented Aug 8, 2022

Hello,

Thank you for your great work. I was trying to modify the format_publications() and as I was looking at the source code, I was not able to access the underlying function swap_initials(). Would you please either add it to the package or make its code available?

Thank you.

@GuangchuangYu
Copy link
Collaborator

> scholar:::swap_initials
function (author.name) 
{
    if (is.null(author.name)) 
        return(NULL)
    sub("(.*) (.*)", "\\2, \\1.", trimws(author.name))
}
<bytecode: 0x55f8a0758668>
<environment: namespace:scholar>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants