Error: flake 'github:pchabros/r-package-manager' does not provide attribute 'templates.default' or 'defaultTemplate'

Hello,
I have repo r-package-manager where I have flake.nix with templates.default attribute. Output of nix flake show seems to look ok:

└───templates
    └───default: template: R Package Manager application

but when I try nix flake init --template 'github:pchabros/r-package-manager' I’m getting the following error:

error: flake 'github:pchabros/r-package-manager' does not provide attribute 'templates.default' or 'defaultTemplate'

I’ve even created another repo with identical flake.nix and template - nix-templates and when I run nix flake init --template 'github:pchabros/nix-templates' it works as expected.

This flake has a template called app and not one called default:

so the error is correct. This would work instead:

nix flake init -t github:pchabros/r-package-manager#app

Sry, I changed it later to app. but still:
This works:

nix flake init --template 'github:pchabros/nix-templates#app'

and this gives error:

nix flake init --template 'github:pchabros/package-manager#app'

For me this works, when adjusting the repo name to r-package-manager as per the OP:

% nix flake init --template 'github:pchabros/r-package-manager#app'
wrote: /home/benaryorg/.envrc
wrote: /home/benaryorg/flake.nix
wrote: /home/benaryorg/r-pm.json
%

Clarification: this is using commit 64b9075e which is from 9 hours ago, so I assume it was the typo there. If there is a second repository (without the r- prefix) it is probably set to private since GitHub responds with a 404 for me.

Indeed. The same command which gave error before now works. It’s strange.
But good that it works. Thank you all for help!