m-freitag / cjpowR

A Priori Power Analyses for Conjoint Experiments
18 stars 1 forks source link

Issue with loading package #8

Open JosefineMa opened 4 months ago

JosefineMa commented 4 months ago

Hi!

I have used this package in the past without issues but I now tried to access it again (a few updates later) and it no longer works. I use the provided code if(!require(devtools)) install.packages("devtools") library(devtools) devtools::install_github("m-freitag/cjpowR") if(!require(plotly)) install.packages("plotly") library(plotly)

and get this error:

Using GitHub PAT from the git credential store. Error: Failed to install 'unknown package' from GitHub: HTTP error 401. Bad credentials

I have the latest version of R + RStudio but I tried an older version of at least Rstudio and the issue remained.

Any ideas? Thanks in advance!

jschuessler commented 3 months ago

Hi Josefine,

Sorry, I thought I had responded earlier. I just tested the code with the newest R (4.4.0) and RStudio (2024.04.2) and it works. Maybe this helps: https://stackoverflow.com/questions/70908295/failed-to-install-unknown-package-from-github

Best,

Julian