Entering edit mode
Hello,
I am starting with the development of packages under Bioconductor... For the moment, I try to understand the construction of a package and for that, I try to compile "Rsamtools" that I take as an example.
But when I try to compile and install the package, I get this error message under Windows:
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'Rsamtools'
finding HTML links ... done
ApplyPileupsParam-class html
BamFile-class html
finding level-2 HTML links ... done
BamViews-class html
BcfFile-class html
FaFile-class html
PileupFiles-class html
Rsamtools-package html
RsamtoolsFile-class html
RsamtoolsFileList-class html
ScanBamParam-class html
ScanBcfParam-class html
TabixFile-class html
applyPileups html
defunct html
deprecated html
headerTabix html
indexTabix html
pileup html
quickBamFlagSummary html
readPileup html
scanBam html
scanBcf html
scanFa html
scanTabix html
seqnamesTabix html
testPairedEndBam html
zip html
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'Rsamtools' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/KarlHal/Documents/R/win-library/4.1/00LOCK-Rsamtools/00new/Rsamtools/libs/x64/Rsamtools.dll':
LoadLibrary failure: Le module sp�cifi� est introuvable.
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/KarlHal/Documents/R/win-library/4.1/Rsamtools'
* restoring previous 'C:/Users/KarlHal/Documents/R/win-library/4.1/Rsamtools'
Exited with status 1.
But you can try to install an R package from source without problem, for example:
install.packages("jsonlite", type = "source")
What could be the problem? A problem of permissions?
With my thanks !
Franck
Finally, I only encounter this problem with Rsamtools. It works fine with the other packages.
Thank you for your help!
Can you include the command you're running (I guess it's
BiocManager::install("Rsamtools", type = "source")
)? It would also be useful to see the any output that comes before** R
since that's where the C code compilation is reported.