evolvedmicrobe / dotplot

Fast generation of dotplots comparing sequences in R
6 stars 4 forks source link

Rcpp issure #1

Open jnvaughn opened 6 years ago

jnvaughn commented 6 years ago

Strange . . .

Get the following error unless I load ggplot2 even if only using dotPlotm:

Error in mkDotPlotDataFrame(seq1, seq2, wsize, wstep, nmatch) : function 'enterRNGScope' not provided by package 'Rcpp' Calls: dotPlotg -> mkDotPlotDataFrame -> .Call

Maybe expected?

Chenglin20170390 commented 2 years ago

Looks like it may be the NAMESPACE problem It's working for me when I try below commond in R

seq1="ATGAATACTAGATAGCATAGAGATAGACTATTAGGGTTAGGTTAGGGTTAGGGTGTTAGGGTTAGGGTTAGGGTTAGGGTTGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGGTTAGGGTTAGGGTTAGGGCCGCACCGAGCGCATACA"
seq2="ATGAATACTAGATAGCATAGAGATAGACTATTAGGGTTAGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTTAGGGTGTTAGGGTTAGGGTTAGGGTTAGGGCCGCACCGAGCGCATACA"
tli71193 commented 7 months ago

i fixed the issue by addingimport(Rcpp) in the NAMESPACE and rebuilding the package afterwards.

Here's solution from related issue https://github.com/immunogenomics/LISI/issues/3