Installing Biomethyl package R Untar2 error - installation

I am attempting to install the Biomethyl package as part of a Bioinformatics internship I am working on. However I cannot seem to install the package properly. Having looked for answers over the last few days and failed, I turn to you guys.
Overall, the error I cannot seem to fix is the untar2 error (shown below)
I tried a wide variety of solutions, none of which worked.
Non-coding solutions that were attempted are the following:
i) Changing the directory of the package, locations ranged from desktop, to documents, and in the R folder itself
ii) Completely uninstalling R and RStudio as well as re-downloading the package
iii)Manually extract components of the package (failed miserably)
iv)Contacting the creator, this led me to see that my version of R (3.6) is not the issue. However this problem seems to be isolated to myself as he has not heard of similar problems from other users. Through this interaction, I also believe that there is no issue with the downloaded file.
v)Disabling all other computer functions that may have interfered with files being created or added, basically disabled my BitDefender, even if all proper authorizations were given to R and Rstudio.
As for the code, this is the code that should work as provided by the creator's github ( https://github.com/yuewangpanda/BioMethyl )
> install.packages("C:/Users/yohan/OneDrive/Documents/R/BioMethyl-master/BioMethyl_1.1.tar.gz", repos = NULL)
Which resulted in the following error
> install.packages("C:/Users/yohan/OneDrive/Documents/R/BioMethyl-master/BioMethyl_1.1.tar.gz", repos = NULL)
Installing package into ‘C:/Users/yohan/OneDrive/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Error in untar2(tarfile, files, list, exdir, restore_times) :
incomplete block on file
Warning in install.packages :
installation of package ‘C:/Users/yohan/OneDrive/Documents/R/BioMethyl-master/BioMethyl_1.1.tar.gz’ had non-zero exit status
Along with this, I tried swapping around the slashes, doubling them up, inverting their orientation (front slash instead of backslash).
I also tried adding type="source" which resulted in the same error.
Additionally, I tried to run the code directly into the console, again, it did not work.
Lastly, I tried installing it directly from the github repo and not from the downloaded file, but this was not possible due to privacy limitations on the github repo.
I thank you in advance for your help, also, if there are any issues with the question format please let me know and I will edit them accordingly.
Additional information:
OS: Windows 10
R Version:
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 6.0
year 2019
month 04
day 26
svn rev 76424
language R
version.string R version 3.6.0 (2019-04-26)
nickname Planting of a Tree

I ended up figuring it out, i'll leave the answer here in case anyone else encounters this problem.
The issue seems to be downloading the repository as a whole, if you download the .tar.gz file in its unzipped format, it will work (at least it did for me)
This is the exact link from which I downloaded my copy of the file that worked for me.
https://github.com/yuewangpanda/BioMethyl/blob/ffcba473a3b12a159ce2dfdaf63c4f63d84b40ef/BioMethyl_1.1.tar.gz
Best of Luck
Y.Lefol

Related

Building Brave-Browser in Windows doesn't work

I am trying to build Brave Browser in Windows 10 64bit 15.8GB RAM and more than 200gb in free space.
I am following this repo: https://github.com/brave/brave-browser/wiki
I have installed all the requeriments for the build on Windows, however, when I run npm run init I get the following error:
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:db7a486094873e3944b8e27ab5b23a3ae3c401e7...
error: The following untracked working tree files would be overwritten by checkout:
pylint.bat
Please move or remove them before you switch branches.
Aborting
fatal: Could not detach HEAD
Failed to update depot_tools.
Anyone knows why that might be happening? I have tried installing python and setting the enviroment variable, rebooting the machine, tried installing VS Code a few times thinking it might be it but the error is always the same. I have also tried the Brave Community and I cannot see anything similar.
Any help would be appreciated,
I believe it's an upstream problem in Chromium, so a fix should appear in Brave soon. See https://bugs.chromium.org/p/chromium/issues/detail?id=996359 for details, including a potential workaround (though I haven't personally tested it).

Building OpenJDK8 on Windows x64

