Skip to content

Cannot install on Windows because of symlink #76

@plietar

Description

@plietar

PR #62 added a symbolic link from include to inst/include.

Unfortunately I cannot get dqrng to install on WIndows anymore, since it seems symbolic links on Windows require admin permissions.

I added this repository to my Remotes in DESCRIPTION:

Remotes:
  daqana/dqrng

See the CI run here: https://github.com/mrc-ide/malariasimulation/actions/runs/7726106082/job/21061725003

Downloading GitHub repo daqana/dqrng@HEAD
sitmo (NA -> 2.0.2   ) [CRAN]
BH    (NA -> 1.84.0-0) [CRAN]
Installing 2 packages: sitmo, BH
Installing packages into 'D:/a/_temp/Library'
(as 'lib' is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/sitmo_2.0.2.zip'
Content type 'application/zip' length 585033 bytes (571 KB)
==================================================
downloaded 571 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/BH_1.84.0-0.zip'
Content type 'application/zip' length 21468566 bytes (20.5 MB)
==================================================
downloaded 20.5 MB

package 'sitmo' successfully unpacked and MD5 sums checked
package 'BH' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\runneradmin\AppData\Local\Temp\RtmpW41gcK\downloaded_packages
── R CMD build ─────────────────────────────────────────────────────────────────
* checking for file 'C:\Users\runneradmin\AppData\Local\Temp\RtmpW41gcK\remotesd842c9b3950\daqana-dqrng-dcaaa0e/DESCRIPTION' ... OK

Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :

  problem copying .\daqana-dqrng-dcaaa0e\include to C:\Users\RUNNER~1\AppData\Local\Temp\RtmpOKpL14\Rbuild1bc43a887ed3\daqana-dqrng-dcaaa0e\include: Permission denied

 ERROR

copying to build directory failed

Error: Error: Failed to install 'dqrng' from GitHub:
  ! System command 'Rcmd.exe' failed
Execution halted
Error: Process completed with exit code 1.

Honestly I don't really understand WIndows' support for symlinks, or how the repo could even have been cloned in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions