pak
                                
                                 pak copied to clipboard
                                
                                    pak copied to clipboard
                            
                            
                            
                        Can't install package from Github using Github Actions
I have the following workflow for installing packages with pak and then running a few tests:
 I'm having issues with installing private repos within my organization. I tried to overcome this problem in a few ways, but they all failed. I added a github PAT as a secret in the repository, and confirmed the token can access the repositories I am trying to install. I defined the package name in
I'm having issues with installing private repos within my organization. I tried to overcome this problem in a few ways, but they all failed. I added a github PAT as a secret in the repository, and confirmed the token can access the repositories I am trying to install. I defined the package name in Imports and the "owner/repo" in Remotes, but then I hit this error:
 I also directly specified the URL of the package in
I also directly specified the URL of the package in Imports:
 But the above also fails, with a different error:
But the above also fails, with a different error:
 I have a similar workflow using
I have a similar workflow using renv and a PAT that works, so I am not sure if there's a bug in pak that's preventing the package from being installed, or if I am doing something wrong. Any ideas? Also, let me know what other information I can provide that would help with the problem.
I am afraid that you'll need to create a reproducible example, without that it is very hard to help you.
Thanks for the quick reply. Fair enough, let me debug a bit more here to see if I can find the problem.
@gaborcsardi I am hitting an issue that is easy to replicate and could explain the problems above.
How to replicate:
- Install R 4.1.2
- Install renv
- Create new directory, launch R, and use renv::init(bare = TRUE)
- Restart R
- Install pakwithrenv::install("pak")
- Confirm that tidyselectis not installed withlibrary(tidyselect)
- Install tidyselectwithpakviapak::pkg_install("r-lib/tidyselect"). Install fails due to not being able to install dependencies (see 1st screenshot).
- Install tidyselectwithrenvviarenv::install("r-lib/tidyselect")(see 2nd screenshot).
See the screenshots below.
- 
Issue with pakwhen installingtidyselect: 
- 
renvis able to installtidyselect: 
Do you still have this issue?
Hey Gabor, it's been a year so I am not sure haha. Let me check again and see if the problem is still there, with the major changes to renv as well I think my issues might have been cleared.