jtextor / dagitty

Graphical analysis of structural causal models / graphical causal models.
GNU General Public License v2.0
282 stars 46 forks source link

Github installs v0.2.3 #35

Closed ohadle closed 4 years ago

ohadle commented 4 years ago

Novice R user here, so I might be doing something wrong. Installing from github (both master and v3.0) installs version 0.2.3:

Restarting R session...

> library("dagitty")
Error in library("dagitty") : there is no package called ‘dagitty’
> library(devtools)
Loading required package: usethis
> install_github("jtextor/dagitty/r")
Downloading GitHub repo jtextor/dagitty@master
✓  checking for file ‘/private/var/folders/yk/3mfv2d_d33jc54854g68hktc0000gn/T/RtmpZVW1S6/remotes236e1ab6f7a7/jtextor-dagitty-d163478/r/DESCRIPTION’ ...
─  preparing ‘dagitty’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘dagitty_0.2-3.tar.gz’

* installing *source* package ‘dagitty’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (dagitty)
> packageVersion("dagitty")
[1] ‘0.2.3’
> remove.packages("dagitty")
Removing package from ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library’
(as ‘lib’ is unspecified)

Or from the v3.0 tag:

Restarting R session...

> library(devtools)
Loading required package: usethis
> packageVersion("dagitty")
Error in packageVersion("dagitty") : there is no package called ‘dagitty’
> install_github("jtextor/dagitty/r", ref = "v3.0")
Downloading GitHub repo jtextor/dagitty@v3.0
✓  checking for file ‘/private/var/folders/yk/3mfv2d_d33jc54854g68hktc0000gn/T/Rtmp48SgpV/remotes23bca075161/jtextor-dagitty-86215de/r/DESCRIPTION’ ...
─  preparing ‘dagitty’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘dagitty_0.2-3.tar.gz’

* installing *source* package ‘dagitty’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (dagitty)

> packageVersion("dagitty")
[1] ‘0.2.3’
jtextor commented 4 years ago

The version numbers were out of sync between the website and the R package. We changed this now, latest CRAN release 0.3.0 corresponds to dagitty 3.0