You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Up to here there is no error message but it seems the R package was not built so I followed the advice from this post: #1 (adding "twoBit.pkg" to the first line of the Makefile). Here I retry to "make" the file with this change:
(base) julien@julien-Precision-7920-Tower:~/TwoBit$ make
rm -Rf pkg.roxygen
(R CMD roxygen pkg)||(./Roxygen pkg)
/usr/lib/R/bin/Rcmd: 62: exec: roxygen: not found
First time using roxygen2. Upgrading automatically...
Updating roxygen version in /home/julien/TwoBit/pkg.roxygen/DESCRIPTION
Loading twoBit
Re-compiling twoBit
─ installing source package ‘twoBit’ ...
make[1] : on entre dans le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
rm -f *.o *.so
make[1] : on quitte le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
ERROR: a 'NAMESPACE' file is required
─ removing ‘/tmp/Rtmp8NVmgt/devtools_install_47ef2e2f56d8/twoBit’
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command error
Calls: roxygenize ... eval -> with_envvar -> force -> do.call ->
De plus : Warning message:
roxygen2 requires Encoding: UTF-8
Exécution arrêtée
Makefile:13 : la recette pour la cible « twoBit.pkg » a échouée
make: *** [twoBit.pkg] Erreur 1
It seems that I have to make roxygen2 require UTF-8 so I add "Encoding: UTF-8" to the DESCRIPTION file in "pkg". Here I try again with this change:
(base) julien@julien-Precision-7920-Tower:~/TwoBit$ make
rm -Rf pkg.roxygen
(R CMD roxygen pkg)||(./Roxygen pkg)
/usr/lib/R/bin/Rcmd: 62: exec: roxygen: not found
First time using roxygen2. Upgrading automatically...
Updating roxygen version in /home/julien/TwoBit/pkg.roxygen/DESCRIPTION
Loading twoBit
Re-compiling twoBit
─ installing source package ‘twoBit’ ...
make[1] : on entre dans le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
rm -f *.o *.so
make[1] : on quitte le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
ERROR: a 'NAMESPACE' file is required
─ removing ‘/tmp/RtmpWd1dkj/devtools_install_48d174b82b77/twoBit’
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command error
Calls: roxygenize ... eval -> with_envvar -> force -> do.call ->
Exécution arrêtée
Makefile:13 : la recette pour la cible « twoBit.pkg » a échouée
make: *** [twoBit.pkg] Erreur 1
So finally it doesn't seem to be an issue with UTF-8 encoding but I don't see where the problem is coming from... And I cannot call the package from R.
Thanks a lot for your help!
Best,
Julien
The text was updated successfully, but these errors were encountered:
Hello,
I am having trouble trying to install the package and calling it from R, here is my issue:
I am using the following commands to install (in bold, the rest is my computer output):
(base) julien@julien-Precision-7920-Tower:~$ git clone https://github.com/andrelmartins/TwoBit.git
Clonage dans 'TwoBit'...
remote: Enumerating objects: 236, done.
remote: Total 236 (delta 0), reused 0 (delta 0), pack-reused 236
Réception d'objets: 100% (236/236), 44.32 KiB | 0 bytes/s, fait.
Résolution des deltas: 100% (111/111), fait.
Vérification de la connectivité... fait.
(base) julien@julien-Precision-7920-Tower:~$ cd TwoBit/
(base) julien@julien-Precision-7920-Tower:~/TwoBit$ make
gcc -o twoBitFreq -Wall -g main_freq.c twobit.c
gcc -o test -Wall -g main.c twobit.c
gcc -o twobit.so -shared twobit.c -fPIC
Up to here there is no error message but it seems the R package was not built so I followed the advice from this post: #1 (adding "twoBit.pkg" to the first line of the Makefile). Here I retry to "make" the file with this change:
(base) julien@julien-Precision-7920-Tower:~/TwoBit$ make
rm -Rf pkg.roxygen
(R CMD roxygen pkg)||(./Roxygen pkg)
/usr/lib/R/bin/Rcmd: 62: exec: roxygen: not found
First time using roxygen2. Upgrading automatically...
Updating roxygen version in /home/julien/TwoBit/pkg.roxygen/DESCRIPTION
Loading twoBit
Re-compiling twoBit
─ installing source package ‘twoBit’ ...
make[1] : on entre dans le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
rm -f *.o *.so
make[1] : on quitte le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
ERROR: a 'NAMESPACE' file is required
─ removing ‘/tmp/Rtmp8NVmgt/devtools_install_47ef2e2f56d8/twoBit’
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command error
Calls: roxygenize ... eval -> with_envvar -> force -> do.call ->
De plus : Warning message:
roxygen2 requires Encoding: UTF-8
Exécution arrêtée
Makefile:13 : la recette pour la cible « twoBit.pkg » a échouée
make: *** [twoBit.pkg] Erreur 1
It seems that I have to make roxygen2 require UTF-8 so I add "Encoding: UTF-8" to the DESCRIPTION file in "pkg". Here I try again with this change:
(base) julien@julien-Precision-7920-Tower:~/TwoBit$ make
rm -Rf pkg.roxygen
(R CMD roxygen pkg)||(./Roxygen pkg)
/usr/lib/R/bin/Rcmd: 62: exec: roxygen: not found
First time using roxygen2. Upgrading automatically...
Updating roxygen version in /home/julien/TwoBit/pkg.roxygen/DESCRIPTION
Loading twoBit
Re-compiling twoBit
─ installing source package ‘twoBit’ ...
make[1] : on entre dans le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
rm -f *.o *.so
make[1] : on quitte le répertoire « /home/julien/TwoBit/pkg.roxygen/src »
ERROR: a 'NAMESPACE' file is required
─ removing ‘/tmp/RtmpWd1dkj/devtools_install_48d174b82b77/twoBit’
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command error
Calls: roxygenize ... eval -> with_envvar -> force -> do.call ->
Exécution arrêtée
Makefile:13 : la recette pour la cible « twoBit.pkg » a échouée
make: *** [twoBit.pkg] Erreur 1
So finally it doesn't seem to be an issue with UTF-8 encoding but I don't see where the problem is coming from... And I cannot call the package from R.
Thanks a lot for your help!
Best,
Julien
The text was updated successfully, but these errors were encountered: