aaronpeikert / repro

Easy Setup of a Reproducible Workflow
GNU General Public License v3.0
33 stars 7 forks source link

Warning messages when using automate() #61

Closed hille closed 3 years ago

hille commented 3 years ago

Hey! When using the Example Repro Template (as a project that is saved in a folder on a network drive) and running automate(), the markdown.html file is not created and I get the following warning messages:

automate()
√ Setting active project to '//mpib-berlin.mpg.de/Xfolder/Yfolder/Zfolder/Reproducibility_Workshop/testproject'
√ Directory `.repro` created!
√ Writing '.repro/Dockerfile_base'
√ Writing '.repro/Dockerfile_packages'
√ Writing '.repro/Dockerfile_manual'
√ Writing 'Dockerfile'
√ Writing '.repro/Makefile_Rmds'
√ Writing '.repro/Makefile_Docker'
√ Writing '.dockerignore'
* Modify '.dockerignore'
√ Writing 'Makefile'
* You probably want to add:
  'markdown.html'
  to the 'Makefile'-target 'all'.
* Modify 'Makefile'
√ `Makefile` allready exists, skip creating it.
Warnmeldungen:
1: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
2: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
3: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
4: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
5: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
6: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
7: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig
8: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\mpib-berlin.mpg.de": Der angegebene Pfadname ist ungültig

Also it says "*Modify '.dockerignore'. What should I modify there? I am using Windows 10, R version 4.0.4 (2021-02-15), Docker Desktop with Docker Engine v20.10.2 Thanks for your help!

aaronpeikert commented 3 years ago

Hey Maike, this warning seems to be just a warning (according to https://stackoverflow.com/questions/27317692/finding-absolute-path-for-file-on-network-drive). However, a possible solution is to attach the network drive as a virtual drive (it just assigns a drive letter, here S: similar to the normal C:):

system("net use s: \\\\mynetwork\\path")

To delete it:

system("net use s: /Delete")

Solutions found at https://stackoverflow.com/questions/27317692/finding-absolute-path-for-file-on-network-drive#comment43098453_27317692 & https://stackoverflow.com/a/37429813

aaronpeikert commented 3 years ago

I close this, feel free to reopen @hille.