so I am trying to compile openjdk8 from sources, but I am stuck at missing files problem in the end of compilation process...
Here is the software that I use:
Windows 7 SP1 x64
Windows SDK for Windows 7.1
Microsoft .NET Framework 4
Visual Studio 2010 Express Edition
GNU make 3.82 (compiled by myself)
Freetype 2.3 (compiled by myself)
Oracle JDK 1.7 update 71
Direct X 9.0 (August 2009)
Cygwin
Here are the manuals which I was reading from:
Official README
Royvanrijn's build guide
Some other build guide
Build guide using MSYS
With all these guides I am able to let it compile, however during the Building Images - step , I get an error that some files are missing ( and they are indeed missing ) , which makes me think that something has gone wrong during the build...
There are several points where I afraid I might be doing something wrong...
Cygwin
Right now I use cygwin version 2.8. The openjdk configure script requires cygwin version >1.7 but fails to recognize that 2.8 is greater than 1.7 and throws me an error, so i've tweaked the script (made build work like 2 months ago)...
./configure
My configure command looks as follows:
./configure --disable-ccache --with-freetype=/cygdrive/c/freetype
Maybe I need more arguments here to make it work ( note that i've copied self compiled make executable to cygwin bin folder, so that i dont need to provide its location )
Visual Studio C++ 2010 Express
I would rather try Professional Trial version, but it cannot be found anywhere anymore... (except torrents...) I have a strong feeling that Express version is not suitable for openjdk build. I also get that error with missing ammintrin.h file, but it is easily resolved by creating the empty header file in the include folder of Visual Studio installation.
My basic procedure of building is:
Install all the software above
hg clone http://hg.openjdk.java.net/jdk8/jdk8
./get_source.sh
./configure --disable-ccache --with-freetype=/cygdrive/c/freetype`
make clean images
However, here how it ends :
Does anyone have any clue of how to solve this?
I found the proper fix: using the Cygwin installer, downgrade Grep to 2.27, which properly ignores CRLF line endings.
Run the Cygwin setup (e.g. setup-x86_64.exe)
Advance through the setup wizard until you get to the package selection
Choose "Full" from the View drop-down menu
Type "grep" into the search field
Click the icon in the New column until it shows a 2.x version (2.27 as of this writing)
Click Next and then Finish.
I found myself in the same position as you, except in my case I need OpenJDK build to be repeatable, so "run make repeatedly until it finishes" wasn't an acceptable solution.
Through some experimenting, I found the root cause:
grep was failing because the file being processed had Windows line endings (CRLF)
The Windows line endings were due to the fact that the file is generated by a Java app (fixpaths) which emits platform-native line endings
Identifying fixpaths led me to an old OpenJDK e-mail thread, which reported that some users were having the same problem and fixed it by downgrading.
This gave me the idea to try downgrading grep. I did so, and it worked.
So, after couple of days at this task my only approach was to ignore the errors with the missing files and continue extracting files... This resulted in still working jdk image, which i currently use. My guess is that the errors come frome Oracle boot jdk. Since i am compiling an openjdk, it cannot find oracleJDK files in its headers and thus produces errors.
So, if anyone also gets same errors a me, try to ignore the missing files error and continue the images build.

Trouble installing hmatrix through MSYS2 on Windows 10

I've been trying to install hmatrix on my (64-bit) Windows 10 computer; after searching through and trying many possible solutions (including the instructions under "Windows" and "Alternative Windows Build" given here), I decided to pursue the course of action given on this Reddit thread.
However, when I type in the command
cabal install hmatrix -fopenblas --extra-lib-dir=${c:\msys64\mingw64\bin} --extra-include-dir=${c:\msys64\mingw64\include}
into the MSYS2 shell, the following log is given:
Resolving dependencies...
Configuring hmatrix-0.17.0.2...
Failed to install hmatrix-0.17.0.2
Build log ( C:\Users\Christian\AppData\Roaming\cabal\logs\hmatrix-0.17.0.2.log ):
Configuring hmatrix-0.17.0.2...
cabal.exe: Missing dependency on a foreign library:
* Missing C library: libopenblas
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Leaving directory 'C:\msys64\tmp\cabal-tmp-4244\hmatrix-0.17.0.2'
cabal.exe: Error: some packages failed to install:
hmatrix-0.17.0.2 failed during the configure step. The exception was:
ExitFailure 1
However, when I check the directory c:\msys64\mingw64\bin, I see that libopenblas.dll is right there; I don't know why cabal can't seem to find it.
Any insight into why this is not working or what to do?
UPDATE:
The files libopenblas.dll.a and libopenblas.a are in the directory c:\msys64\mingw64\lib. Is it possible I need to somehow include this directory as well? (If I do, how would I do that?)
I also downloaded the files in Alex Vorobiev's comment below and put them in c:\msys64\mingw64\bin if they are .dlls or c:\msys64\mingw64\lib if they are .libs. The header files were already contained in c:\msys64\include\openblas.
I tried several variations on the command in the original post after making these changes, including switching \bin with \lib and switching \include with \include\openblas, but all of them still give the same error.
I'm a bit suspicious about the
if os(windows)
if flag(openblas)
extra-libraries: libopenblas
in the cabal file, could you unpack it and remove the "lib" part? If that doesn't work please post a log with -v3 output. I've seen quite a few people with troubles installing this package. So could you also open a ticket on the GHC bug tracker if this doesn't work (and CC me "Phyx-")?
Secondly, you never said which version of GHC you're using. 8.0.1 should have far less trouble (and won't need the hack to get it working in GHCi) since the runtime linker has been overhauled and should be much better on Windows. 8.0.2 will likely include the new import libraries support as well.

Is Haskell Platform 7.10.2-a1 missing documents?

I installed Haskell Platform 7.10.2-a1 64bit-signed.pkg on a MacBook Pro running OS X 10.11.1.
It brought up a nice display in Safari. When I click on 'Libraries' and the 'Codec.Compression.Zlib', i get a page of Safari can't find the file with the url file:///Library/Haskell/ghc-7.10.2-x86_64/lib/zlib-0.5.4.2/doc/html/Codec-Compression-Zlib.html
I searched the output of "ghc-pkg" and found a bunch more missing, including vector, syb, split, parsec, parallel, QuickCheck -- 42 in all.
What did I do wrong?
Thanks!
(Answer applies to version 7.10.3.)
You didn’t do anything wrong.
Yes, the Haskell Platform 7.10.3 64bit.pkg installer really is missing HTML Haddock documentation for all non-GHC packages. You can quickly verify this by opening up the installer, choosing File > Show Files (⌘I), and searching for Data-Text.html; the only result will be .../src/Data-Text.html, which is just the prettyprinted source code (produced by hscolour), not the Haddock documentation.
I'm not sure why the documentation is missing from the official packages. As a workaround you could do your own build of Haskell Platform. When I tried it, it worked for me, and all the documentation was there.
git clone https://github.com/haskell/haskell-platform.git
cd haskell-platform
git checkout tags/7.10.3
curl -OL http://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-apple-darwin.tar.xz
./platform.sh ghc-7.10.3-x86_64-apple-darwin.tar.xz
After several minutes, the package ended up in the build/product directory.

libRInside.a an empty file

I'm trying to compile the qtdensity example from the RInside examples folder, using Qt, Windows 7, R 32bit.
I have followed all the instructions posted online on how to set up these tools since my ultimate goal is to develop a C++/R application in Qt.
When I try to build the project I get the following error:
E:\dev\R-2.15.2\library\RInside\lib\i386\libRInside.a:-1: error: file not recognized: File truncated
Indeed, the libRInside.a file is empty as well as the libRInside.dll file in the same folder.
I have installed, uninstalled, installed again the RInside package using the install.packages("RInside", type="source") command.
The same problem does not occur with the Rcpp package, installed the same way.
I would greatly appreciate any insights on this. I've recently started with C++ and as a result it has taken me a lot of effort to set up everything so far.
Thank you!
Laura
Not sure what I did wrong but I solved it by copy-paste the same files from the archive available at the CRAN page of RInside

Resources